wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Science Quiz

Total questions: 87

Worksheet time: 46mins

Name
Class
Date
1.

What is the time complexity of binary search?

a)

O(n)

b)

O(log n)

c)

O(n log n)

d)

O(n²)

2.

Which of the following is NOT a high-level programming language?

a)

C

b)

Python

c)

Assembly

d)

Java

3.

What does OOP stand for?

a)

Object-Oriented Processing

b)

Object-Oriented Programming

c)

Ordered Object Programming

d)

Operator-Oriented Processing

4.

What is the primary function of an operating system?

a)

Perform arithmetic operations

b)

Manage hardware resources

c)

Design software applications

d)

Control the internet

5.

What is the full form of HTTP?

a)

Hyper Transfer Text Protocol

b)

Hyper Text Markup Language

c)

Hyper Text Transfer Protocol

d)

High Transfer Text Processing

6.

What type of memory is volatile?

a)

SSD

b)

HDD

c)

RAM

d)

ROM

7.

What is the extension of a Java bytecode file?

a)

.java

b)

.class

c)

.jar

d)

.exe

8.

Which data structure uses LIFO (Last In, First Out)?

a)

Queue

b)

Stack

c)

Linked List

d)

Heap

9.

Which of the following is not a valid data type in C?

a)

int

b)

float

c)

boolean

d)

char

10.

What is the default return type of main() in C?

a)

void

b)

int

c)

char

d)

float

11.

Which operator is used for dynamic memory allocation in C++?

a)

malloc

b)

new

c)

alloc

d)

allocate

12.

What is the correct syntax for linking an external CSS file in HTML?

a)