wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

1.2.2 Applications Generation

Total questions: 28

Worksheet time: 14mins

Name
Class
Date
1.

Creates an executable file

a)

Interpreter

b)

Compiler

c)

Assembler

2.

Must be installed for the code to run on another machine

a)

Interpreter

b)

Compiler

c)

Assembler

3.

The correct order of the stages of compilation is:

a)

Lexical Analysis, Syntax Analysis, Code Generation, Code Optimisation

b)

Lexical Analysis, Syntax Analysis, Code Optimisation, Code Generation

c)

Syntax Analysis, Lexical Analysis, Code Optimisation, Code Generation

d)

Syntax Analysis, Lexical Analysis, Code Generation, Code Optimisation

4.

Removing whitespace is in:

a)

Lexical Analysis

b)

Syntax Analysis

c)

Code Generation

d)

Code Optimisation

5.

Token creation is in:

a)

Lexical Analysis

b)

Syntax Analysis

c)

Code Generation

d)

Code Optimisation

6.

Symbol table is created in:

a)

Lexical Analysis

b)

Syntax Analysis

c)

Code Generation

d)

Code Optimisation

7.

The code is checked against the rules in:

a)

Lexical Analysis

b)

Syntax Analysis

c)

Code Generation

d)

Code Optimisation

8.

The syntax tree is created in:

a)

Lexical Analysis

b)

Syntax Analysis

c)

Code Generation

d)

Code Optimisation

9.

The user will first be alerted to errors found in:

a)

Lexical Analysis

b)

Syntax Analysis

c)

Code Generation

d)

Code Optimisation

10.

The syntax tree is converted into object code in:

a)

Lexical Analysis

b)

Syntax Analysis

c)

Code Generation

d)

Code Optimisation

11.

Redundant code is removed in:

a)

Lexical Analysis

b)

Syntax Analysis

c)

Code Generation

d)

Code Optimisation

12.

The code is improved to run as fast as possible in:

a)

Lexical Analysis

b)

Syntax Analysis

c)

Code Generation

d)

Code Optimisation

13.

At the linking stage...

a)

Code from the linked library is copied into the program

b)

Code from the linked library is removed from the program

14.
What happens during syntax analysis?
a)
Tokens are compared to the rules of the programming language
b)
Syntax errors are identified
c)
Symbol table updated with more details
d)
Semantic analysis (finding logic errors)
e)
Code generation
15.
Identify advantages of using libraries
a)
Error-free
b)
Save time
c)
Re-usable
d)
No need to ‘reinvent the wheel’
e)
Designed by experts
16.
Describe the function of a loader
a)
Provided by the operating system, a loader retrieves the library or subroutine from the given memory location
b)
Tokens are compared to the rules of the programming language
c)
Syntax errors are identified
d)
Symbol table updated with more details
e)
Semantic analysis (finding logic errors)
17.
What is the purpose of the optimisation stage of compilation?
a)
Reduce execution time
b)
Reduce inefficient sections of code
c)
Remove redundant code
d)
Tokens are compared to the rules of the programming language
e)
Syntax errors are identified
18.
Give 3 examples of utilities
a)
Compression
b)
Disk defragmentation
c)
Antivirus
d)
Word Processor
e)
Presentation Software
19.
What is the difference between applications and systems software?
a)
Applications software is utilised directly by the end-user whereas systems software ensures the high performance of the computer.
b)
Systems software is utilised directly by the end-user whereas application software ensures the high performance of the computer.
20.

Give advantages of using closed source code

a)

Thorough, regular and well-tested updates

b)

Expert support and user manuals from company

c)

High levels of security as it is developed in a professional, controlled environment

d)

Distributed with the source code

e)

Can be modified and sold on

21.
State features of open source code
a)
Does not require a license to be used
b)
Distributed with the source code
c)
Can be modified and sold on
d)
Thorough, regular and well-tested updates
e)
High levels of security as it is developed in a professional, controlled environment
22.

Identify advantages of using interpreted code over compiled code

a)

Is platform independent

b)

Runs instantly without time waiting for compilation

c)

Faster to execute

d)

Does not require compiler to run

23.
Give two advantages of using compiled code over interpreted code
a)
Faster to execute
b)
Does not require compiler to run
c)
Is platform independent
d)
Runs instantly without time waiting for compilation
24.
What is assembly language?
a)
A low-level language that has almost a one-to-one relationship with machine code. It is platform specific.
b)
a computer programming language consisting of binary or hexadecimal instructions which a computer can respond to directly.
c)
a programming language with strong abstraction from the details of the computer
25.
What are the stages of compilation?
a)
Lexical analysis
b)
Syntax analysis
c)
Code generation
d)
Optimisation
e)
Completion
26.
What are the similarities between static and dynamic linkers?
a)
Both link external modules and libraries to main program
b)
Library code copied into the file. File size increased
c)
Addresses of libraries included within file. External updates automatically feed through to main program.
27.
What are the differences between static and dynamic linkers?
a)
Static: Library code copied into the file. File size increased
b)
Dynamic: Addresses of libraries included within file. External updates automatically feed through to main program.
c)
Dynamic: Library code copied into the file. File size increased
d)
Static: Addresses of libraries included within file. External updates automatically feed through to main program.
28.

Converts low level code to machine code

a)

Interpreter

b)

Compiler

c)

Assembler