1 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>
3 What is a set of step-by-step instructions for a computer to solve a problem called? A An algorithm B A variable C A syntax D A comment
5 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
9 Which JavaScript construct is used to repeat a block of code a certain number of times? A if-else statement B for loop C function D switch statement
10 Which CSS property is used to change the background color of an element? A color B bgcolor C background-color D background-style
11 Which sorting algorithm repeatedly swaps adjacent elements? A Selection sort B Insertion sort C Bubble sort D Merge sort
12 Which algorithm searches an element by dividing the list into halves? A Linear search B Bubble sort C Binary search D Selection sort
14 Which error is detected during program execution? A Syntax error B Logical error C Runtime error D Typographical error
15 Which algorithm gives the best result in minimum steps? A Efficient algorithm B Long algorithm C Simple algorithm D Manual algorithm
16 In programming, a set of step-by-step instructions to solve a problem is called a/an: A Variable B Function C Comment D Algorithm
18 Which language is used to define the structure and content of a web page? A CSS B JavaScript C HTML D Python
20 Which testing method checks individual units of code? A System testing B Integration testing C Unit testing D Acceptance testing
21 Which JavaScript method converts text to a number? A Number() B String() C parseText() D toString()
22 Which CSS property is used to change text color? A font-style B text-color C color D background-color
23 Which error occurs due to wrong logic in a program? A Syntax error B Runtime error C Logical error D System error
24 In JavaScript, which keyword is used to declare a variable that can be changed later? A let B const C var D variable
29 What will the `console.log(typeof "Hello")` command show in the JavaScript console? A number B boolean C object D string
30 Which algorithm compares each element with all others? A Binary search B Linear search C Quick sort D Merge sort
34 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.
35 Which HTML attribute is used to provide additional information about an element? A class B id C style D title
36 What is the main purpose of an algorithm? A Store data B Design webpages C Solve a problem step by step D Write HTML code
39 Which algorithm is best for large sorted data? A Linear search B Binary search C Bubble sort D Insertion sort
40 What is the process of finding and fixing errors in a computer program called? A Compiling B Executing C Debugging D Designing