Question 4

AQA Computer Science June 2019 Paper 1A level5 marks

On the specification

4.1
4.4 Theory of computation
4.2
4.4 Theory of computation
4.3
4.4 Theory of computation
Question text

4 4.1 Explain the functionality of the * metacharacter when it is used in a regular expression. [1 mark] 4.2 Explain the functionality of the ? metacharacter when it is used in a regular expression. [1 mark] 4.3 Complete Table 2 to show which of the strings belong to the language defined by the regular expression 1|01+. Table 2 String Belongs to language (Y/N)? 1 11 1 0111 0101 111 0011 Copy the contents of the unshaded cells in Table 2 into the table in your Electronic Answer Document. [3 marks] You are advised to spend no more than 20 minutes on this section. Enter your answers to Section B in your Electronic Answer Document. You must save this document at regular intervals. The question in this section asks you to write program code starting from a new program/project/file. You are advised to save your program at regular intervals.