Computer Science MCQs with Answers

Computer knowledge is tested in jobs ranging from clerical posts to IT positions. Practice MCQs on computer fundamentals, hardware, software, MS Office, networking, internet, databases and programming concepts, and see your score as soon as you finish.

Take a timed Computer Science quiz: Free account required to save your score.

Q41. What is the extension of a Python file?

  1. .cpp
  2. .java
  3. .py
  4. .js
Show answer and explanation

Correct answer: C. .py

Python files end with .py.

Q42. What is the extension of a Word document?

  1. .txt
  2. .docx
  3. .pptx
  4. .xlsx
Show answer and explanation

Correct answer: B. .docx

Word documents use .docx.

Q43. Which language adds interactivity to web pages?

  1. C
  2. HTML
  3. JavaScript
  4. SQL
Show answer and explanation

Correct answer: C. JavaScript

JavaScript runs in browsers.

Q44. Who is the first programmer in the world?

  1. Ada Lovelace
  2. Grace Hopper
  3. Alan Turing
  4. Margaret Hamilton
Show answer and explanation

Correct answer: A. Ada Lovelace

Ada Lovelace wrote the first algorithm for Babbage's engine.

Q45. Which SQL statement changes a table's structure?

  1. ALTER TABLE
  2. MODIFY ROW
  3. CHANGE DATA
  4. UPDATE TABLE
Show answer and explanation

Correct answer: A. ALTER TABLE

ALTER TABLE changes structure.

Q46. Which OS is developed by Apple for iPhones?

  1. Symbian
  2. Windows Phone
  3. Android
  4. iOS
Show answer and explanation

Correct answer: D. iOS

iOS runs on iPhones.

Q47. Which of the following is an audio file extension?

  1. .exe
  2. .docx
  3. .jpg
  4. .mp3
Show answer and explanation

Correct answer: D. .mp3

.mp3 is an audio format.

Q48. Which data structure uses LIFO?

  1. Queue
  2. Tree
  3. Stack
  4. Array
Show answer and explanation

Correct answer: C. Stack

Last in, first out.

Q49. How many bytes are in a kilobyte (binary)?

  1. 512
  2. 2048
  3. 1000
  4. 1024
Show answer and explanation

Correct answer: D. 1024

1 KB = 1024 bytes.

Q50. Which key removes the character to the left of the cursor?

  1. Tab
  2. Backspace
  3. Delete
  4. Insert
Show answer and explanation

Correct answer: B. Backspace

Backspace deletes to the left.

Computer Science MCQs by exam

Other subjects

Looking for a job? Apply while you prepare: browse the latest government and private jobs on PK JOBs Hub.