wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Midterm Exam

Total questions: 17

Worksheet time: 16mins

Name
Class
Date
1.

A data type that is used to represent single character data.

a)

Int

b)

Float

c)

String

d)

Char

2.

This part sets a control variable to an initial value.

a)

Increment

b)

Decrement

c)

Initialization Expression

d)

Update Expression

3.

After the program has run, you need to be sure that the results are correct, that they are in a form you like, and that your program produces the correct solution in all cases.

a)

Test the Result

b)

Document the Program

c)

Develop an Algorithm

d)

Run the Program

4.

A looping statement that never ends.

a)

Pretest Loop

b)

Posttest Loop

c)

do...While Loop

d)

Infinite Loop

5.

An operators follow a variable. Example: a++, x++ and y++.

a)

Posttest

b)

Pretest

c)

Prefix

d)

Postfix

6.

It is normally consist of a comparison of the control variable to a value.

a)

Update Expression

b)

Continuation Condition

c)

Initialization Expression

d)

increment and Decrement

7.

A pretest loop. It is considered a single executable statement.

a)

For Loop

b)

While Loop

c)

Do...While Loop

d)

Nested Loop

8.

The following are the basic program components except:

a)

Preprocessor Directives

b)

Constant and Type Definition Section

c)

Looping Section

d)

Main Function Heading

9.

It is a loop that uses condition to control whether the body of the loop is executed before going through the loop.

a)

Prefix

b)

Postfix

c)

Pretest

d)

Posttest

10.

A pretest loop examining a Boolean expression before causing a statement to be executed.

a)

Pretest

b)

Posttest

c)

For Loop

d)

While Loop

11.

Smart: Globe; Posttest:

(a)  

12.

Mouse: Keyboard; Global:

(a)  

13.

Male:Female ; Increment:

(a)  

14.

White:Black ; Less Than:

(a)  

15.

Cup:Saucer ; Char:

(a)  

16.

Answer the given expression given below

17.

Answer the expression given below