NEW
Font size
WorksheetsQUIZERIA
Total questions: 20
Worksheet time: 10mins
Which type of ROM can be erased by exposure to ultraviolet light?
PROM
EEPROM
EPROM
Flash ROM
Which language processor translates high-level language into machine language?
Assembler
Compiler
Debugger
Loader
Which of the following is a format specifier for integers in C?
%c
%d
%f
%s
Which symbol is used to represent a decision in a flowchart?
Rectangle
Diamond
Circle
Arrow
Which of the following is a logical operator?
+
&&
*
%
Which of the following is NOT a valid variable name in C?
_count
int_value
123abc
value1
Which data type can store the largest value?
int
long
float
double
What is the difference between ++i and i++?
a) ++i increments before use, it+ increments after use
b) ++i decrements before use, it+ decrements after use
c) Both are identical
d) None of the above
1. Which of the following is correct for accessing the third element of an array arr?
a) arr[2]
b) arr[3]
c) arr(2)
d) None of the above
4. Which of the following correctly initializes a 2D array?
int arr[2][2] = {1, 2, 3, 4};
int arr[2][2] = {{1, 2}, {3, 4}};
Both a and b
None of the above
5. What is the result of the following code?
int arr[] = {10, 20, 30, 40, 50};
printf("%d", arr[3]);
How can you create a variable with the floating number 2.8?
float num = 2.8;
num = 2.8 double;
num = 2.8 float;
val num = 2.8;
Which function is often used to output values and print text?
printf()
printword()
write()
output()
What do we call the following? int myNumbers[ ] = {25, 50, 75, 100};
An array
A class
A pointer
None of the above
How do you start writing an if statement in C?
if x > y
if x > y then
if x > y()
if (x > y)
If CPU is the brain of the computer
what is the equivalent of "memory " in the human brain for a computer
What was the major drawback of the computers that used vacuum tubes
inexpensive
unreliable.
energy-efficient.
reliable and fast.
What happens when the condition in a for loop becomes false ?
What does a variable declaration tell the compiler about a variable ?
type
size
value
usage
The main difference between a compiler and an interpreter
speed
platform
execution
syntax
