Revision Library

Translators and Integrated Development Environments (IDEs) - Worksheets, Questions and Revision

20 original exam-style questions - 7 pages of questions with a full mark scheme - free printable PDF.

Download PDFJump to mark scheme (page 8)Read the revision guide
« Previous: Trace Tables and Binary/Hex ConversionsNext: 1D and 2D Array Processing: Writing and Tracing Programs »
Revision Library
revisionlibrary.co.uk
GCSE · Computer Science

P2.10 Translators and Integrated Development Environments (IDEs)

OCR J277 · Calculators not allowed · about 90 minutes
Total Marks
Name: _______________________________    Date: ____ / ____ / ______
Answer ALL questions. Show all your working.
1
Source code must be translated into a form the computer's processor can execute directly.
(a)Which term describes code written by a programmer, before it has been translated?(1)
  • A) Object code
  • B) Source code
  • C) Byte code
  • D) Pseudocode
(b)Which term describes the code that is ready to be executed directly by the CPU, after translation?(1)
  • A) Source code
  • B) Flowchart
  • C) Object code
  • D) Comment
(c)Which of these is an example of a low-level language?(1)
  • A) Python
  • B) Assembly language
  • C) Java
  • D) Visual Basic
(d)Which of these is an example of a high-level language?(1)
  • A) Machine code
  • B) Assembly language
  • C) Binary
  • D) Python
(Total for Question 1 is 4 marks)
2
An Integrated Development Environment (IDE) is a piece of software that provides tools to help a programmer write, test and debug programs.
(a)Which IDE tool shows different types of code element (e.g. keywords, strings, comments) in different colours, to make code easier to read?(1)
  • A) Auto-complete
  • B) Syntax highlighting
  • C) Breakpoint
  • D) Run-time environment
(b)Which IDE tool automatically suggests the rest of a keyword, variable or function name as the programmer types, to save time and reduce spelling mistakes?(1)
  • A) Auto-complete
  • B) Error diagnostics
  • C) Translator
  • D) Debugger
(c)Which IDE tool checks code for syntax errors as it is typed, underlining and reporting the location and type of any errors found?(1)
  • A) Auto-complete
  • B) Error diagnostics
  • C) Breakpoint
  • D) Refactoring tool
(d)Which IDE tool lets a programmer run a program from within the IDE, without needing separate software, so it can be tested immediately?(1)
  • A) Run-time environment
  • B) Version control
  • C) Auto-indentation
  • D) Stepping
(Total for Question 2 is 4 marks)
3
State two features of high-level languages that make them different from low-level languages.
(Total for Question 3 is 2 marks)
4
State two features of low-level languages (such as assembly language or machine code).
(Total for Question 4 is 2 marks)
5
Programs can be written in either a high-level or a low-level language.
(a)State one advantage of writing a program in a high-level language rather than a low-level language.(2)
(b)State one advantage of writing a program in a low-level language rather than a high-level language.(2)
(Total for Question 5 is 4 marks)
6
State what an assembler does.
(Total for Question 6 is 2 marks)
7
Explain why assembly language uses mnemonics (short text codes such as ADD or JMP) instead of pure binary machine code.
(Total for Question 7 is 3 marks)
8
Two important translators used when developing software are compilers and interpreters.
(a)Define what is meant by a compiler.(2)
(b)Define what is meant by an interpreter.(2)
(Total for Question 8 is 4 marks)
9
Explain how a compiler translates a program, including what happens if the compiler finds a syntax error.
(Total for Question 9 is 4 marks)
10
Explain how an interpreter translates and executes a program, including what happens if it reaches a line containing a syntax error.
(Total for Question 10 is 4 marks)
11
State three differences between compilers and interpreters.
(Total for Question 11 is 6 marks)
12
A company is developing firmware for a low-cost embedded thermostat. The firmware must run as fast as possible on very limited memory, and will be mass-produced and never modified once installed.
(Total for Question 12 is 3 marks)
13
A student is learning to program and wants to test small sections of code and see errors immediately as they type, without waiting for the whole program to be checked.
(Total for Question 13 is 3 marks)
14
Explain how a breakpoint helps a programmer to debug a program.
(Total for Question 14 is 3 marks)
15
Explain how single-stepping through code (running the program one line at a time) helps a programmer to debug it.
(Total for Question 15 is 2 marks)
16
Explain one benefit of a code refactoring tool built into an IDE.
(Total for Question 16 is 2 marks)
17
A junior programmer keeps forgetting to close brackets and does not indent the inside of loops consistently, making the code hard to read.
(Total for Question 17 is 4 marks)
18
A student writes the following single line of code, which contains a syntax error (a missing closing bracket): OUTPUT ("Well done"
(a)Describe what happens when this line is translated using a compiler.(2)
(b)Describe what happens when this line is run using an interpreter.(2)
(Total for Question 18 is 4 marks)
19
A software company is deciding whether to develop a new mobile game using a compiler or an interpreter. Explain the key differences between compilers and interpreters, and discuss which would be more appropriate for this mobile game, justifying your answer.
(Total for Question 19 is 6 marks)
20
Discuss how IDE tools support a programmer while developing and testing a large program, referring to at least three different IDE tools in your answer.
(Total for Question 20 is 6 marks)
Mark scheme · P2.10 Translators and Integrated Development Environments (IDEs)

Question 1

Question 2

Question 3

Question 4

Question 5

Question 6

Question 7

Question 8

Question 9

Question 10

Question 11

Question 12

Question 13

Question 14

Question 15

Question 16

Question 17

Question 18

Question 19

Question 20

Mark your answers

This checks your answers in your browser, stores nothing on a server and needs no account.

Question 1

4 marks
Did your answer earn the marks?

Question 2

4 marks
Did your answer earn the marks?

Question 3

2 marks
Did your answer earn the marks?

Question 4

2 marks
Did your answer earn the marks?

Question 5

4 marks
Did your answer earn the marks?

Question 6

2 marks
Did your answer earn the marks?

Question 7

3 marks
Did your answer earn the marks?

Question 8

4 marks
Did your answer earn the marks?

Question 9

4 marks
Did your answer earn the marks?

Question 10

4 marks
Did your answer earn the marks?

Question 11

6 marks
Did your answer earn the marks?

Question 12

3 marks
Did your answer earn the marks?

Question 13

3 marks
Did your answer earn the marks?

Question 14

3 marks
Did your answer earn the marks?

Question 15

2 marks
Did your answer earn the marks?

Question 16

2 marks
Did your answer earn the marks?

Question 17

4 marks
Did your answer earn the marks?

Question 18

4 marks
Did your answer earn the marks?

Question 19

6 marks
Did your answer earn the marks?

Question 20

6 marks
Did your answer earn the marks?
Mark my answers