Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Foundations of Programming

Total questions: 21

Worksheet time: 11mins

Name
Class
Date
1.

A decision, in a flowchart, will always have:

a)

Two exit arrows

b)

One exit arrow

c)

Three exit arrows

d)

Four exit arrows

2.

Flowcharts normally use standard symbols to represent the different types of instructions. Define the use of the following symbol: ------>

a)

Storage

b)

The flow from one component to the next

c)

The start or end of the process

d)

An input or output

3.

The set of letters that identifies the address of a specific resource on the Web.

a)

URL

b)

HTML

c)

ISP

d)

HTTP

4.

Which programming structure performs a set of instructions in the order they appear?

a)

Selection

b)

Loop

c)

Sequence

d)

Object

5.

Which best describes one of the ten categories of Scratch blocks that are color-coded medium-blue and are used to control a sprite's movement.

a)

Events Blocks

b)

Control Blocks

c)

Motion Blocks

d)

Sensing Blocks

6.

What is output by the following pseudocode?


set c to 5


repeat until c > 60


change c by 10


say c

a)

15

b)

35

c)

55

d)

65

e)

75

7.

Problem: Tara has 15 tickets. Dean has 10 tickets. Tara gives Dean 2 tickets. How many more tickets does Tara have than Dean?


Solution:

Tara's tickets: 15

Subtract 2 tickets from Tara's total tickets:

15- 2 = 13

Dean 's tickets: 10

Add 2 tickets to Dean's tickets:

10 + 2 = 12

Subtract Tara's total tickets from Dean's total tickets:

13 - 12 =1


Answer: Tara has one more ticket than Dean.


Which term describes the instructions presented in this example?

a)

Syntax

b)

Algorithm

c)

Statement

d)

Programming code

8.

Input

a)

keyboard, mouse, touch screen, microphone

b)

hard drive: hard disk drive, solid state drive

c)

integrated electronic circuit that performs calculations

d)

photo, text, video, audio

9.

Storage

a)

keyboard, mouse, touch screen, microphone

b)

hard drive: hard disk drive, solid state drive

c)

integrated electronic circuit that performs calculations

d)

photo, text, video, audio

10.

Process

a)

keyboard, mouse, touch screen, microphone

b)

hard drive: hard disk drive, solid state drive

c)

integrated electronic circuit that performs calculations

d)

photo, text, video, audio

11.

Output

a)

keyboard, mouse, touch screen, microphone

b)

hard drive: hard disk drive, solid state drive

c)

integrated electronic circuit that performs calculations

d)

photo, text, video, audio

12.

When drawing a flowchart, every stage should be listed in a logical order.

a)

True

b)

False

13.

A computer system has the following characteritics except:

a)

Speed

b)

Creativity

c)

Access to Data

d)

Accuracy

14.

Variables need to be ______________ before they are used by the program.

a)

a. reserved

b)

b. initialized

c)

c. declared

d)

d. assigned

15.

Rules for pseudocode allow for more than one statement per line.

a)

True

b)

False

16.

A device that transfers data from one network to another in an intelligent way.

a)

Server

b)

Router

c)

Terminator

d)

Hub

17.

The terminal symbol in structured programming flowcharts indicates an action in the logic of a process

a)

True

b)

False

18.

Computer are much more accurate in processing data than humans because they can perform repetitive tasks better than a human.

a)

True

b)

False

19.

An do-while statement tests a condition and is an example of a:

a)

Logic

b)

Loop

c)

Selection

d)

Control

20.

At the end of The Iterative Development Process, programmers take what they learned from testing & feedback and use it to finalizing their program & stop the cycle.

a)

True

b)

False

21.

How do you submit your scratch program to a studio? Place the following steps in the correct order:


1. Choose correct studio folder

2. Add to studio

3. Select OK

4. Make your project shared

a)

4, 2, 1, 3

b)

4, 1, 2, 3

c)

2, 3, 1, 4

d)

2, 1, 4, 3