0% found this document useful (0 votes)
41 views8 pages

Programming Concepts Kyd9xQWfPcF5SkXh Easy

Uploaded by

leoryo
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)
41 views8 pages

Programming Concepts Kyd9xQWfPcF5SkXh Easy

Uploaded by

leoryo
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/ 8

IGCSE Cambridge (CIE) Computer Science 25 mins 10 questions

Exam Questions

Programming
Concepts
Variables & Constants / Data Types / Input & Output / Sequence / Selection /
Iteration / Totalling & Counting / String Handling / Arithmetic, Logical & Boolean
Operators / Procedures & Functions / Local & Global Variables / Library Routines /
Maintaining Programs

Scan here for your answers


or visit savemyexams.com

Total Marks /25

© 2024 Save My Exams, Ltd. Get more and ace your exams at savemyexams.com 1
1 Four pseudocode descriptions and five pseudocode statements are shown.

Draw a line to link each pseudocode description to the most appropriate pseudocode
statement.

Some pseudocode statements will not be used

(4 marks)

© 2024 Save My Exams, Ltd. Get more and ace your exams at savemyexams.com 2
2 Tick (✓) one box to show the named section of a program that performs a specific task.

A. file
B. function
C. parameter
D. process
(1 mark)

3 A function is declared using pseudocode.

FUNCTION ConvertToCm(Inches: REAL)


RETURNS REAL RETURN Inches * 2.4
ENDFUNCTION

Tick (✓) one box which accurately describes the use of the variable Inches

A. answer
B. call
C. parameter
D. response
(1 mark)

© 2024 Save My Exams, Ltd. Get more and ace your exams at savemyexams.com 3
4 A database table, 2018MOV, is used to keep a record of movie details

Complete the table to identify the most appropriate data type for each field based on
the data shown in the database table, 2018MOV.

Field Data type

CatNo

Title

Genre1

Streaming

© 2024 Save My Exams, Ltd. Get more and ace your exams at savemyexams.com 4
(2 marks)

5 The variables X, Y and Z are used to store data in a program:

X stores a string

Y stores a position in the string (e.g. 2)

Z stores the number of characters in the string.

Write pseudocode statements to declare the variables X, Y and Z.

(3 marks)

6 Four programming concepts and four descriptions are shown.

Draw one line to connect each programming concept to the most appropriate
description

© 2024 Save My Exams, Ltd. Get more and ace your exams at savemyexams.com 5
(3 marks)

7 Tick (✓) one box in each row to identify the most appropriate data type for each
description. Only one tick (✓) per column.

Description Data type

Boolean Char Integer Real String

a single character from the keyboard

multiplecharacters from the keyboard

only one of two possible values

only whole numbers

any number

(4 marks)

© 2024 Save My Exams, Ltd. Get more and ace your exams at savemyexams.com 6
8 An algorithm has been written in pseudocode to calculate a check digit for a four-digit
number. The algorithm then outputs the five-digit number including the check digit. The
algorithm stops when –1 is input as the fourth digit.

01 Flag FALSE
02 REPEAT
03 Total 0
04 FOR Counter 1 TO 4
05 OUTPUT "Enter a digit ", Counter
06 INPUT Number[Counter]
07 Total Total + Number * Counter
08 IF Number[Counter] = 0
09 THEN
10 Flag TRUE
11 ENDIF
12 NEXT Counter
13 IF NOT Flag
14 THEN
15 Number[5] MOD(Total, 10)
16 FOR Counter 0 TO 5
17 OUTPUT Number[Counter]
18 NEXT
19 ENDIF
20 UNTIL Flag

Give the line number(s) for the statements showing:

Totalling ...........................................................................

Count-controlled loop .......................................................

Post-condition loop ............................................................

(3 marks)

© 2024 Save My Exams, Ltd. Get more and ace your exams at savemyexams.com 7
9 The variables P and Q are used to store data in a program. P stores a string. Q stores a
character.

Write pseudocode statements to declare the variables P and Q, store "The world" in P
and store 'W' in Q

(2 marks)

10 Describe the difference between a local variable and a global variable.

(2 marks)

© 2024 Save My Exams, Ltd. Get more and ace your exams at savemyexams.com 8

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy