Back to dashboard

Reading mode

Unit 3: Programming Fundamentals

Correct answer is shown on each question. Use Next to read one by one.

Question 1 of 20 0% read

1. In HTML5, which tag is used to define a footer for a document or a section?

A <bottom>
B <footer>
C <end>
D <section>

2. Which CSS property is used to make text bold?

A font-style
B text-weight
C font-weight
D bold

3. Which error is detected during program execution?

A Syntax error
B Logical error
C Runtime error
D Typographical error

4. Which language is used to define the structure and content of a web page?

A CSS
B JavaScript
C HTML
D Python

5. Which testing ensures the program meets user requirements?

A Unit testing
B Integration testing
C System testing
D Acceptance testing

6. Which HTML section contains metadata?

A <body>
B <meta>
C <head>
D <title>

7. Which debugging technique involves checking output step by step?

A Dry run
B Tracing
C Testing
D Compilation

8. In JavaScript, what is used to make decisions and execute different code based on a condition?

A A loop
B A function
C A variable
D An if-else statement

9. Which JavaScript function displays a message box?

A prompt()
B confirm()
C alert()
D message()

10. Which JavaScript structure can store key-value pairs?

A Array
B Object
C Function
D Loop

11. Which CSS pseudo-class is used to select and style an element when you move your mouse over it?

A :hover
B :active
C :focus
D :link

12. What is a named block of code in JavaScript that performs a specific task and can be called multiple times?

A A function
B A loop
C An array
D A condition

13. What is the main purpose of CSS (Cascading Style Sheets)?

A To add interactivity to a website.
B To store data for a website.
C To create the structure of a website.
D To control the visual style and layout of a website.

14. Which data structure stores elements in a sequence?

A Object
B Array
C Function
D Variable

15. What will the `console.log(typeof "Hello")` command show in the JavaScript console?

A number
B boolean
C object
D string

16. Which testing method checks individual units of code?

A System testing
B Integration testing
C Unit testing
D Acceptance testing

17. Which JavaScript statement is used for decision making?

A switch
B if
C else
D All of these

18. Which algorithm compares each element with all others?

A Binary search
B Linear search
C Quick sort
D Merge sort

19. What is the output of a Boolean expression?

A Number
B String
C True or False
D Character

20. Which HTML tag is used to display an image on a webpage?

A <image>
B <img>
C <pic>
D <src>

You finished reading all questions

Try practice mode to check answers without scoring, or play for a scored attempt.