1 Which algorithm compares each element with all others? A Binary search B Linear search C Quick sort D Merge sort
2 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
5 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
9 What will the `console.log(typeof "Hello")` command show in the JavaScript console? A number B boolean C object D string
13 Which CSS property is used to change text color? A font-style B text-color C color D background-color
15 Which algorithm gives the best result in minimum steps? A Efficient algorithm B Long algorithm C Simple algorithm D Manual algorithm
16 Which JavaScript method converts text to a number? A Number() B String() C parseText() D toString()
17 Which JavaScript method is used to find the length of an array? A size() B count() C length D total()
18 What is the process of finding and fixing errors in a computer program called? A Compiling B Executing C Debugging D Designing
20 Which testing method checks individual units of code? A System testing B Integration testing C Unit testing D Acceptance testing
21 Which algorithm is best for large sorted data? A Linear search B Binary search C Bubble sort D Insertion sort
23 In JavaScript, which keyword is used to declare a variable that can be changed later? A let B const C var D variable
25 Which algorithm searches an element by dividing the list into halves? A Linear search B Bubble sort C Binary search D Selection sort
26 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
30 Which sorting algorithm repeatedly swaps adjacent elements? A Selection sort B Insertion sort C Bubble sort D Merge sort