Applications Generation (OCR A Level Computer Science): Exam Questions

37 mins13 questions
11 mark

A small manufacturing business uses networked computers with closed source application software installed.

A spreadsheet application package is used to calculate employee’s wages.

Give one benefit of using a spreadsheet application for this task compared to calculating wages manually.

Did this page help you?

21 mark

A programmer creates this function shown in Fig. 5 using a high-level language.

function mystery(x,y) 
  total = x + y 
  while x >= 10 then 
     x = x – 10 
     y = y – 10 
     total = total + x + y 
  endwhile 
  return total 
endfunction

Before the code in Fig. 5 can be executed, a translator must be used.

State the purpose of a translator.

Did this page help you?

33 marks

When Imogen creates programs in a high-level language, she makes use of libraries.

Explain what is meant by a library, giving one example of when one may be used.

Did this page help you?

44 marks

Operating systems usually come with utility software pre-installed.

Give two examples of utility software, explaining the purpose of both.

Did this page help you?

52 marks

Imogen installs a compiler for a high-level programming language onto her computer and makes use of an open source IDE (Integrated Development Environment).

State what is meant by the term ‘open source software’.

Did this page help you?

61 mark

Imogen installs a compiler for a high-level programming language onto her computer and makes use of an open source IDE (Integrated Development Environment).

Give one benefit to Imogen of using an open source IDE rather than a closed source IDE.

Did this page help you?

15 marks

For each statement shown in Table 5, tick (✓) one box in each row to indicate which stage of compilation each action takes place at.

Lexical analysis

Syntax analysis

Code generation

Comments and whitespace are removed

Keywords are replaced with tokens

Object code is created

Symbol table created for variables

Builds an abstract syntax tree

Table 5

Did this page help you?

24 marks

Explain two differences between a compiler and an interpreter.

Did this page help you?

32 marks

When Imogen creates programs in a high-level language, she makes use of libraries.

Describe one advantage of the use of library files to programmers.

Did this page help you?

42 marks

Describe one disadvantage of the use of library files to programmers.

Did this page help you?

53 marks

Explain how linkers are used during the compilation process.

Did this page help you?

6a4 marks

A small manufacturing business uses networked computers with closed source application software installed.

A spreadsheet application package is used to calculate employee’s wages.

Give two other types of application packages that the small business could use, giving an example of a task that the business could use each application for.

6b3 marks

Describe a drawback of using closed source software (rather than open source software) for the small business.

Did this page help you?

72 marks

Describe the purpose of code optimisation

Did this page help you?