1 Which JavaScript method converts text to a number? A Number() B String() C parseText() D toString()
2 Which CSS property is used to change the background color of an element? A color B bgcolor C background-color D background-style
4 What will the `console.log(typeof "Hello")` command show in the JavaScript console? A number B boolean C object D string
7 Which algorithm is best for large sorted data? A Linear search B Binary search C Bubble sort D Insertion sort
8 In JavaScript, which keyword is used to declare a variable that can be changed later? A let B const C var D variable
10 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.
11 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>
12 Which debugging technique involves checking output step by step? A Dry run B Tracing C Testing D Compilation
13 Which testing ensures the program meets user requirements? A Unit testing B Integration testing C System testing D Acceptance testing
15 What is the process of finding and fixing errors in a computer program called? A Compiling B Executing C Debugging D Designing
17 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
19 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 What is an error in the code's grammar or spelling called? A Runtime error B Logical error C Syntax error D User error