wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Computer Science Quiz

Total questions: 48

Worksheet time: 48mins

Name
Class
Date
1.

Which memory is both static and non-volatile?

a)

ROM

b)

RAM

c)

Cache

d)

Register

2.

In which generation of computers was Integrated Circuit (IC) technology introduced?

a)

First

b)

Second

c)

Third

d)

Fourth

3.

Which scheduling algorithm is also called “time-sharing”?

a)

FCFS

b)

Round Robin

c)

SJF

d)

Priority Scheduling

4.

Which of the following is NOT a RISC processor?

a)

ARM

b)

MIPS

c)

SPARC

d)

Intel 8086

5.

Cache memory is located between:

a)

RAM and Hard Disk

b)

CPU and RAM

c)

ALU and CU

d)

Input and Output devices

6.

Which of the following is a deadlock avoidance algorithm?

a)

Peterson’s Algorithm

b)

Banker’s Algorithm

c)

Dekker’s Algorithm

d)

Dijkstra’s Algorithm

7.

Virtual memory is implemented using:

a)

RAM

b)

Cache

c)

Hard Disk

d)

Registers

8.

Which Linux command is used to change file permissions?

a)

chmod

b)

chown

c)

ls

d)

ps

9.

Which of the following is a distributed version control system?

a)

SVN

b)

CVS

c)

Git

d)

Mercurial

10.

In UNIX, the inode stores:

a)

File name only

b)

File content

c)

File metadata

d)

File extension

11.

Which layer of OSI model is responsible for routing?

a)

Data Link

b)

Network

c)

Transport

d)

Application

12.

IPv6 addresses are of how many bits?

a)

32

b)

64

c)

128

d)

256

13.

Which of the following is a symmetric encryption algorithm?

a)

RSA

b)

AES

c)

ECC

d)

Diffie-Hellman

14.

What is the default port number for HTTPS?

a)

21

b)

25

c)

80

d)

443

15.

Which of the following attacks is related to session hijacking?

a)

SQL Injection

b)

Cross-Site Scripting (XSS)

c)

Man-in-the-Middle

d)

Phishing

16.

Which normal form removes transitive dependency?

a)

1NF

b)

2NF

c)

3NF

d)

BCNF

17.

In SQL, which command is used to remove a table completely?

a)

DELETE

b)

REMOVE

c)

DROP

d)

TRUNCATE

18.

In relational databases, candidate keys are:

a)

Only primary keys

b)

All possible keys

c)

Composite keys only

d)

Foreign keys

19.

Which of the following is not an ACID property?

a)

Atomicity

b)

Consistency

c)

Durability

d)

Distribution

20.

Which of these is NOT a functional programming language?

a)

Lisp

b)

Haskell

c)

Prolog

d)

Erlang

21.

Time complexity of binary search algorithm is:

a)

O(n)

b)

O(log n)

c)

O(n log n)

d)

O(1)

22.

Which sorting algorithm is NOT comparison-based?

a)

Merge Sort

b)

Quick Sort

c)

Heap Sort

d)

Counting Sort

23.

The worst-case height of an AVL tree with n nodes is:

a)

O(n)

b)

O(log n)

c)

O(n log n)

d)

O(1)

24.

Dijkstra’s algorithm is used to find:

a)

Minimum spanning tree

b)

Shortest path

c)

Maximum flow

d)

Topological order

25.

Hashing mainly helps in:

a)

Sorting

b)

Searching

c)

Multiplication

d)

Compression

26.

Which was the first search engine on the Internet?

a)

Google

b)

Archie

c)

Yahoo

d)

Lycos

27.

Moore’s law predicts that the number of transistors on a microchip doubles every:

a)

6 months

b)

12 months

c)

18 months

d)

24 months

28.

Which company developed the first graphical web browser “Mosaic”?

a)

Microsoft

b)

Netscape

c)

NCSA

d)

CERN

29.

In machine learning, overfitting means:

a)

Model performs poorly on training data

b)

Model performs well on test data but poorly on training data

c)

Model performs well on training data but poorly on unseen data

d)

Model ignores input features

30.

Which of these is NOT a cloud computing service model?

a)

IaaS

b)

SaaS

c)

PaaS

d)

DaaS

31.

Which data structure is used in recursion?

a)

Queue

b)

Stack

c)

Linked List

d)

Heap

32.

Which protocol is used for sending emails?

a)

FTP

b)

SMTP

c)

POP3

d)

IMAP

33.

In compiler design, which phase checks syntax errors?

a)

Lexical Analysis

b)

Syntax Analysis

c)

Semantic Analysis

d)

Code Generation

34.

Which of the following is a volatile memory?

a)

ROM

b)

Flash

c)

RAM

d)

PROM

35.

Which of the following is an example of NoSQL database?

a)

MySQL

b)

Oracle

c)

MongoDB

d)

PostgreSQL

36.

Which of the following protocols is used to securely transfer files over the Internet?

a)

FTP

b)

SFTP

c)

HTTP

d)

SMTP

37.

In OS, the technique that allows multiple processes to share a single CPU is called:

a)

Multiprocessing

b)

Multithreading

c)

Time-sharing

d)

Spooling

38.

Which of the following is a client-side scripting language?

a)

PHP

b)

JavaScript

c)

Python

d)

Java

39.

In object-oriented programming, which concept allows a class to inherit properties of another class?

a)

Encapsulation

b)

Polymorphism

c)

Inheritance

d)

Abstraction

40.

Which type of cloud deployment model is shared among multiple organizations?

a)

Private Cloud

b)

Public Cloud

c)

Community Cloud

d)

Hybrid Cloud

41.

Which of the following is NOT a type of firewall?

a)

Packet Filtering

b)

Circuit-level Gateway

c)

Application-level Gateway

d)

DNS Resolver

42.

Which of the following represents a 32-bit IP address?

a)

IPv4

b)

IPv6

c)

MAC Address

d)

Subnet Mask

43.

In Python, what is the output of len([1, [2, 3], 4])?

a)

3

b)

4

c)

2

d)

5

44.

Which of the following is used to prevent deadlock in operating systems?

a)

Banker's Algorithm

b)

FCFS

c)

Round Robin

d)

SJF

45.

Which topology connects all nodes in a closed loop?

a)

Star

b)

Ring

c)

Mesh

d)

Bus

46.

Which HTTP status code represents “Not Found”?

a)

200

b)

301

c)

404

d)

500

47.

Which of the following is a widely used data serialization format?

a)

HTML

b)

JSON

c)

CSS

d)

XML

48.

Which operating system is developed by Apple Inc.?

a)

Windows

b)

Linux

c)

macOS

d)

Android