wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

SET 1 – Questions Only

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

What will be the output of print(2 ** 3) in Python?

a)

8

b)

6

c)

9

d)

5

2.

Which header file is required for printf() in C?

a)

stdio.h

b)

conio.h

c)

math.h

d)

string.h

3.

Which data structure follows LIFO principle?

a)

Stack

b)

Queue

c)

Linked List

d)

Tree

4.

Which keyword is used to inherit a class in Java?

a)

extends

b)

implements

c)

inherits

d)

super

5.

Which memory is volatile?

a)

RAM

b)

ROM

c)

Hard Disk

d)

Flash Memory

6.

Which operator is used for floor division in Python?

a)

//

b)

/

c)

%

d)

**

7.

Which loop executes at least once?

a)

do-while loop

b)

for loop

c)

while loop

d)

foreach loop

8.

What does SQL JOIN do?

a)

Combines rows from two or more tables based on a related column.

b)

Deletes all rows from a table.

c)

Sorts the data in a table alphabetically.

d)

Creates a new table in the database.

9.

Which symbol is used for single-line comment in C++?

a)

//

b)

#

c)

/*

d)

10.

Which protocol is used for web communication?

a)

HTTP

b)

FTP

c)

SMTP

d)

SSH

11.

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

a)

4

b)

3

c)

5

d)

2

12.

Which keyword creates object in Java?

a)

new

b)

create

c)

object

d)

make

13.

Which OS is open source?

a)

Linux

b)

Windows

c)

macOS

d)

Solaris

14.

Which device routes data packets?

a)

Router

b)

Switch

c)

Modem

d)

Hub

15.

Which data type stores decimal values in Python?

a)

float

b)

int

c)

str

d)

bool

16.

Which port number is used for HTTPS?

a)

443

b)

80

c)

21

d)

25

17.

Which keyword stops a loop in Python?

a)

break

b)

stop

c)

exit

d)

end

18.

Which is NOT an OOP principle?

a)

Procedural programming

b)

Encapsulation

c)

Inheritance

d)

Polymorphism

19.

Which file extension is used for Java source code?

a)

.java

b)

.jav

c)

.js

d)

.class

20.

Which memory is fastest?

a)

Cache

b)

RAM

c)

Hard Disk

d)

Flash Memory

21.

What does API stand for?

a)

Application Programming Interface

b)

Advanced Programming Instruction

c)

Automated Process Integration

d)

Applied Protocol Interface

22.

Which symbol is used for logical AND?

a)

&&

b)

||

c)

&

d)

!

23.

Which command removes table data but keeps structure?

a)

TRUNCATE

b)

DROP

c)

DELETE

d)

ALTER

24.

Which language is mainly used for system programming?

a)

C

b)

Python

c)

JavaScript

d)

Ruby

25.

What is Git mainly used for?

a)

Version control

b)

Image editing

c)

Web browsing

d)

Video streaming