Photo AI

The pseudo-code in Figure 1 assigns two string values to two variables - AQA - GCSE Computer Science - Question 2 - 2021 - Paper 1

Question icon

Question 2

The-pseudo-code-in-Figure-1-assigns-two-string-values-to-two-variables-AQA-GCSE Computer Science-Question 2-2021-Paper 1.png

The pseudo-code in Figure 1 assigns two string values to two variables. Figure 1 title = 'computer science' level = 'gcse' 2.1 Shade one lozenge that shows the l... show full transcript

Worked Solution & Example Answer:The pseudo-code in Figure 1 assigns two string values to two variables - AQA - GCSE Computer Science - Question 2 - 2021 - Paper 1

Step 1

Shade one lozenge that shows the length of the contents of the variable level in Figure 1.

96%

114 rated

Answer

The length of the contents of the variable level is 4, as 'gcse' contains four characters. Therefore, you should shade lozenge D.

Step 2

Shade one lozenge that shows the result of concatenating the variable title with the variable level in Figure 1.

99%

104 rated

Answer

Concatenating the variable title 'computer science' with the variable level 'gcse' results in 'computer science gcse'. Thus, you should shade lozenge A.

Join the GCSE students using SimpleStudy...

97% of Students

Report Improved Results

98% of Students

Recommend to friends

100,000+

Students Supported

1 Million+

Questions answered

;