NEW
Font size
WorksheetsMind Sprint
Total questions: 15
Worksheet time: 15mins
Which device is used as the "brain" of the computer?
RAM
CPU
Hard Drive
GPU
What does binary value 1010 represent in decimal?
10
12
08
15
Which part of the computer is non-volatile?
RAM
ROM
CPU
Cache
Which symbol is used for comments in C?
#
//
<!-- -->
%
What will be the output of 2 + 3 * 4 in most programming languages?
20
14
24
18
Which device connects two different networks?
Switch
Hub
Router
Repeater
In relational databases, a primary key must be:
Unique and Not Null
Only Unique
Only Not Null
Duplicate
Which of these is a looping structure in C?
if-else
for
switch
case
Which command is used to create a new table in SQL?
INSERT
MAKE
CREATE
BUILD
Which of these is a DDL command?
SELECT
INSERT
CREATE
UPDATE
What will be the output?
#include<stdio.h>
int main() {
int a = 5;
printf("%d", a++);
return 0;
}
5
6
4
Error
Find the Output:
#include<stdio.h>
int main() {
int a = 10;
printf("%d", a == 10);
return 0;
}
Compilation Error
10
1
0
Predict Output:
#include<stdio.h>
int main() {
printf("%c", 65);
return 0;
}
65
0
Error
A
What will be the output?
#include<stdio.h>
int main() {
printf("%d", 5 > 2 ? 1 : 0);
return 0;
}
0
1
2
5
Guess the answer:
#include<stdio.h>
int main() {
int a = 5, b = 5;
if (a++ == b++)
printf("Equal ");
if (a == b)
printf("Still Equal");
return 0;
}
Equal
Still Equal
0
Error
