wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Programming Quiz

Total questions: 12

Worksheet time: 7mins

Name
Class
Date
1.

Which language is used to manage and query relational databases?


a)

Python

b)

HTML

c)

JAVA

d)

SQL

2.

Which of the following is a compiled language?

a)

Python

b)

C

c)

PHP

d)

JavaScript

3.

Objects in OOP are independent of classes and can exist without them.

a)

True

b)

False

4.

Where is the BIOS primarily stored in a computer?

a)

RAM

b)

ROM

c)

Cache

d)

Hard Drive

5.

Which keyword is used to declare a constant in Java?

a)

const

b)

final

c)

static

d)

define

6.

Which language is often used for Artificial Intelligence applications?

a)

C

b)

Python

c)

Assembly

d)

Java

7.

Encapsulation in OOP exposes all internal variables of a class to the outside world.

a)

True

b)

Fales

8.

compiler executes code line by line without producing an output file.

a)

True

b)

False

9.

What is the error?

a)

Missing semicolon

b)

cout error

c)

No error

d)

Cannot assign string to float

10.

What is the error?

a)

Array size mismatch

b)

Index starts at 1

c)

Cannot print arrays

d)

No error

11.

Find the Error

a)

No Error

b)

Syntax Error

c)

6

d)

Missing return statement

12.

Predict the Output

a)

2 3 3 4

b)

1 2 2 3

c)

3 4 5 6

d)

1 1 2 2