100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

CAMBRIDGE IGCSE COMPUTER SCIENCE PAPER 2 EXAM Q&A

Rating
-
Sold
-
Pages
13
Grade
A+
Uploaded on
17-10-2024
Written in
2024/2025

CAMBRIDGE IGCSE COMPUTER SCIENCE PAPER 2 EXAM Q&A

Institution
IGCSE Computer Science
Course
IGCSE Computer Science









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
IGCSE Computer Science
Course
IGCSE Computer Science

Document information

Uploaded on
October 17, 2024
Number of pages
13
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

CAMBRIDGE IGCSE COMPUTER
SCIENCE PAPER 2 EXAM Q&A
Sequence (flowchart) - Answer-A code construct that flows in order

Selection (flowchart) - Answer-A code construct that makes a choice

Iteration (flowchart) - Answer-A code construct that loops.

Pseudocode - Answer-'Mock' or 'pretend' code - a way of describing an algorithm you
are intending to code without using a specific programming language

ENDIF - Answer-Pseudocode statement that ends an "if" block (we don't need it in
Python but we MUST remember it in pseudocode)

NEXT (counter variable) - Answer-Pseudocode:
A FOR loop must be ended with this

Sequence - Answer-When instructions are executed one after another, e.g.:

INPUT x
y <- x+1
OUTPUT y

Selection - Answer-When a decision is made regarding which instructions get executed
next e.g.
IF mark >= 50
OUTPUT "pass"
ELSE
OUTPUT "fail"
ENDIF

increment - Answer-to make bigger, particularly to make bigger by one
e.g.
i=i+1
or
i += 1

decrement - Answer-to make smaller, particularly to make smaller by one
e.g.

i=i-1
or
i -= 1

, Accumulator Variable - Answer-a variable which we add to eg. as we loop through a list
to compute a total or average

It should usually be initialised to zero before we start adding to it

Iteration (repetition) - Answer-When a block of instructions is executed repeatedly e.g

FOR i = 1 *TO* 10
sum <- sum + i
NEXT i

Self-documenting code - Answer-When code is developed in a way that makes it easy
for another programmer to understand. This can include suitable naming of data
structures and subroutines, and code comments.

All code should be written this way

Type declaration - Answer-When a variable is allocated a particular data type (integer,
string, Boolean, float).

Source Code - Answer-The code written by the programmer before it is translated in to
machine code.

Suitable Naming Conventions - Answer-When subroutines and data structures are
given a name which represents what they do or store.

Indentation - Answer-Positioning a block of code, e.g. a for loop or an if statement,
further from the margin than the main program. The use of indentation makes programs
easier to read.

In Python correct indentation is important, since indenting starts a block and unindenting
ends it.

In Pseudocode it's only important for readibility

Comment - Answer-Text included in code that is for the human reader and is ignored by
the program.

In Python, they are indicated by the # symbol at the start of a line.

In pseudocode they start with //

Subroutine (subprogram) - Answer-A self-contained block of code or small computer
program that runs within another larger computer program.
These split up a program into a number of units, each performing a specific function.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
biggdreamer Havard School
View profile
Follow You need to be logged in order to follow users or courses
Sold
251
Member since
2 year
Number of followers
67
Documents
18071
Last sold
1 hour ago

4.0

38 reviews

5
22
4
4
3
6
2
2
1
4

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions