Question 1

AQA Computer Science June 2019 Paper 1GCSE7 marks

On the specification

1.1
3.2 Programming
1.2
3.2 Programming
1.3
3.2 Programming
1.4
3.2 Programming3.3 Fundamentals of data representation
Question text

1 The pseudo-code in Figure 1 assigns two string values to two variables. Figure 1 title ← 'computer science' level ← 'gcse' 1.1 Shade one lozenge that shows the length of the contents of the variable level in Figure 1. [1 mark] A 1 B 2 C 3 D 4 1.2 Shade one lozenge that shows the result of concatenating the variable title with the variable level in Figure 1. [1 mark] A 'computer science gcse' B 'Computer Science GCSE' C 'computersciencegcse' D 'computer sciencegcse' 1.3 Shade one lozenge to show which of the following strings is a substring of the box variable title in Figure 1. [1 mark] A 'compsci' B 'puters' C 'sci' D 'tersci' 1.4 The Unicode character code of title[0], which is 'c', is 99. Shade one lozenge to show the Unicode character code of the character level[3] in Figure 1. [1 mark] A 95 B 99 C 101 D 103