wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Programming Terms & Structures

Total questions: 18

Worksheet time: 9mins

Name
Class
Date
1.
Define problem solving.
a)
Ability to formulate problems, think creatively, and express a solution clearly and accurately.
b)
High level language that can run on different kinds of computers with few or no modifications.
c)
A detailed set of instructions that tells a computer how to carry out a task.
2.
Psuedocode is defined as 
a)

a device that detects important physical quality or quantity about surrounding environment.

b)

a group of interacting, interrelated elements that work together.

c)

shorthand notation for programming which uses a combination of informal programming structures and verbal descriptions of code, a detailed algorithm

d)

a detailed algorithm in visual form to show how the code will be designed and organized using specific shapes and brief descriptions

3.
Programming languages are
a)
a system of discrete state, high or low, on or off,  1 or 0.
b)
languages that have been designed to express computations.
c)
a system that uses feedback from the output to control the input.
4.
A compiler
a)
reads the program and translates it before the program starts running.
b)
occurs when the programmer does not follow the rules of programming.
c)
is a formal language.
5.

Logic errors

a)

will not generate any error messages but will not output the right thing

b)

only appear until you run the program.

c)

use a # and the text will be green.

6.
An interpreter
a)
is a high level language that can run on different kinds of computers.
b)
translates the program.
c)
converts a program written in a higher level language line by line into a lower level language and executes it.
7.
Efficiency is 
a)
anything your robot does.
b)
the ability to bring about a desired result with the least amount of time, energy, or material.
c)
a touch sensor used to limit the motion of a device.
8.

While loop is

a)

a control flow statement that allows code to be executed repeatedly.

b)

occurs when the programmer does not follow the rules of the language.

c)

code that functions improperly or badly.

d)

used to count the number of iterations for a (group of) statements.

9.

A Match statement is:

a)

A selection structure in Python

b)

A loop structure in Python

c)

An output structure in Python

d)

An input structure in Python

10.

The process of translating PYTHON code to machine language is:

a)

Compiler

b)

Interpreter

c)

Neither

d)

Both

11.

Which type of programming languages are in a form that (only) the computer can understand.

a)

High Level languages

b)

Assembly Language(s)

c)

Machine Language

d)

Programming Languages

12.

Which type of programming languages are written by people?

a)

High Level languages

b)

Assembly Language(s)

c)

Machine Language

d)

Programming Languages

13.

a Flowchart is defined as 

a)

a device that detects important physical quality or quantity about surrounding environment.

b)

a group of interacting, interrelated elements that work together.

c)

shorthand notation for programming which uses a combination of informal programming structures and verbal descriptions of code, a detailed algorithm

d)

a detailed algorithm in visual form to show how the code will be designed and organized using specific shapes and brief descriptions

14.

This is a type of error or exception that will not allow a program to run based on mistakes made by the programmer.

a)

Syntax Error

b)

Logic Error

c)

Run-Time Error

d)

Debug

15.

This is a type of error or exception that will crash the program while it is running and is often based on user input or impossible calculations.

a)

Syntax Error

b)

Logic Error

c)

Run-Time Error

d)

Debug

16.

This is what programmers do when they encounter a variety of errors or exceptions in their code.

a)

Syntax Error

b)

Logic Error

c)

Run-Time Error

d)

Debug

17.

The 'def' in Python falls into this category:

a)

Sequences (I/O)

b)

Repetition

c)

Selection

d)

Modularity

18.

These are the original instructions for one program written by a programmer before their file is translated into machine language.

a)

Code

b)

Statement

c)

Object Code

d)

Source Code