wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

QUIZERIA

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which type of ROM can be erased by exposure to ultraviolet light?

a)

PROM

b)

EEPROM

c)

EPROM

d)

Flash ROM

2.

Which language processor translates high-level language into machine language?

a)

Assembler

b)

Compiler

c)

Debugger

d)

Loader

3.

Which of the following is a format specifier for integers in C?

a)

%c

b)

%d

c)

%f

d)

%s

4.

Which symbol is used to represent a decision in a flowchart?

a)

Rectangle

b)

Diamond

c)

Circle

d)

Arrow

5.

Which of the following is a logical operator?

a)

+

b)

&&

c)

*

d)

%

6.

Which of the following is NOT a valid variable name in C?

a)

_count

b)

int_value

c)

123abc

d)

value1

7.

Which data type can store the largest value?

a)

int

b)

long

c)

float

d)

double

8.

What is the difference between ++i and i++?

a)

a) ++i increments before use, it+ increments after use

b)

b) ++i decrements before use, it+ decrements after use

c)

c) Both are identical

d)

d) None of the above

9.

1. Which of the following is correct for accessing the third element of an array arr?

a)

a) arr[2]

b)

b) arr[3]

c)

c) arr(2)

d)

d) None of the above

10.

4. Which of the following correctly initializes a 2D array?

a)

int arr[2][2] = {1, 2, 3, 4};

b)

int arr[2][2] = {{1, 2}, {3, 4}};

c)

Both a and b

d)

None of the above

11.

5. What is the result of the following code?

int arr[] = {10, 20, 30, 40, 50};

printf("%d", arr[3]);

a)
30
b)
50
c)
10
d)
40
12.

How can you create a variable with the floating number 2.8?

a)

float num = 2.8;

b)

num = 2.8 double;

c)

num = 2.8 float;

d)

val num = 2.8;

13.

Which function is often used to output values and print text?

a)

printf()

b)

printword()

c)

write()

d)

output()

14.

What do we call the following? int myNumbers[ ] = {25, 50, 75, 100};

a)

An array

b)

A class

c)

A pointer

d)

None of the above

15.

How do you start writing an if statement in C?

a)

if x > y

b)

if x > y then

c)

if x > y()

d)

if (x > y)

16.

If CPU is the brain of the computer

what is the equivalent of "memory " in the human brain for a computer

a)
Hard Drive
b)
RAM
c)
CPU Cache
d)
Graphics Card
17.

What was the major drawback of the computers that used vacuum tubes

a)

inexpensive

b)

unreliable.

c)

energy-efficient.

d)

reliable and fast.

18.

What happens when the condition in a for loop becomes false ?

a)
The for loop restarts from the beginning.
b)
The for loop skips to the next iteration.
c)
The for loop continues indefinitely.
d)
The for loop terminates.
19.

What does a variable declaration tell the compiler about a variable ?

a)

type

b)

size

c)

value

d)

usage

20.

The main difference between a compiler and an interpreter

a)

speed

b)

platform

c)

execution

d)

syntax