Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Coading

Total questions: 60

Worksheet time: 38mins

Name
Class
Date
1.
What is an error in a program that prevents the program from running as expected?
a)
Algorithm
b)
Program
c)
Bug
d)
Code
2.
What is finding and fixing errors in programs?
a)
Debugging
b)
Program
c)
Bug
d)
Code
3.
What is Code?
a)
Rules of conduct.
b)
A pack between friends.
c)
One or more commands designed to be carried out by a computer.
d)
Edoc spelled backwords.
4.
What do we call the person who writes the instructions for the computer to complete a task?
a)
architect
b)
programmer
c)
Bob
d)
composer
5.
What can you make with programming?
a)
Games
b)
Websites
c)
Apps
d)
All of these
6.
A user does this to tell the computer start the commands you have written into the program.
a)
event
b)
run program
c)
function
d)
abstraction
7.
How do we call this?
a)
router
b)
mouse mat
c)
memory stick
d)
printer
8.

Which of these is Google Drive?

a)
b)
c)
d)
9.

WWW stands for

a)

World Worm Web

b)

World Wide Web

c)

World Word Web

d)

World Wild Web

10.

What is the Internet?

a)

A local network.

b)

Mobile phone network.

c)

Is the global system of interconnected computer networks that use the TCP/IP protocol to link devices worldwide.

d)

A local computer network providing a variety of information and communication facilities.

11.
What is a list of steps you can follow to finish a task?
a)
Algorithm
b)
Program
c)
Bug
d)
Code
12.
What is an error in a program that prevents the program from running as expected?
a)
Algorithm
b)
Program
c)
Bug
d)
Code
13.
What is one or more commands or algorithms designed to be carried out by a computer?
a)
Algorithm
b)
Program
c)
Bug
d)
Code
14.
What is finding and fixing errors in programs?
a)
Debugging
b)
Program
c)
Bug
d)
Code
15.
What is the action of doing something over and over again?
a)
Loop
b)
Persistence
c)
Program
d)
Code
16.
What is an algorithm that has been coded into something that can be run by a machine?
a)
Algorithm
b)
Program
c)
Bug
d)
Code
17.
What are statements that only run under certain conditions?
a)
Code
b)
Loop
c)
Conditionals
d)
Binary
18.
What is a way of representing information using only 2 options?
a)
Code
b)
Loop
c)
Conditionals
d)
Binary
19.
How many bits are in a byte?
a)
1
b)
2
c)
4
d)
8
20.
What is a one or zero called in coding?
a)
Byte
b)
Code
c)
Switch
d)
Bit
21.
What are the on/off switches used by computers to communicate called?
a)
Switch
b)
Program
c)
Binary Code
d)
Algorithm
22.

What does the picture represent?

a)

Byte

b)

Code

c)

Switche

d)

Bit

23.

In coding an event is what?

a)

An action that causes something to happen.

b)

An item on your calendar.

c)

A way to move air.

d)

A device that blows air into your computer.

24.

Problems or mistakes in the code for an algorithm or program are known as:

a)

Bugs

b)

Slugs

c)

Tugs

d)

Rugs

25.

Code is...

a)

when it's not warm.

b)

the dog from Garfield.

c)

a song or poem dedicated to someone.

d)

specific instructions in a computer program.

26.

A computer program is

a)

a show on TV.

b)

an algorithm that has been coded into something that can be run by a machine.

c)

a professional graham cracker.

d)

part of a S'more.

27.

When you tell the computer to repeat a command or step over and over and over and over and over and over and over and over and over and... oh yeah, over again as many times as you tell to repeat.

a)

Deja Vu

b)

Loop

c)

Repeating

d)

Being annoying

28.

A field of science in which people use the power of computers to solve big problems.

a)

command

b)

computer science

c)

code

d)

program

29.

A user does this to tell the computer start the commands you have written into the program.

a)

event

b)

run program

c)

function

d)

abstraction

30.

Trying again and again, even when something is very hard.

a)

command

b)

iteration (persisting)

c)

program

d)

code

31.

Finding and fixing errors in a program.

a)

debugging

b)

decompose

c)

digital footprint

d)

variables

32.

A piece of code with multiple steps that have been simplified down to one command which you can easily call over and over again.

a)

digital footprint

b)

run program

c)

abstraction

d)

function

33.

Statements that can only run under certain conditions or situations such as: if the seat is taken, then move to the next available seat.

a)

conditionals (if/then statements)

b)

variable

c)

abstractions

d)

binary

34.

Statements that can only run under certain conditions or situations such as: if the seat is taken, then move to the next available seat.

a)

conditionals (if/then statements)

b)

variable

c)

abstractions

d)

binary

35.

A letter or symbol to which a some value can be assigned.

a)

Print

b)

Variable

c)

Output

d)

Bug

36.

Choose a right C Statement.

a)

Loops or Repetition block executes a group of statements repeatedly.

b)

Loop is usually executed as long as a condition is met.

c)

Loops usually take advantage of Loop Counter

d)

All the above.

37.

What is the output of C Program.?

int main()

{

int a=5;

while(a >= 3);

{

printf("RABBIT\n");

break;

}

printf("GREEN");

return 0;

}

a)

GREEN

b)

RABBIT GREEN

c)

RABBIT is printed infinite times

d)

None of the above

38.

What is the output of C Program.?

int main()

{

int a=25;

while(a <= 27)

{

printf("%d ", a);

a++;

}

return 0;

}

a)

25 25 25

b)

25 26 27

c)

27 27 27

d)

Compiler error

39.

What is the output of C Program.?

int main()

{

int a=32;

do

{

printf("%d ", a);

a++;

}

while(a <= 30);

return 0;

}

a)

32

b)

33

c)

30

d)

No Output

40.

What is the output of C Program.?

int main()

{

int a=32;

do

{

printf("%d ", a);

a++;

if(a > 35)

break;

}

while(1);

return 0;

}

a)

No Output

b)

32 33 34

c)

32 33 34 35

d)

Compiler error

41.

Choose a correct C Statement.

a)

a++ is (a=a+1) POST INCREMENT Operator

b)

a-- is (a=a-1) POST DECREMENT Operator

--a is (a=a-1) PRE DECREMENT Operator

c)

++a is (a=a+1) PRE INCREMENT Operator

d)

All the above.

42.

Choose correct Syntax for C Arithmetic Compound Assignment Operators.

a)

a+=b is (a= a+ b)

a-=b is (a= a-b)

b)

a*=b is (a=a*b)

a/=b is (a = a/b)

c)

a%=b is (a=a%b)

d)

All the above.

43.

What is the output of C Program.?

int main()

{

int k, j;

for(k=1, j=10; k <= 5; k++)

{

printf("%d ", (k+j));

}

return 0;

}

a)

compiler error

b)

10 10 10 10 10

c)

10 11 12 13 14 15

d)

None of the above

44.

What is the output of C Program.?

int main()

{

int k;

for(k=1; k <= 5; k++);

{

printf("%d ", k);

}

return 0;

}

a)

1 2 3 4 5

b)

1 2 3 4

c)

6

d)

5

45.

What is the output of C Program.?

int main()

{

int k;

for(;;)

{

printf("TESTING\n");

break;

}

return 0;

}

a)

No Output

b)

TESTING

c)

Compiler error

d)

None of the above

46.

What is the output of C Program.?

int main()

{

int k;

for(printf("FLOWER "); printf("YELLOW "); printf("FRUITS "))

{

break;

} return 0;

}

a)

Compiler error

b)

FLOWER FRUITS

c)

FLOWER YELLOW

d)

FLOWER YELLOW FRUITS

47.

Loops in C Language are implemented using.?

a)

While Block

b)

For Block

c)

Do While Block

d)

All the above

48.

What is the way to suddenly come out of or Quit any Loop in C Language.?

a)

continue; statement

b)

break; statement

c)

leave; statement

d)

quit; statement

49.

Which loop is faster in C Language, for, while or Do While.?

a)

for

b)

while

c)

do while

d)

all of the above

50.

Choose correct C while loop syntax.

a)

while(condition) { //statements }

b)

{ //statements }while(condition)

c)

while(condition); { //statements }

d)

while() { if(condition) { //statements } }

51.

Choose a correct C for loop syntax.

a)

for(initalization; condition; incrementoperation) { //statements }

b)

for(declaration; condition; incrementoperation) { //statements }

c)

for(declaration; incrementoperation; condition) { //statements }

d)

for(initalization; condition; incrementoperation;) { //statements }

52.

Choose a correct C do while syntax.

a)

dowhile(condition) { //statements }

b)

do while(condition) { //statements }

c)

do { //statements }while(condition)

d)

do { //statements }while(condition);

53.

What is the output of C Program.?

int main()

{

while(true)

{

printf("RABBIT");

break;

}

return 0;

}

a)

RABBIT

b)

RABBIT is printed unlimited number of times.

c)

No output

d)

Compiler error.

54.

What is the output of C Program.?

int main()

{

int a=5;

while(a==5)

{

printf("RABBIT");

break;

}

return 0;

}

a)

RABBIT is printed unlimited number of times

b)

RABBIT

c)

Compiler error

d)

None of the above.

55.

What is the output of C Program.?

int main()

{

int a=5;

while(a=123)

{

printf("RABBIT\n");

break;

}

printf("GREEN");

return 0;

}

a)

GREEN

b)

RABBIT GREEN

c)

RABBIT is printed unlimited number of times.

d)

Compiler error.

56.

int main()


{


int a = 10, b = 25;


a = b++ + a++;


b = ++b + ++a;


printf("%d %d n", a, b);


}

a)

36 64

b)

35 62

c)

36 63

d)

30 28

57.

int main()


{


char arr[7]="Network";


printf("%s", arr);


return 0;


}

a)

Network

b)

N

c)

Garbage Value

d)

Compilation error

58.

#include<stdio.h>

int main()

{

char arr[11]="The African Queen";

printf("%s",arr);

}

a)

The African Queen

b)

The

c)

The African

d)

Compilation error

59.

#include<stdio.h>

int main()

{

float a=0.7;

if(a<0.7)

{

printf("C");

}

else

{

printf("C++");

}

}

a)

C

b)

C++

c)

Compilation Error

d)

None of the these

60.

int main ()


{


int x = 24, y = 39, z = 45;


z = x + y;


y = z - y;


x = z - y;


printf ("n%d %d %d", x, y, z);


}

a)

24 39 63

b)

39 24 63

c)

24 39 45

d)

39 24 45