Class 10 Computer Science Practice Questions

10 free practice MCQs for Class 10 Computer Science, following the school syllabus — playable as an adaptive quiz in English, Hindi, Tamil, Telugu, Bengali and 8 more Indian languages. No sign-up, no ads.

Practice all 10 questions free →

Sample questions with answers

Q1. What will print(type(5)) output in Python? 💻

  1. <class 'float'>
  2. <class 'bool'>
  3. <class 'int'>
  4. <class 'str'>
Show answer

C. <class 'int'>

Q2. Which Python keyword is used to define a function? 💻

  1. def
  2. fun
  3. function
  4. define
Show answer

A. def

Q3. In a relational database, a primary key is used to: 💻

  1. Uniquely identify each record in a table
  2. Encrypt the data
  3. Link two different databases
  4. Sort data alphabetically
Show answer

A. Uniquely identify each record in a table

Q4. Which of the following is a valid Python list? 💻

  1. [1, 2, 3]
  2. (1, 2, 3)
  3. <1, 2, 3>
  4. {1, 2, 3}
Show answer

A. [1, 2, 3]

Q5. What does SQL stand for? 💻

  1. Software Query Language
  2. Sequential Query Language
  3. Simple Query Logic
  4. Structured Query Language
Show answer

D. Structured Query Language

Q6. In Python, what is the output of 10 % 3? 💻

  1. 10
  2. 3
  3. 0
  4. 1
Show answer

D. 1

Q7. Which network topology connects all devices to a central hub? 💻

  1. Mesh topology
  2. Star topology
  3. Ring topology
  4. Bus topology
Show answer

B. Star topology

Q8. Which Python loop is used when the number of iterations is unknown? 💻

  1. nested loop
  2. for loop
  3. do-while loop
  4. while loop
Show answer

D. while loop

Q9. HTTP stands for: 💻

  1. Home Transfer Text Protocol
  2. HyperText Transfer Protocol
  3. High-Tech Text Protocol
  4. Hyper Terminal Transfer Process
Show answer

B. HyperText Transfer Protocol

Q10. In a database, a record is a: 💻

  1. A type of query
  2. The name of the database
  3. A complete row of related data fields
  4. A single column of data
Show answer

C. A complete row of related data fields

Ready for the full adaptive quiz?

Combo scores, streaks and instant feedback — in 13 languages.


Play free on EC Play →