wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PLD_Midterm Quiz

Total questions: 25

Worksheet time: 30mins

Name
Class
Date
1.
Arithmetic operators include addition, subtraction, multiplication, and division. Which of the following is not an arithmetic operator?
a)
Increments by 1
b)
Decrements by 1
c)
Comparison
d)
Modulus
2.

Instructions that the computer follows one by one from top to bottom until the program reaches the end are ________________.

a)

control structure

b)

sequence structure

c)

selection structure

d)

iteration structure

3.

_____________________ allows the computer to make a choice between alternative conditions.

a)

control structure

b)

sequence structure

c)

decision structure

d)

iteration structure

4.
A whole number that does not contain a decimal is a ________?
a)
character
b)
integer
c)
string
d)
floating point
5.
Telling a program that a specific named variable exists is called:
a)
declaring
b)
evaluating
c)
initializing
d)
naming
6.

A is a Boolean variable that signals when some condition exists in the program.

a)

flag

b)

signal

c)

sentinel

d)

siren

7.
What is the function of the <= operator?
a)
Greater than or equal to
b)
Less than or equal to
c)
Not equal to
d)
And equal 
8.
When you give a variable a starting value, it is called ___________ the variable.
a)
initializing
b)
naming
c)
assigning
d)
declaring
9.
Which data type contains only two values and is used to compare conditions?
a)
String
b)
Boolean
c)
Floating Point
d)
Integer
10.
Which type of operator only returns the values true and false?
a)
Comparison
b)
Arithmetic
c)
Procedural
d)
Assignment
11.
Which of the following is used by the computer to determine how the data stored in a variable can be manipulated?
a)
Name
b)
Assignment
c)
Data Type
d)
Operator
12.
Consider the following expression:
Set grandTotal = Total + 2

If the Total variable has the value 5, what is the value of grandTotal after the expression is evaluated?
a)
3
b)
7
c)
Total2
d)
5
13.

A group of statements that exist within a program for the purpose of performing a

the specific task is a(n) ______________.

a)

block

b)

parameter

c)

module

d)

expression

14.

You ______________ the module to execute it.

a)

call

b)

export

c)

import

d)

define

15.

A design technique that programmers use to break down an algorithm into modules is known as ______________ .

a)

hierarchical subtasking

b)

code refactoring

c)

code simplification

d)

top-down design

16.

Internal documentation refers to books and manuals that document a program, and are intended for use within a company’s programming department.

a)

True

b)

False

17.

Hand tracing is the process of translating a pseudocode program into machine language by hand.

a)

True

b)

False

18.

Modules make it easier for programmers to work in teams.

a)

True

b)

False

19.

Most languages do not allow you to write modules that accept multiple arguments.

a)

True

b)

False

20.

A compound Boolean expression created with the AND operator is true only when both subexpressions are true.

a)

True

b)

False

21.

AND, OR, and NOT are (a)   operators.

22.

A (a)   expression has a value of either true or false.

23.

A (a)   is a piece of data that is sent into a module.

24.

A (a)   variable is one that has been declared but has not been initialized or assigned a value.

25.

Short notes placed in different parts of a program, explaining how those parts of the program work, are called (a)   .