wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Coding Lessons 1 and 2l

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What type of error causes a program to produce incorrect results, such as the sum of two values instead of the difference of two values?

a)

syntax

b)

bit

c)

runtime

d)

logic

2.

An algorithm is the process of

a)

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

b)

desk checking

c)

binary

d)

translating a program instructions into machine language

3.

Java, Visual Basic, Python, and C++ are examples of what type of programming language?

a)

machine

b)

high level

c)

assembly

d)

sprite

4.

Which of the following statements are not correct about desk-checking?

a)

it is a simple method using a pencil and paper

b)

it is very effective

c)

it is a high level process

d)

it is a computerized process

5.

The purpose of compilers and interpreters is to _________ so the computer can understand its instructions.

a)

buy programs

b)

translate programs

c)

identify programs

d)

test programs

6.

Which type of error is usually identified by the compiler or interpreter?

a)

logic

b)

runtime

c)

system

d)

syntax

7.

which of the following is a number system that uses the values 0 and 1 , and is the primary language that computers use to communicate?

a)

assembly

b)

decimal

c)

pseudocode

d)

binary

8.

There are _____ types of programming errors.

a)

7

b)

5

c)

3

d)

4

9.

Problem solving is

a)

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

b)

translating a program's instructions into machine language

c)

using pencil and paper to work through an existing program by hand

d)

determining whether an existing program performs its intended task and works efficiently

10.

Which program translates a series of instructions, executes them, and then translates the next series until the program is fully executed?

a)

transistor

b)

interpreter

c)

assembler

d)

compiler

11.

Which tool used to plan computer programs is a pictorial representation of program steps?

a)

debugging

b)

pseudocode

c)

assembly

d)

flowchart

12.

Logical thinking is

a)

the steps required to create a solution

b)

systematic steps to correct an error

c)

the process of solving a problem

d)

progressively moving from one connected thought to another

13.

Which of the following is a program that translates other programming languages into machine language?

a)

transistor

b)

assembler

c)

compiler

d)

binary

14.

The general problem- solving strategy includes the following activities: understand the problem, devise a plan, test the plan, review the result, and revise. What is the next step in the process?

a)

create a series of statements using code

b)

return to step 2 and revise until the most efficient method is found

c)

create procedures needed to execute the solution

d)

return back to step 1 and repeat the process until the solution is found.

15.

What type of error occurs while the program is running?

a)

syntax

b)

logic

c)

system

d)

runtime

16.

Which tool used to plan computer programs is an English-like representation of program steps?

a)

debugging

b)

assembly

c)

machine

d)

pseudocode

17.

What is the name of the process that identifies errors and make necessary corrections to meet the program's intended outcome?

a)

flowchart

b)

binary

c)

debugging

d)

assembly

18.

What is the pencil and paper method of finding errors?

a)

slicing

b)

debugging

c)

desk checking

d)

testing individual components

19.

What is not included in a testing plan?

a)

desk checking

b)

machine language

c)

debugging

d)

creating new algorithms

20.

Which of the following is not a goal of testing?

a)

to determine if performs as intended

b)

to determine if the program works efficiently

c)

to find errors

d)

to ensure that it solves the original problem