Question 7(c) 2015 · October-November · Paper 21 · 2 marks
Reveal official mark-scheme answer

Official answer for Question 7
Part (c)
Part (c)
Used to provide an integrity/verification check
Question 21
Show text version of question
Question 7
Part (c)
Question 7
ASCII character codes are used to represent a single character.
Part of the code table is shown below.
ASCII code table (part) Character Decimal Character Decimal Character Decimal <Space> 32 I 73 R 82
E 69 N 78 W 87 F 70 O 79 X 88 G 71 P 80 Y 89 H 72 Q 81 Z 90
Some pseudocode statements follow which use the built-in functions below:
ONECHAR(ThisString : STRING, Position : INTEGER) RETURNS CHAR returns the single character at position Position (counting from the start of the string with value 1) from the string ThisString. For example: ONECHAR("Barcelona", 3) returns 'r'.
CHARACTERCOUNT(ThisString : STRING) RETURNS INTEGER returns the number of characters in the string ThisString. For example: CHARACTERCOUNT("BRAZIL") returns 6.
CHR(ThisInteger : INTEGER) RETURNS CHAR returns the character with ASCII code ThisInteger. For example: CHR(65) returns character 'A'.
ASC(ThisCharacter : CHAR) RETURNS INTEGER returns the ASCII value for character ThisCharacter. For example: ASC('A') returns 65.
Part (c)
Explain the purpose of sending the value of StringTotal to the remote computer, in
addition to MyString.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[2]
Question 16
Why this question appears here
82% assigned-topic match · Data types and structures › Data types and records
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 9608_w15_qp_21.pdf
