Class 11 Computer Science Practice Questions

18 free practice MCQs for Class 11 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 18 questions free →

Sample questions with answers

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

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

C. def

Q2. Which data structure follows the LIFO (Last In First Out) principle? 💻

  1. Queue
  2. Array
  3. Linked List
  4. Stack
Show answer

D. Stack

Q3. What is the output of: print(type(5.0)) in Python? 💻

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

B. <class 'float'>

Q4. In Python, which symbol is used for single-line comments? 💻

  1. /* */
  2. //
  3. #
  4. --
Show answer

C. #

Q5. Which of the following is a mutable data type in Python? 💻

  1. Integer
  2. Tuple
  3. List
  4. String
Show answer

C. List

Q6. The full form of CPU is: 💻

  1. Computer Processing Unit
  2. Core Processing Unit
  3. Central Processing Unit
  4. Central Program Unit
Show answer

C. Central Processing Unit

Q7. Which of the following is NOT a Python loop? 💻

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

C. do-while loop

Q8. In Python, a dictionary stores data as: 💻

  1. Stack elements
  2. Sequential elements
  3. Key-Value pairs
  4. Index-Value pairs
Show answer

C. Key-Value pairs

Q9. What does RAM stand for? 💻

  1. Read Access Memory
  2. Random Access Memory
  3. Rapid Access Memory
  4. Random Application Memory
Show answer

B. Random Access Memory

Q10. Which operator is used for floor division in Python? 💻

  1. %
  2. /
  3. **
  4. //
Show answer

D. //

Q11. Which keyword is used to define a function in Python?

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

A. def

Q12. Which built-in Python function displays output on the screen?

  1. echo()
  2. print()
  3. printf()
  4. display()
Show answer

B. print()

Q13. Which Python data type stores whole numbers?

  1. str
  2. float
  3. int
  4. bool
Show answer

C. int

Q14. Which Python data type stores text?

  1. int
  2. float
  3. char
  4. str
Show answer

D. str

Q15. Which Python keyword starts a loop that repeats a known number of times?

  1. for
  2. while
  3. if
  4. loop
Show answer

A. for

Q16. Which symbol begins a single-line comment in Python?

  1. //
  2. #
  3. /*
  4. --
Show answer

B. #

Q17. Which data type has only two values: True or False?

  1. int
  2. str
  3. bool
  4. float
Show answer

C. bool

Q18. Which Python data type stores decimal (fractional) numbers?

  1. int
  2. str
  3. bool
  4. float
Show answer

D. float

Ready for the full adaptive quiz?

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


Play free on EC Play →