1

Which symbol is used to select an id in CSS?

2

Hassan is testing his JavaScript. He has a variable named 'score' set to 10. He wants to increase the score by 5. Which line of code should he write?

3

Hina is writing JavaScript. She wants to convert a string '123' into a number. Which function should she use?

4

What does HTML stand for?

5

Usman is learning about JavaScript events. He wants to run a function when a user clicks a button. Which event should he use?

6

Leo is writing JavaScript. He needs to check if a user's age is 18 or older. He writes an if statement. Which condition should Leo use inside the parentheses?

7

Which part of a website controls structure?

8

Farhan is creating a dynamic website. He wants a button that shows an alert message when clicked. He is using JavaScript. Which JavaScript method should Farhan use to display a pop-up message?

9

Which HTML tag is used to create a hyperlink?

10

What is programming?

11

Aisha is creating a link that opens in a new tab. She knows she needs to add an attribute to the <a> tag. Which attribute should she use?

12

Emma is writing a CSS rule to center the text inside a div. She tries several properties. Which CSS property should Emma use to horizontally center the text content?

13

Which of the following is primarily a client-side scripting language used to make web pages interactive?

14

Priya is working on a website and wants to change the color of all links when the mouse hovers over them. Which CSS pseudo-class should she use?

15

Which part of a website controls design?

16

Ibrahim is designing a webpage. He wants the background to be an image. Which CSS property should he use?

17

Nadia is creating a table in HTML. She wants the table to have a border. Which attribute should she add to the <table> tag?

18

Zara is building a dynamic website. She wants to update the content of a div with id 'output' using JavaScript. Which method should she use?

19

Which error occurs due to wrong program logic?

20

Qiao is writing HTML. She wants to add a hyperlink to Google. Which tag should she use?

21

Bongani is writing a JavaScript program. He wants to repeat a block of code exactly 10 times. Which loop should he use?

22

Grace is learning about CSS selectors. She wants to apply a style only to an element with id 'main-header'. Which CSS selector should she use?

23

Maya is designing a CSS layout. She wants to add space between the border of an element and its content. Which CSS property should she use?

24

What is the primary purpose of JavaScript in web development?

25

Which tag contains CSS in an HTML file?