Class 10: Chapter 3 Computer Science MCQs

Practice solved MCQs on front-end development, HTML, JavaScript, CSS, and ADT from Class 10 Computer Science.

Back to Helping Material

Computer Science: Class 10 Chapter 3 MCQ Guide

Q1: Which of the following is primarily associated with front-end development?

  • a) Server management
  • b) Database design
  • c) User interface and design
  • d) Memory handling

Answer: c) User interface and design

Explanation: Front-end development refers to the part visible to users like buttons, colors, layouts, and design — all part of User Interface (UI). The other options relate to backend.

Q2: Which of the following HTML attributes is required in the <input> element for email?

  • a) type="text"
  • b) type="password"
  • c) type="email"
  • d) type="url"

Answer: c) type="email"

Explanation: To take email input in a form, type="email" is used so the browser validates if the input is a valid email.

Q3: In JavaScript, which method would you use to add a new item to the end of a list?

  • a) push()
  • b) add()
  • c) leftshift()
  • d) rightshift()

Answer: a) push()

Explanation: The push() method adds a new item at the end of an array in JavaScript. Other methods listed are incorrect or do not exist.

Q4: In JavaScript, how do you access the third element in an array called myArray?

  • a) myArray[1]
  • b) myArray[2]
  • c) myArray[3]
  • d) myArray[0]

Answer: b) myArray[2]

Explanation: JavaScript arrays start from index 0, so the third element is accessed at index 2.

Q5: To manually stop JavaScript code execution at a certain point, you can use:

  • a) console.log()
  • b) stop
  • c) break
  • d) debugger

Answer: d) debugger

Explanation: The debugger keyword pauses code execution for debugging in browsers. Other options are either incorrect or do not stop execution.

Q6: What is the primary purpose of unit tests?

  • a) To validate syntax
  • b) To test individual parts of the code for correctness
  • c) To test website styling
  • d) To prepare code for deployment

Answer: b) To test individual parts of the code for correctness

Explanation: Unit tests check small parts of code (like functions) to confirm they work correctly.

Q7: Front-end development is also called __________.

  • a) Server-side
  • b) Client-side
  • c) Label
  • d) Database

Answer: b) Client-side

Explanation: Front-end code runs on the client’s browser, so it is called client-side. Server-side refers to backend.

Q8: Table is an easy way to organize information in __________.

  • a) columns
  • b) webpages
  • c) lists
  • d) trees

Answer: a) columns

Explanation: Tables organize data into rows and columns. Each column represents a data field.

Q9: Table’s header cell and content is referred in __________ tag.

  • a) <th>
  • b) <td>
  • c) <caption>
  • d) <tr>

Answer: a) <th>

Explanation: <th> is used for table header cells, <td> for normal data cells, <caption> is for table title.

Q10: Link between the borders of neighboring table cell is determined by __________.

  • a) border
  • b) border-collapse
  • c) border-separate
  • d) border-merge

Answer: b) border-collapse

Explanation: The CSS property border-collapse determines if adjacent table cell borders merge or remain separate.

Q11: Distance between the cell’s border and its content is called __________.

  • a) Cell
  • b) Output
  • c) Padding
  • d) Style

Answer: c) Padding

Explanation: Padding is the space between content and border of any element, controlled by CSS.

Q12: An element style during animation is specified by __________.

  • a) key frame
  • b) @style frame
  • c) @highlighted frame
  • d) @anchor frame

Answer: a) key frame

Explanation: CSS animations use @keyframes to define style changes at different animation stages.

Q13: A single table cell is indicated by a __________ tag.

  • a) <tr>
  • b) <th>
  • c) <td>
  • d) <tfc>

Answer: c) <td>

Explanation: <td> is used for normal table data cells, <tr> for rows, <th> for header cells.

Q14: Arrays and list can contain data types containing __________.

  • a) Alphabets
  • b) Numbers
  • c) Alphanumeric
  • d) Checkbox

Answer: c) Alphanumeric

Explanation: Arrays and lists can store both alphabets and numbers, i.e., alphanumeric data.

Q15: ADT stands for __________.

  • a) Abstract Data Type
  • b) Any Data Type
  • c) Actual Data Type
  • d) Document Type

Answer: a) Abstract Data Type

Explanation: ADT means Abstract Data Type — a logical concept to define data structures like Stack, Queue, etc.