0% found this document useful (0 votes)
7 views

Compilers and interpreters worksheet plus ms

The document is a topic test for GCSE Computer Science focusing on translators and facilities of programming languages. It includes questions on programming language characteristics, the role of translators, and Integrated Development Environments (IDEs). Additionally, it provides a mark scheme for assessing student responses.

Uploaded by

Angi S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Compilers and interpreters worksheet plus ms

The document is a topic test for GCSE Computer Science focusing on translators and facilities of programming languages. It includes questions on programming language characteristics, the role of translators, and Integrated Development Environments (IDEs). Additionally, it provides a mark scheme for assessing student responses.

Uploaded by

Angi S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

GCSE Computer Science (9-1)

GCSE Computer Science (9-1) –Translators and Facilities of Languages - Topic Test

Translators and Facilities


of Languages

Topic Tests

Photocopiable Resources
Edulito©2017 Page 1
GCSE Computer Science (9-1) –Translators and Facilities of Languages - Topic Test

Terms and Conditions of Use


Your school has permission to copy this resource as many times as you require and to use it as
you wish within your school/organisation.

You do not have permission to distribute it as a paper or electronic document to other schools
or organisations.

Any questions? Email: [email protected]


© 2016 Edulito and its licensors. All rights reserved.

Edulito©2017 Page 2
GCSE Computer Science (9-1) –Translators and Facilities of Languages - Topic Test

Topic Test - Translators and facilities of languages


1(a) List three things that programming languages have the ability to do. [3]

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

1(b) What is the difference between a high-level and a low-level programming languages?
[6]

High-Level Low-Level

1(c) Produce a list of THREE high level programming languages. [3]


1 ………………………………………………………………………………………………………………………………………

2 ………………………………………………………………………………………………………………………………………

3 ………………………………………………………………………………………………………………………………………

Edulito©2017 Page 3
GCSE Computer Science (9-1) –Translators and Facilities of Languages - Topic Test

2 In computer science, what is the purpose of a translator? [3]


………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

3(a) What is an assembly language? [1]


………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

3(b) Explain the purpose of an assembler. [2]


………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

4 Complete this table in relation to the characteristics of a compiler and an interpreter. [10]

Compiler Interpreter

Function

Edulito©2017 Page 4
GCSE Computer Science (9-1) –Translators and Facilities of Languages - Topic Test

Error
checking

Speed

Examples

Use

Edulito©2017 Page 5
GCSE Computer Science (9-1) –Translators and Facilities of Languages - Topic Test

5 (a) What is an Integrated Development Environment (IDE)? [1]

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

5(b) (i) What is the role played by an editor in an IDE? [2]

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

5(b) (ii) The editor has features that assist with the writing and editing of code. Explain these

features below. [3]

Feature Explanation

Auto-completion

Bracket matching

Edulito©2017 Page 6
GCSE Computer Science (9-1) –Translators and Facilities of Languages - Topic Test

Syntax checks

5(c) What is a run-time environment? Why is this important? [2]

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

………………………………………………………………………………………………………………………………………………

Edulito©2017 Page 7
GCSE Computer Science (9-1) –Translators and Facilities of Languages - Topic Test

Topic Test Translators and facilities of languages - Mark Scheme


Question Answer Additional Guidance Mark
Number
1a input data [1] 3
output data [1]
process calculations [1]
process decisions based on certain conditions being met [1]
process repetition [1]
Max 3 marks
1b High-Level Low-Level Include 3 answers from 6
Easier to learn Difficult to learn each list
Similar to human language Not similar to human
Slow to execute language
Easy to change Fast to execute
To write a program you do Difficult to change
not need knowledge of Programs include link to
hardware hardware
Used to write applications Used to write hardware
programs
1c Java, JavaScript, C++, Ruby, BASIC, Python etc Accept other high-level 3
1 mark for each Max 3 languages that have not
been listed.
2 They convert/translate high-level code [1] into machine code 3
[1]
They maintain the function/logic of the original code. [1]
3a Assembly language is a low-level language that relates to the 1
operation of the CPU. [1]
An assembler translates assembly language [1] into machine
code (a pattern of bits that the computer's processor can use
to perform its basic operations).[1]
3b An assembler translates assembly language [1] into machine 2
code (a pattern of bits that the computer's processor can use
to perform its basic operations).[1]
4 Compiler Interpreter 1 mark for each correct 10
Function A compiler translates An response.
the whole program interpreter translates
into machine code code into machine
before the program is code, instruction by
run. instruction - the
CPU executes each
instruction before the
interpreter moves on
to translate the next
instruction.
Error checking Difficult to test Interpreted code will
individual lines of show an error as soon
compiled code as as it hits a problem,
all bugs are reported so it is easier
after the program has to debug
been compiled. than compiled code.
Speed Compilation is slow Interpreted code is
but machine code can slower to execute
be executed quickly. than compiled code.
Examples Java and C++ JavaScript, PHP,
Python and Ruby.

Use Used where high Used


speed and for dynamic web
performance are applications.
crucial

Edulito©2017 Page 8
GCSE Computer Science (9-1) –Translators and Facilities of Languages - Topic Test

5a An integrated development environment (IDE) is 1


an application used to create and develop software. [1]
5bi The IDE has a text edit area [1] that allows developers to 2
write, edit and save a document of code. [1]
5 b ii Feature Explanation 1 mark for each correct 3
response.
Auto-completion As you start to type the first part of say

a procedure, it suggests or completes

the procedure.

Bracket matching If you forget to close a bracket while

writing, coloured highlighting may help

you to detect missing brackets.

Syntax checks This recognises incorrect use

of syntax and highlights any errors.

5c A runtime environment allows you to execute the program 2


one step at a time. [1]
This is useful to test that the code is working line by line /36
before creating the final complete program.[1]

Edulito©2017 Page 9

You might also like