wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CS IGCSE Unit 7. Low and high level programming - recap

Total questions: 76

Worksheet time: 43mins

Name
Class
Date
1.
Compilers translate high-level language into machine code.
a)
True
b)
False
2.
High and low-level programming languages can be understood by a computer.
a)
False
b)
True
3.
An example of a high-level programming language is:
a)
Python
b)
Assembly
c)
Machine code
d)
Cloud
4.
Machine code uses the binary number system.
a)
True
b)
False
5.
High-level languages need to be compiled into machine code before they can be used by a computer.
a)
True
b)
False
6.
Machine code is easy to understand by a human.
a)
False
b)
True
7.

What is a MNEMONIC?

a)

A single action that can be performed by a computer.

b)

A symbol that represents an instruction in assembly code.

c)

A high level language keyword.

d)

A register used inside a CPU A register used inside a CPU.

8.
Assembly language has mnemonics.
a)
True
b)
False
9.

Which of the following is NOT a translator?

a)

Assembler

b)

Compiler

c)

Interpreter

d)

Executable

10.
Difficult to write in (but easier than Machine code)
a)
Interpreter
b)
Translator
c)
Compiler
d)
Assembly Langauge
11.
LOAD r1,
LOAD r2,
ADD r1,
DIV r1, #2
a)
Machine Code
b)
High Level
c)
Assembly Language
12.

What generation of programming language is Machine Code

a)

1st Generation

b)

2nd Generation

c)

4th Generation

d)

3rd Generation

13.
Directly executable by the CPU. Written in 1's and 0's or Hex.
a)
Machine Code
b)
High Level Language
c)
Assembly Language
d)
VB.net
14.
01010101010100101010100101010101010011111001000100001010100101
a)
Machine Code
b)
High Level
c)
Assembly Language
15.
Compilers, assemblers and interpreters are examples of this.
a)
Translator
b)
Run time environment
c)
Editor
d)
Error diagnostics
16.

Program is translated line by line as the program is running

a)

Assembler

b)

Compiler

c)

Interpreter

17.

Select all the High-level programming languages ...

a)

Python

b)

C#

c)

PHP

d)

Assembly

18.

Select all the Low-level programming code ...

a)
b)
c)
d)
19.

Select all the types of program translator ...

a)

Compiler

b)

Interpreter

c)

Assembler

d)

Parser

20.

What is another name for the original untranslated program code?

a)

Source code

b)

Object code

c)

Machine code

d)

Assembly code

21.

Choose the BEST word to complete this sentence:


Assembly code uses short, simple codes called ___________ to represent the instructions of a processor's instruction set.

a)

mnemonics

b)

opcodes

c)

acronyms

d)

abbreviations

22.

Choose all the examples of high-level language code ...

a)
b)
c)
d)
e)
23.

Select all the TRUE statements about high-level languages ...

a)

They use recognisable English language keywords

b)

They provide libraries of built-in functions for the programmer

c)

Code must be translated into binary machine code before it can be executed

d)

They are difficult to learn

24.

Select all the statements that are FALSE about programming in low-level languages ...

a)

It is easy to learn to program

b)

There are good debugging tools available

c)

Code runs very quickly

d)

You need a good knowledge of the processor architecture

25.

Which level of a programming language is Machine Code?

a)

Low

b)

High

26.

Which level of a programming language is Assembly Code?

a)

Low

b)

High

27.

Which level would create the fastest code to execute?

a)

Low

b)

Assembly

c)

High

28.

Which level would create the easiest code for humans to understand?

a)

Low

b)

Assembly

c)

High

29.

Python is an example of a High Level programming language

a)

True

b)

False

30.
Machine Code uses mnemonics to represent instructions
a)
True
b)
False
31.
An advantage of programming in Low Level is
a)
Easier for us to understand
b)
Easier to debug
c)
Programs require less file space
32.
A disadvantage of programming in Low Level is
a)
No technical skill is required
b)
Needs to be translated before it can be executed
c)
Difficult for humans to debug
33.
An advantage of programming in High Level is
a)
Easier for us to understand
b)
Useful for device drivers
c)
Programs execute faster than other generations
34.
A disadvantage of programming in High Level is
a)
A lot of code must be translated before it can be executed
b)
Difficult to debug
c)
High level of technical skill is required
35.

Which generation?

a)

Machine Code - Low

b)

Assembly Code - Low

c)

High Level

36.

Which generation?

a)

Machine Code - Low

b)

Assembly Code - Low

c)

High Level

37.

Which generation?

a)

Machine Code - Low

b)

Assembly Code - Low

c)

High Level

38.

Binary is the only language a computer can understand

a)

True

b)

False

39.

Computers must translate everything into binary

a)

True

b)

False

40.

High Level Code is easier for humans to understand as it is written in English

a)

True

b)

False

41.

What is the only thing that computers understand?

a)

Machine Code

b)

Low Level Language

c)

High Level Language

d)

Algorithm

42.

Before a computer can understand a program it must be...

a)

Translated into its machine code.

b)

Translated into a high level language.

c)

Translated into a low level language.

43.

Java, Python, PHP, and C++ are examples of

a)

low level languages

b)

Graphic arts languages

c)

medium level languages

d)

high level languages

44.
What is the correct definition of an algorithm?
a)
An algorithm is a step by step instructions to solve a problem.
b)
An algorithm is a process of baking bread.
c)
An algorithm is a software used to compute numbers.
d)
An algorithm is the process of breaking problems.
45.

Which of these is the set of rules that must be followed when typing code using a programming language?

a)

Syntax

b)

Value

c)

Expression

d)

Statement

46.

Which of these is the process of typing a series of instructions to have a computer perform a task?

a)

programming

b)

computing

c)

composing

d)

creating

47.

Machine code is written using...

a)

Binary/hexadecimal

b)

English-like key words

c)

Plain English

d)

Abbreviated mnemonic keywords

48.

Assembly langauge is written using...

a)

Binary/hexadecimal

b)

English-like key words

c)

Plain English

d)

Abbreviated mnemonic keywords

49.

Advantages of low-level languages include...

a)

Direct access to the CPU

b)

Programs written will often be more efficient than high-level programs

c)

Easier to remember programming commands

d)

Can use subroutines and advanced data structures

50.

Assembly language is better than machine code because...

a)

it is easier for humans to read

b)

it is easier to remember the instructions

c)

a person is less likely to make mistakes in assembly language

d)

it is written using English-like keywords

51.

Which of these is machine code?

a)

A

b)

B

52.

This is where the code is written.

a)

Translator

b)

Run time environment

c)

Editor

d)

Error diagnostics

e)

Notepad

53.
Compilers, assemblers and interpreters are examples of this.
a)
Translator
b)
Run time environment
c)
Editor
d)
Error diagnostics
54.
Translates high level code into low level code.
a)
Interpreter
b)
Compiler
c)
Assembler
d)
Error diagnostics
e)
Interpreter and complier
55.
This translator is used to translate all of the source code at the same time and creates one executable file
a)
Interpreter
b)
Compiler
c)
Assembler
56.
This translator is used to translate the source code one instruction at a time, but doesn't create an executable file.
a)
Interpreter
b)
Compiler
c)
Assembler
57.

Uses Mnemonics as command words (for example LDA, STA and ADD)

a)

High level code

b)

Low level code

c)

Assembly language

58.
Which of the following is NOT a feature of the editor?
a)
Auto-colour coding for strings, functions and command words.
b)
Auto complete and auto correct
c)
Auto indentation
d)
Line numbering
e)
Spell check
59.
Which of the following will allow you to translate assembly code into machine code?
a)
Interpreter
b)
Compiler
c)
Assembler
d)
All of them
e)
Assembler and compiler
60.
Which errors can error diagnostic tools help you fix?
a)
Syntax errors
b)
Logic errors
61.

What generation of programming language is Machine Code

a)

1st Generation

b)

2nd Generation

c)

4th Generation

d)

3rd Generation

62.

What type of language translator is needed for the 1st Generation to the CPU

a)

Compiler

b)

No translator needed

c)

Assembler

d)

Interpreter

63.

2nd generation to 1st Generation language needs what type of translator.

a)

An assembler

b)

Interpreter

c)

No translator needed

d)

Compiler

64.

Which generation is the fastest code to execute.

a)

3rd Generation

b)

2nd Generation

c)

4th Generation

d)

1st Generation

65.

What is the easiest to program for a programmer.

a)

1st Generation

b)

2nd Generation

c)

4th Generation

d)

3rd Generation

66.

Why would you program in a low level language.

a)

Easier to understand

b)

Uses less code

c)

Makes programs with small file sizes

d)

Simple to de-bug

67.

Select all the High-level programming languages ...

a)

Python

b)

C#

c)

PHP

d)

Assembly

68.

Select all the Low-level programming code ...

a)
b)
c)
d)
69.

What is another name for the original untranslated program code?

a)

Source code

b)

Object code

c)

Machine code

d)

Assembly code

70.

Choose the BEST word to complete this sentence:


Assembly code uses short, simple codes called ___________ to represent the instructions of a processor's instruction set.

a)

mnemonics

b)

opcodes

c)

acronyms

d)

abbreviations

71.

A logic error

a)

is when the program is coded correctly, but an error occurs because of a problem while the program is being executed (not because of a mistake in the code)

b)

is when incorrect words or punctuation is used, or when correct words and punctuation are used in the wrong order

c)

is when the stars don't line up properly and a cosmic ray changes a true value to a false value

d)

is when the program is coded incorrectly to produce an incorrect result, but with correct statements. The only way to know there was an error is to notice that the result is wrong

72.
Resolving errors in a program is known as...
a)
Debugging
b)
Refixing
c)
Error Checking
d)
Problem Solving
73.
Syntax errors
a)
read the program and begin execution.
b)
function imperfectly to express computations.
c)
occur when the programmer does not follow the rules of the language
74.
What does IDE stand for?
a)
Integrated Debugging Equipment
b)
Integrated Debugging Environment
c)
Integrated Development Equipment
d)
Integrated Development Environment
75.

IDE's contain a ________ environment which allows you to execute the program

a)

runtime

b)

outtime

c)

walktime

d)

linetime

76.

Text area used to enter code in an IDE.

a)

Breakpoints

b)

Code Editor

c)

Error Diagnostics

d)

Run time environment