Quelpr

Other parts of this question

  1. 5(a)(i)Describe the purpose of the lexical analysis stage in translation.[3 marks]
  2. 5(a)(ii)Comment on whether error detection exists during the lexical analysis stage.[1 mark]
  3. 5(c)Write a C program that reads 'testgrades.txt' to count and display the number of students receiving grades A (80-100), B (70-79), C (60-69), and F (<=59),…[10 marks]
  4. 5(d)Write a C program that takes a lowercase string from the user and checks whether it is a palindrome.[9 marks]

More practice: the rest of this paper · more Modular Programming and Data Structures questions · all CAPE Computer Science Unit 1 past papers