Class 12 Computer Science Practice Questions

18 free practice MCQs for Class 12 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 SQL command is used to retrieve data from a database? 💻

  1. SELECT
  2. DELETE
  3. INSERT
  4. UPDATE
Show answer

A. SELECT

Q2. What does IP stand for in networking? 💻

  1. Information Packet
  2. Internet Protocol
  3. Internal Process
  4. Integrated Program
Show answer

B. Internet Protocol

Q3. Which type of cyberattack involves overwhelming a server with traffic? 💻

  1. Ransomware
  2. Denial of Service (DoS)
  3. Phishing
  4. Trojan Horse
Show answer

B. Denial of Service (DoS)

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

  1. Link to other tables only
  2. Sort the records
  3. Encrypt the data
  4. Uniquely identify each record
Show answer

D. Uniquely identify each record

Q5. Which of the following is an example of a NoSQL database? 💻

  1. PostgreSQL
  2. Oracle
  3. MySQL
  4. MongoDB
Show answer

D. MongoDB

Q6. HTTP stands for: 💻

  1. HyperText Transfer Protocol
  2. Host Text Transfer Protocol
  3. High Text Transfer Protocol
  4. HyperText Transmission Process
Show answer

A. HyperText Transfer Protocol

Q7. Which Python library is commonly used for data analysis? 💻

  1. Pandas
  2. Tkinter
  3. Flask
  4. Pygame
Show answer

A. Pandas

Q8. What is the full form of LAN? 💻

  1. Leased Access Network
  2. Local Area Network
  3. Linked Area Network
  4. Large Area Network
Show answer

B. Local Area Network

Q9. Recursion in programming means: 💻

  1. A function calling itself
  2. Reusing code from other programs
  3. Running a loop indefinitely
  4. Calling multiple functions simultaneously
Show answer

A. A function calling itself

Q10. Which is the correct SQL syntax to add a new column to an existing table? 💻

  1. UPDATE TABLE table_name ADD COLUMN column_name
  2. MODIFY TABLE table_name ADD column_name datatype
  3. ALTER TABLE table_name ADD column_name datatype
  4. INSERT COLUMN INTO table_name column_name datatype
Show answer

C. ALTER TABLE table_name ADD column_name datatype

Q11. Which SQL command is used to retrieve data from a database?

  1. SELECT
  2. INSERT
  3. UPDATE
  4. DELETE
Show answer

A. SELECT

Q12. Which SQL command adds new rows to a table?

  1. SELECT
  2. INSERT
  3. DELETE
  4. DROP
Show answer

B. INSERT

Q13. Which SQL command removes rows from a table?

  1. SELECT
  2. INSERT
  3. DELETE
  4. CREATE
Show answer

C. DELETE

Q14. Which SQL command modifies existing data in a table?

  1. SELECT
  2. DELETE
  3. INSERT
  4. UPDATE
Show answer

D. UPDATE

Q15. Which language is used to structure the content of web pages?

  1. HTML
  2. Python
  3. SQL
  4. C++
Show answer

A. HTML

Q16. Which number system, using only 0 and 1, do computers use internally?

  1. Decimal
  2. Binary
  3. Octal
  4. Hexadecimal
Show answer

B. Binary

Q17. Which number system uses base 16?

  1. Binary
  2. Decimal
  3. Hexadecimal
  4. Octal
Show answer

C. Hexadecimal

Q18. In OOP, which concept bundles data and methods and hides internal details?

  1. Inheritance
  2. Polymorphism
  3. Recursion
  4. Encapsulation
Show answer

D. Encapsulation

Ready for the full adaptive quiz?

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


Play free on EC Play →