wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Mind Sprint

Total questions: 15

Worksheet time: 15mins

Name
Class
Date
1.

Which device is used as the "brain" of the computer?

a)

RAM

b)

CPU

c)

Hard Drive

d)

GPU

2.

What does binary value 1010 represent in decimal?

a)

10

b)

12

c)

08

d)

15

3.

Which part of the computer is non-volatile?

a)

RAM

b)

ROM

c)

CPU

d)

Cache

4.

Which symbol is used for comments in C?

a)

#

b)

//

c)

<!-- -->

d)

%

5.

What will be the output of 2 + 3 * 4 in most programming languages?

a)

20

b)

14

c)

24

d)

18

6.

Which device connects two different networks?

a)

Switch

b)

Hub

c)

Router

d)

Repeater

7.

In relational databases, a primary key must be:

a)

Unique and Not Null

b)

Only Unique

c)

Only Not Null

d)

Duplicate

8.

Which of these is a looping structure in C?

a)
  • if-else

b)

for

c)

switch

d)

case

9.

Which command is used to create a new table in SQL?

a)

INSERT

b)

MAKE

c)

CREATE

d)

BUILD

10.

Which of these is a DDL command?

a)

SELECT

b)

INSERT

c)

CREATE

d)

UPDATE

11.

What will be the output?

#include<stdio.h>

int main() {

int a = 5;

printf("%d", a++);

return 0;

}

a)

5

b)

6

c)

4

d)

Error

12.

Find the Output:

#include<stdio.h>

int main() {

int a = 10;

printf("%d", a == 10);

return 0;

}

a)

Compilation Error

b)

10

c)

1

d)

0

13.

Predict Output:

#include<stdio.h>

int main() {

printf("%c", 65);

return 0;

}

a)

65

b)

0

c)

Error

d)

A

14.

What will be the output?

#include<stdio.h>

int main() {

printf("%d", 5 > 2 ? 1 : 0);

return 0;

}

a)

0

b)

1

c)

2

d)

5

15.

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;

}

a)

Equal

b)

Still Equal

c)

0

d)

Error