Past-paper question · 2022 May-June · Paper 31 · Q8(a)

Question 8(a) 2022 · May-June · Paper 31 · 2 marks

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

Official answer for Question 8

Part (a)

✓
Two from:

Question 2

✓
Converts characters to same type if necessary
✓
Then compares values to determine if strictly equal/have same sequence of characters, same length, and same characters
✓
in corresponding positions/same value
✓
Returns TRUE if the same
✓
Returns FALSE if not the same.

Mark scheme 9626_s22_ms_31.pdf →

Show text version of question

Question 8

Part (a)

Question 8

JavaScript code can use comparison operators.

Explain how each of the following comparison operators works in JavaScript when comparing the number 1 with the text “1”.

Part (a)

the == operator

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

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

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

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

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

[2]
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_s22_qp_31.pdf

Keep practising this topic