Past-paper question · 2023 February-March · Paper 32 · Q8(b)

Question 8(b) 2023 · February-March · Paper 32 · 6 marks

Original past-paper question for 8(B)
Original past-paper question for 8(B)
Reveal official mark-scheme answer Official mark-scheme answer for 8(B)

Official answer for Question 8

Part (b)

✓
Six from:

Question 6

✓
•
✓
Used in if/switch statements to test if conditions are true
✓
•
✓
Compare/determine the logic between (two or more) variables/values
✓
•
✓
Can be used with any data type producing a result of any data type
✓
•
✓
Can be used in a more complex manner than in other languages/valid
✓
example e.g. use of OR/|| to select from lists of variables
✓
•
✓
Represented by symbols not words (in JavaScript)
✓
•
✓
Double ‘not’/!! can be used to convert a value to Boolean data type
✓
•
✓
‘not’ has higher precedence to ‘and’ which has higher precedence than
✓
‘or’ in statements/’not’ is executed before ‘and’ which is executed before
✓
‘or’ in statements
✓
•
✓
‘and’/&& used to determine if both/all conditions are true and if so/all,
✓
are true returns true, if (any one condition) is not then it returns false
✓
•
✓
‘or’/||/pipe symbol used to determine if one or other/either conditions are
✓
true and if so it returns true, else it returns false when both/all operands
✓
are false
✓
•
✓
‘not’/! used to determine if values are the same/equal and if so it returns
✓
true, if not it returns false.
✓
Cambridge International AS & A Level – Mark Scheme February/March 2023
✓
9626/32
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9626_m23_ms_32.pdf →

Show text version of question

Question 8

Part (b)

Question 8

JavaScript code can be written to perform different actions depending on different conditions.

Part (b)

Describe the use of logical operators in conditional statements in JavaScript code.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

[6]

Question 10

Topic relevance

Why this question appears here

98% assigned-topic match · Programming for the web

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9626_m23_qp_32.pdf

Keep practising this topic