wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Basic elements of computer programming

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Of the elements of programming, which are always used by every program?

a)

Input and Output

b)

Input and looping

c)

Control and arithmetic

2.

A high score in a video game may change over time. Where is this value stored for the program to work with?

a)

Variable

b)

Loop

c)

Conditional

3.

Why are conditional statements important?

a)

They monitor the input

b)

The control a program loop by stopping it at a specified predetermined event.

c)

The deliver the output

d)

They receive data from the computer calculation

4.

What is a loop?

a)

Data that changes over time

b)

Controlled calculations

c)

Putting information into the computer and generating an output display

d)

Cycling through a set of instructions until a condition is met

5.

How is output from a program characterized?

a)

Saving data in a file

b)

Entering information into a program

c)

The end result of the program

d)

The processing of data

6.

If you wanted to assign a value to a variable, which operator would you use?

a)

==

b)

=

c)

=!

d)

equals

7.

How does a loop know when to stop?

a)

It stops when it reaches the last line of the program

b)

When a predetermined condition is met

c)

It stops after the first trial run

d)

After 100 runs

8.

What is a variable?

a)

A number

b)

A place in memory that holds a data value that changes

c)

A data value that changes

9.

A placeholder for a piece of information that can change

a)

condition

b)

loop

c)

variable

10.

Which of the following statements is correct?

a)

Algorithms define the routes through programs and the sequence in which instructions occur

b)

Data defines the routes through programs. Algorithms control the sequence in which instructions occur

c)

Algorithms define the routes through programs. Data controls the sequence in which instructions occur

11.

These specify the execution of the statements depending whether the condition is satisfied or not

a)

Variables

b)

Loops

c)

Conditionals

12.

The element of computer programming allows interaction of the program with the external entities

a)

variable

b)

input/output

c)

loop

d)

conditional

13.

Which of the following can't be considered as a variable?

a)

Age

b)

Name

c)

Philippines

d)

Grade

14.

In the equation Area = PI x R x RArea\ =\ PI\ x\ R\ x\ R , which is not a variable?

a)

Area

b)

PI

c)

=

d)

R

15.

What is/are true about pseudocode?

a)

somewhere between English and a coding language.

b)

used by programmers to figure out the logic and flow of their programs without having to worry about syntax.

c)

more precise than English but less precise than a coding language.

d)

all of these