3 Which HTML5 tag is used to define the main content of a document, separate from the header and footer? A <header> B <footer> C <main> D <article>
4 Which CSS property is used to change text color? A font-style B text-color C color D background-color
5 Which HTML attribute is used to provide additional information about an element? A class B id C style D title
6 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.
8 Which JavaScript method is used to find the length of an array? A size() B count() C length D total()
9 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
10 In JavaScript, which keyword is used to declare a variable that can be changed later? A let B const C var D variable
16 Which type of loop in JavaScript continues to run as long as a specified condition is true? A for loop B while loop C if statement D switch statement
17 Which tool in a web browser helps developers see errors and messages from their JavaScript code? A The address bar B The console C The settings menu D The history tab
18 Which JavaScript method is used to add a new item to the end of an array? A shift() B pop() C push() D join()
20 Which error occurs due to wrong logic in a program? A Syntax error B Runtime error C Logical error D System error
21 In HTML5, which tag is used to define a footer for a document or a section? A <bottom> B <footer> C <end> D <section>
22 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
23 Which testing ensures the program meets user requirements? A Unit testing B Integration testing C System testing D Acceptance testing
25 Which algorithm is best for large sorted data? A Linear search B Binary search C Bubble sort D Insertion sort