3 Which CSS property is used to change text color? A font-style B text-color C color D background-color
6 Which HTML attribute is used to provide additional information about an element? A class B id C style D title
7 Which CSS property is used to change the background color of an element? A color B bgcolor C background-color D background-style
17 Which algorithm searches an element by dividing the list into halves? A Linear search B Bubble sort C Binary search D Selection sort
18 Which sorting algorithm repeatedly swaps adjacent elements? A Selection sort B Insertion sort C Bubble sort D Merge sort
19 Which algorithm compares each element with all others? A Binary search B Linear search C Quick sort D Merge sort
20 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
21 Which JavaScript method is used to find the length of an array? A size() B count() C length D total()
23 Which error occurs due to wrong logic in a program? A Syntax error B Runtime error C Logical error D System error
24 Which JavaScript console method is used for debugging? A console.write() B console.debug() C console.log() D console.print()
25 Which testing method checks individual units of code? A System testing B Integration testing C Unit testing D Acceptance testing
29 Which algorithm is best for large sorted data? A Linear search B Binary search C Bubble sort D Insertion sort
31 Which error is detected during program execution? A Syntax error B Logical error C Runtime error D Typographical error
36 Which testing ensures the program meets user requirements? A Unit testing B Integration testing C System testing D Acceptance testing
38 Which JavaScript method converts text to a number? A Number() B String() C parseText() D toString()
39 Which algorithm gives the best result in minimum steps? A Efficient algorithm B Long algorithm C Simple algorithm D Manual algorithm
40 Which debugging technique involves checking output step by step? A Dry run B Tracing C Testing D Compilation
43 Which language is used to define the structure and content of a web page? A CSS B JavaScript C HTML D Python
44 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.
45 In JavaScript, which keyword is used to declare a variable that can be changed later? A let B const C var D variable
46 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
47 What is the process of finding and fixing errors in a computer program called? A Compiling B Executing C Debugging D Designing
49 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
50 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
51 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>
52 In JavaScript, what is used to make decisions and execute different code based on a condition? A A loop B A function C A variable D An if-else statement
53 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
54 Which CSS property is used to add rounded corners to an element? A border-style B border-radius C corner-style D box-shadow
55 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
56 In HTML5, which tag is used to define a footer for a document or a section? A <bottom> B <footer> C <end> D <section>
57 Which JavaScript method is used to add a new item to the end of an array? A shift() B pop() C push() D join()
58 What will the `console.log(typeof "Hello")` command show in the JavaScript console? A number B boolean C object D string
59 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
60 What is an error in the code's grammar or spelling called? A Runtime error B Logical error C Syntax error D User error
61 Which tool in a web browser is most commonly used by developers to find and fix errors in JavaScript code? A The browser's console B The history tab C The settings menu D The bookmarks bar
62 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