wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Program

Total questions: 21

Worksheet time: 27mins

Name
Class
Date
1.
_________ holds your data for later
a)
Object
b)
Expression
c)
Variable
d)
Value
2.

All the steps in problem-solving are correctly stated EXCEPT:

a)

define the problem

b)

propose some solutions

c)

determine the best solution

d)

test and validate the solution

3.

The divide-and-conquer approach is used to:

a)

define a problem

b)

validate a solution

c)

decompose large problems

d)

create solution algorithms

4.

SET pi to 3.14 SET radius, circumference TO 0 READ radius LET circumference=2*pi*radius The identifier pi is an example of a:

a)

constant

b)

data type

c)

string

d)

variable

5.

SET pi to 3.14 SET radius, circumference TO 0 READ radius LET circumference=2*pi*radius The identifier radius is an example of a:

a)

constant

b)

data type

c)

string

d)

variable

6.

All the following statements about problem decomposition are correct EXCEPT:

a)

significant components are input, process and output.

b)

an IPO chart may be used to delineate the components.

c)

problems are broken down into simpler sub problems.

d)

problem decomposition simplifies the problem in step.

7.

The two main phases of problem solving comprise ______ and _________.

a)

algorithm, execution

b)

algorithm, implementation

c)

definition, execution

d)

definition, implementation

8.

refer to the diagram above. Column 1, 2, and 3 represent:

a)

read, store and write

b)

output, store and input

c)

write, process and read

d)

input, process and output

9.

Print grade is an example of a Statement.

a)

output

b)

input

c)

store

d)

process

10.

The terms ‘letter’ and ‘grade’ in column 2 are:

a)

constants


b)

keywords

c)

variables

d)

subroutines

11.

_______ is a type of programming data that represents Text.

a)

object

b)

string

c)

syntax

d)

expression

12.
If I set a variable football and I want it to equal Green Bay Packers how would it be written in code?
a)
football = Green Bay Packers
b)
football = ¨Green Bay Packers¨
c)
Green Bay Packers = football
d)
¨Green Bay Packers¨ = football
13.

What is problem solving?

a)

The method to solve a problems

b)

Discussion to solve the problem

c)

The process of transforming the description of a problem into a solution.

d)

The process to understanding the problem

14.

What is goal to achieve in problem solving?

a)

To improve work efficiency

b)

To solve a problem.

c)

To reduce cost

d)

To learn how to solve the problem

15.

________ is a series of instructions that are followed to complete a task or solve a problem.

a)

instructions

b)

algorithms

c)

computers

d)

recipe

16.

____________ can be considered an example of an algorithm

a)

answer to a question

b)

name of a person

c)

favorite subjects

d)

a recipe for making pancake

17.

The options below contain the instructions for making a smoothie: Which one should come first?

a)

Put the lid on the blender.

b)

Add fruit to the blender.

c)

Switch the blender on.

d)

Add milk to the blender.

18.

What are algorithms used for?

a)

To plan out the solution to a problem

b)

As a platform to program a solution

c)

To test a solution to a problem

19.

Which of these is NOT an algorithm?

a)

Following recipe instructions

b)

Working out how an engine works

c)

Tying your shoelaces

d)

Making a cup of coffee

20.

First step of problem solving is

a)

Draw flowchart

b)

Identify problem

c)

Ananlyse the problem

d)

Planning a solution

21.

Dividing a complex problem into small problems is called

(a)