0% found this document useful (0 votes)
46 views6 pages

CS CH7 High Low Level Languages

This document is an exam for a computer science course covering high- and low-level programming languages. It contains 8 questions asking students to define terms, give examples, and describe key differences between high- and low-level languages. The exam instructions specify it is 2 hours long and to answer all questions in full sentences or code samples as directed.

Uploaded by

Giga Chad
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)
46 views6 pages

CS CH7 High Low Level Languages

This document is an exam for a computer science course covering high- and low-level programming languages. It contains 8 questions asking students to define terms, give examples, and describe key differences between high- and low-level languages. The exam instructions specify it is 2 hours long and to answer all questions in full sentences or code samples as directed.

Uploaded by

Giga Chad
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/ 6

COMPUTER SCIENCE Allowed time

SUBJECT
(Chapter 7) High- and low-level languages - 2 Hour

SUBJECT CODE
(CIE)
SUBJECT CODE
(EDEXCEL)
CANDIDATE
NAME
CANDIDATE
NUMBER
CENTER
NUMBER

INSTRUCTIONS
• Answer all questions.
• Use black ink or ball-point pen.
• Fill in the boxes at the top of this page with your name, centre number and
candidate number.
• Do not use an erasable pen or correction fluid.
• You may use a calculator.
• Answer the questions in the spaces provided
– there may be more space than you need.

INFORMATION
• The total mark for this paper is 50.
• The marks for each question are shown in brackets
– use this as a guide as to how much time to spend on each question.

ADVICE
• Read each question carefully before you start to answer it.
• Try to answer every question.
• Check your answers if you have time at the end.

Wai Lin Htet CS 1|Page


High- and low-level languages
1 What is a program? [2 marks]
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
2 The following terms are used about high-level programming languages. [3 marks]
State what each term means.
a Portable
......................................................................................................................................
......................................................................................................................................
b Problem solving
......................................................................................................................................
......................................................................................................................................
c Translation
......................................................................................................................................
......................................................................................................................................
3 Give four examples of high-level programming languages. [4 marks]
1 ....................................................................................................................................
2 ....................................................................................................................................
3 ....................................................................................................................................
4 ....................................................................................................................................

Wai Lin Htet CS 2|Page


4 Give four benefits to a programmer of developing a program using a high-level
programming language. [4 marks]
1 .................................................................................................................................
2 .................................................................................................................................
3 .................................................................................................................................
4 ..................................................................................................................................

5 The following terms are used about low-level programming languages. State what
each term means. [2 marks]
a Machine code
......................................................................................................................................
......................................................................................................................................
b Assembly language
......................................................................................................................................
......................................................................................................................................
6 Give four benefits to a programmer of developing a program using a low-level
programming language. [4 marks]
1 .................................................................................................................................
......................................................................................................................................
2 ..................................................................................................................................
......................................................................................................................................
3 .................................................................................................................................
......................................................................................................................................
4 ..................................................................................................................................
......................................................................................................................................

Wai Lin Htet CS 3|Page


7 Using the programming statements in Chapter 7 of the Cambridge IGCSE Computer
Science textbook, show what the program code for adding two numbers (FrirstNumber
and SecondNumber) together could look like: [4 marks]

a HILL
......................................................................................................................................
b LLL
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
c Hexadecimal
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
d Binary
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
8 (a) What is a translator? [2 marks]
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
(b) Name three different types of translator. [3 marks]
1 ...................................................................................................................................
2 ...................................................................................................................................
3 ...................................................................................................................................

Wai Lin Htet CS 4|Page


(c) For each translator describe which type of language it is used for and what is
produced after a successful translation. [6 marks]
1 ....................................................................................................................................
......................................................................................................................................
......................................................................................................................................
2 ...................................................................................................................................
......................................................................................................................................
......................................................................................................................................
3 ...................................................................................................................................
......................................................................................................................................
......................................................................................................................................
9 (a) What is meant by a syntax error? [2 marks]
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
(b) What is meant by a logic error? [2 marks]
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
(c) What happens when a compiler finds a syntax error? [2 marks]
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................

Wai Lin Htet CS 5|Page


(d) What happens when an interpreter finds a syntax error? [2 marks]
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
......................................................................................................................................
10 Eight statements are shown on the left and three translators are shown on the right.
Draw lines to connect each statement to the translator it applies to (there can be more
than one line to a translator). [8 marks]

One low-level language statement is usually


translated into one machine code
Instruction.

Translates a high-level language program


into machine code. Compiler

Assembled programs can be used without


this.

No executable file of machine code is Interpreter


produced

Executes a high-level language program a


statement at a time
Assembler

Compiled programs are used without this.

Translates a low-level language program


into machine code.

One high-level language statement can be


translated into several machine code
Instructions.

Wai Lin Htet CS 6|Page

You might also like