wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Programming and Logic Review

Total questions: 16

Worksheet time: 23mins

Name
Class
Date
1.

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

a)

build programs

b)

test programs

c)

translate programs

d)

identify programs

2.

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

a)

binary

b)

transistor

c)

assembly

d)

compiler

3.

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

4.

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)

decimal

b)

assembly

c)

binary

d)

pseudocode

5.

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

a)

procedural

b)

machine

c)

assembly

d)

high level

6.

The set of rules that must be followed when writing program instructions for a specific programming language is called:

a)

binary

b)

syntax

c)

machine language

d)

executing

7.

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

a)

programming language

b)

an application

c)

software

d)

a computer program

8.

Which statement is true regarding structured programming?

a)

It focuses on on classes and objects that can be reused and changed

b)

It has the same structured and set of commands as machine language, but uses symbols and and recognizable codes

c)

It is a set of rules for defining how declarations, functions, commands and other statements should be arranged in a computer program

d)

it divides the problem into smaller, more manageable tasks that are performed in a sequence to solve the larger problem

9.

Binary is base on which number system

a)

6

b)

10

c)

8

d)

2

10.

turnRight ();

for (var count =0; count <5; count++){ move Forward ();

The instruction code shown is an example of high level

a)

computer language

b)

machine language

c)

assembly language

d)

programming language

11.

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)

application

b)

machine

c)

high level

d)

assembly

12.

Mario has begun learning a programming language. He thought that he would write the code in plain English, however, programming languages require that he learn and follow a special set of rules referred to as

a)

syntax

b)

machine

c)

assembly

d)

executing

13.

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

a)

base 6

b)

base 8

c)

base 1

d)

base 2

14.

Ravi is programming in C++. This type of language is translated entirely into machine language before use. What type of language is Ravi programming in?

a)

machine

b)

interpreted

c)

assembly

d)

compiled

15.

Horatio in interested in computer programming languages, but he has very little experience in using them. Which type of programming languages should he explore because it is easier to learn , use, read and modify?

a)

high level

b)

machine

c)

assembly

d)

application

16.

Which type of programming is designed by breaking problems into smaller, logical problems to them easier to execute?

a)

functional

b)

object-oriented

c)

scripting

d)

structured