wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Programming

Total questions: 12

Worksheet time: 13mins

Name
Class
Date
1.
Which type is incorrect?
a)
int
b)
double
c)
float
d)
array
2.

What is Decomposition?

a)

Breaking the problem down to look for specific patterns

b)

Solving the problem by placing the algorithm into a single flowchart

c)

Breaking the task down into smaller, more manageable tasks

d)

Identifying where the algorithm needs to be repeated so that it save you time when writing it

3.
Machine Code uses mnemonics to represent instructions
a)
True
b)
False
4.
Which generation of a programming language is Assembly Code?
a)
1st Generation (Low)
b)
2nd Generation (Low)
c)
3rd Generation (High)
5.
What does IDE stand for?
a)
Integrated Debugging Equipment
b)
Integrated Debugging Environment
c)
Integrated Development Equipment
d)
Integrated Development Environment
6.

A logic error

a)

is when the program is coded correctly, but an error occurs because of a problem while the program is being executed (not because of a mistake in the code)

b)

is when incorrect words or punctuation is used, or when correct words and punctuation are used in the wrong order

c)

is when the stars don't line up properly and a cosmic ray changes a true value to a false value

d)

is when the program is coded incorrectly to produce an incorrect result, but with correct statements. The only way to know there was an error is to notice that the result is wrong

7.
List the following in order from simplest to most complex: A) Function; B) Program; C) Step
a)
A,B,C
b)
B,A,C
c)
C,A,B
d)
C,B,A
8.

The continue statment cannot be used with

a)

for

b)

while

c)

do while

d)

switch

9.

goto can be used to jump from main to within a function?

a)

true

b)

false

c)

-

d)

-

10.

Which loop is guaranteed to execute at least one time.

a)

for

b)

while

c)

do while

d)

none of the above

11.

A labeled statement consist of an identifier followed by

a)

:

b)

;

c)

?

d)

=

12.

elaborate DP (a)