Language Translators (Cambridge (CIE) A Level Computer Science): Exam Questions

Exam code: 9618

39 mins7 questions
14 marks

A student uses a laptop to write a program that is saved as a text file.

The program code is written using an Integrated Development Environment (IDE).

(i) One presentation feature found in a typical IDE is prettyprint.

Identify and describe one other presentation feature found in a typical IDE.

(2)

(ii) One debugging feature found in a typical IDE is single stepping.

Identify and describe one other debugging feature found in a typical IDE.

(2)

24 marks

A program is written in a high-level language by a team of three programmers using an Integrated Development Environment (IDE).

Describe how the programmers can use the debugging features of a typical IDE during the development of the program.

3a3 marks

A program has been developed and released for general use. After a few months of use an error is detected where under certain circumstances it outputs an unexpected value.

The program contains a function Lookup(). After investigation, it is found that this is the function that sometimes returns an incorrect value.

An Integrated Development Environment (IDE) is used to help locate the error.

The IDE features of watch window, single stepping and breakpoint will be used.

Explain these features including the order that they will be used in to locate the error in Lookup().

3b2 marks

To solve the error a programmer decides to create a new module.

The design of the new module has been completed and the module is being coded.

Identify two features of an IDE that will help during the coding of this new module.

4a2 marks

A software developer is writing a computer program.

The developer uses an interpreter while writing the program code because it is easier for debugging.

Explain one reason why it is easier to debug the program code using an interpreter instead of a compiler.

4b3 marks

The program is ready to be sold to customers.

The developer uses a compiler because it creates an executable file.

Explain the reasons why the need to create an executable file makes the complier the appropriate choice when the program is complete.

5a2 marks

A programmer uses an Integrated Development Environment (IDE) to write a computer program. The IDE has both a compiler and an interpreter as built-in translators.

The programmer decides to use the compiler when testing the final program.

Describe the benefits of using the compiler during testing.

5b6 marks

IDEs have many features other than built-in translators.

Complete the table by identifying one other common IDE feature that can be used for each purpose. Describe how each feature helps the user during program development.

Each feature must be different. Do not give translator as one of your features.

Purpose

IDE feature

Description

for coding

for presentation

for debugging

6a4 marks

A programmer uses both a compiler and an interpreter to translate a program written in a high-level language.

Describe the advantages of using the interpreter compared to the compiler to translate the program.

6b1 mark

State one reason why some high-level languages are partially compiled and partially interpreted.

6c4 marks

(i) Identify two features that support the visual presentation of the code in a typical Integrated Development Environment (IDE).

(2)

(ii) Identify two features that support the debugging of the code in a typical IDE.

(2)

74 marks

A programmer uses an Integrated Development Environment (IDE) to develop a program that monitors air quality.

Describe the following features of a typical IDE.

Context‑sensitive prompts ....................................

Single stepping .......................................................