wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CIW Programming Essentials and Logic

Total questions: 25

Worksheet time: 50mins

Name
Class
Date
1.

What is the term for a graphical diagram that uses symbols to represent the steps contained in a program?

a)

Graphing

b)

Flowchart

c)

Pseudocode

d)

Brainstorming

2.

Charles is stuck. He knows that computers use zeros and ones in a sequence to represent data, but he cannot remember the name of this term. His teacher reminds him that it is referred to as:

a)

bisect

b)

decimal

c)

binary

d)

syntax

3.

Study the flow chart shown:

This flowchart provides steps for determining whether a number is even or odd. Which statement should be inserted in the empty rectangle to correctly determine the solution?

a)

Divide the number by 2

b)

Multiply the number by 2

c)

Divide the number by 3

d)

Multiply the number by 3

4.

Which term describes the various characteristics of an object, such as size, color and type?

a)

Argument

b)

Method

c)

Property

d)

Class

5.

Katherine is creating a computer program that will allow the cursor to jump to a different location when the mouse is clicked on a certain image. Which programming component should Katherine use to tell the program what to do when the mouse is clicked on the image?

a)

a class

b)

an event

c)

a parameter

d)

an event handler

6.

Which type of error occurs when a programmer misspells a word or instruction?

a)

Runtime

b)

Logic

c)

Syntax

d)

System

7.

Olivia thinks that her first program code is quite good and that it will run well. She is surprised to learn that the computer, however, is not able to understand the language her code is written in, without first translating it. What is the only language that a computer can understand without needing to be translated?

a)

Assembly Language

b)

High-Level

c)

Application Language

d)

Machine Language

8.

Consider the following:

Input a number

Check to see if the number ends in 0, 2, 4, 6 or 8?

If yes, write "The number is even."

If no, write "The number is odd."

This is an example of which type of control structure?

a)

Sequence

b)

Iteration

c)

Loop

d)

Selection

9.

Which control structure repeats a set of instructions until some condition is met?

a)

Object

b)

Loop

c)

Sequence

d)

Selective

10.

Consider the general problem-solving steps shown:

Which option lists the problem-solving steps in the correct order?

a)

4, 1, 3, 2

b)

2, 1, 4, 3

c)

4, 2, 1, 3

d)

1, 2, 3, 4

11.

Erik is using object-oriented programming to design a game. He has created a Dragon class, and he has used the Dragon class to build two Dragon objects. Which term describes the objects that Erik built using the Dragon class?

a)

Subclasses

b)

Instances

c)

Methods

d)

Occurrences

12.

Which of the following best defines the term "algorithm"?

a)

A way to write programming code in short English phrases to describe the program components

b)

The rules for writing instructions in a specific programming language

c)

A combination of zeroes and ones that represents an instruction to the computer

d)

A set of step-by-step instructions to solve a problem or perform a task

13.

A set of instructions that tells a computer what to do to accomplish a particular task is called:

a)

a computer program.

b)

programming language

c)

an application

d)

software

14.

Which type of programming error causes a program to stop loading or executing?

a)

Syntax

b)

System

c)

Runtime

d)

Logic

15.

Julia has an idea. She wants to use a computer to create a list of daily "to-do" suggestions based on the previous activity on her calendar. To create this, she needs to develop a set of instructions to tell the computer what to-do to accomplish this task. This is known as:

a)

a flowchart

b)

a programming language

c)

a computer program

d)

an algorithm

16.

Devising a plan to solve a problem or perform a task using a set of step-by-step instructions is called:

a)

running a program

b)

interpreting instructions

c)

creating syntax

d)

writing an algorithm

17.

Which term describes the various characteristics of an object, such as size, color and type?

a)

Class

b)

Argument

c)

Method

d)

Property

18.

Which term describes a set of instructions that lists steps that must be followed in a particular order, starting at the beginning and continuing to the end?

a)

Compiled

b)

Assembly

c)

Sequential

d)

Executed

19.

During testing, your development team identified some problems in the first program draft. What is the next step you need to complete?

a)

Test the plan.

b)

Use logic to plan a solution.

c)

Revise the plan until a solution is found.

d)

Review the result of the solution

20.

Which of the following best defines the term "algorithm"?

a)

A way to write programming code in short English phrases to describe the program components

b)

A set of step-by-step instructions to solve a program or perform a task

c)

A combination of zeroes and ones that represents an instruction to the computer

d)

The rules for writing instructions in a specific programming language

21.

Lucy is sharing her program with a student at another school. She is having a video conference with the student and shows a section of code that she is working on. Lucy describes it as the decision control structure. The other student is confused. What other name can this structure be called?

a)

Selection

b)

Object

c)

Loop

d)

Sequence

22.

Rosie has created a computer program, tested it and made revisions. To grade it, her professor runs it and watches the code. What is it called when the computer performs the instructions contained in the program?

a)

Executing

b)

Debugging

c)

Compiling

d)

Assembling

23.

Anna is asked to explain the differences between compiled and interpreted languages in her programming class. Which statement would be her best response?

a)

Interpreted languages usually execute faster than compiled languages.

b)

Compiled languages are translated in batches, whereas interpreted languages are translated entirely before use.

c)

Interpreted languages are translated entirely before use.

d)

Compiled languages usually execute faster than interpreted languages.

24.

Consider the following example algorithm:

1.Set members to 0

2.For each pair of members in the group, add two to members

3.Continue until all members in the group are counted

4.Display members

Which scenario would cause an error in this algorithm?

a)

Three members in the group

b)

Zero members in the group

c)

Two members in the group

d)

Ten members in the group

25.

Basic mathematics taught in elementary school is a base 10 number system (which makes it easy if you are using your fingers). Computers use a different number system, known as:

a)

base 2

b)

base 1

c)

base 8

d)

base 6