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.

Q251. What does CSS stand for?

  1. Creative Style System
  2. Computer Style Sheets
  3. Cascading Style Sheets
  4. Cascading Script Sheets
Show answer and explanation

Correct answer: C. Cascading Style Sheets

CSS styles web pages.

Q252. Which command in Linux lists files in a directory?

  1. dir
  2. list
  3. show
  4. ls
Show answer and explanation

Correct answer: D. ls

ls lists directory contents.

Q253. Which shortcut key centres a paragraph in Word?

  1. Ctrl + L
  2. Ctrl + R
  3. Ctrl + E
  4. Ctrl + J
Show answer and explanation

Correct answer: C. Ctrl + E

Ctrl+E centres.

Q254. What does DBMS stand for?

  1. Data Backup Management System
  2. Database Memory System
  3. Digital Base Management System
  4. Database Management System
Show answer and explanation

Correct answer: D. Database Management System

A DBMS manages databases.

Q255. Which of the following is an operating system?

  1. Linux
  2. Chrome
  3. Python
  4. Oracle
Show answer and explanation

Correct answer: A. Linux

Linux is an OS kernel family.

Q256. Which header file is needed for printf in C?

  1. stdio.h
  2. conio.h
  3. math.h
  4. string.h
Show answer and explanation

Correct answer: A. stdio.h

printf is declared in stdio.h.

Q257. What is encapsulation?

  1. Importing libraries
  2. Creating arrays
  3. Wrapping data and methods into a single unit
  4. Looping
Show answer and explanation

Correct answer: C. Wrapping data and methods into a single unit

Encapsulation bundles data with methods.

Q258. What is the extension of a Java source file?

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

Correct answer: D. .java

Java source files end with .java.

Q259. What is the process of preparing a disk for use called?

  1. Compressing
  2. Booting
  3. Formatting
  4. Encrypting
Show answer and explanation

Correct answer: C. Formatting

Formatting creates a file system.

Q260. In a flowchart, which shape represents a decision?

  1. Rectangle
  2. Oval
  3. Diamond
  4. Parallelogram
Show answer and explanation

Correct answer: C. Diamond

A diamond is used for decisions.

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.