Past-paper question · 2015 May-June · Paper 33 · Q5(a)

Question 5(a) 2015 · May-June · Paper 33 · 16 marks

Original past-paper question for 5(A)
Original past-paper question for 5(A)
Original past-paper question for 5(A)
Original past-paper question for 5(A)
Original past-paper question for 5(A)
Original past-paper question for 5(A)
Original past-paper question for 5(A)
Reveal official mark-scheme answer

The answer for this question is in the official mark scheme: open the mark scheme.

Mark scheme 9691_s15_ms_33.pdf →

Show text version of question

Question 5

Part (a)

Question 5

<productcode> ::= <producttype><digitstring><location>

(i)

A BNF rule may be recursive.

What is meant by a recursive rule?

...........................................................................................................................................

.......................................................................................................................................[1]

(ii)

For each statement below, state whether it is TRUE or FALSE.

Statement TRUE or FALSE None of the given rules are recursive Rule 4 is recursive Rule 5 is recursive

[1]

Question 7

Part (c)

Circle whether or not each of the following sequences of characters is a valid product code.

Show how you arrived at your answer by listing, in order, the rules used.

(i)

D175N Valid / Invalid (circle)

Rules .................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

.......................................................................................................................................[2]

(ii)

W058M Valid / Invalid (circle)

Rules .................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

.......................................................................................................................................[2]

(iii)

C86N Valid / Invalid (circle)

Rules .................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

.......................................................................................................................................[2]

Question 8

Question 3

Part (a)

An IT company works on two types of project; software projects and the installation of local

area networks.

Software projects are either bespoke software for a particular client or off-the-shelf software.

Projects have recorded:

  • project ID
  • start date
  • project leader

Off-the-shelf software projects have recorded:

  • title
  • current state of beta testing
  • N – not started
  • O – ongoing
  • C – completed
  • anticipated retail price
  • sales forecast for first year of sales (units)

Bespoke software projects have recorded:

  • customer name
  • agreed cost
  • agreed delivery date

Software projects have recorded:

  • programming language used
  • current state of alpha testing
  • coded using the same three codes as for beta testing

Networking projects have recorded:

  • client name
  • agreed cost

This scenario is to be implemented using object-oriented programming.

Question 9

Complete the class diagram using the classes:

Bespoke, Network, OffTheShelf, Project, Software.

Show properties only for the given data.

Project ProjectID : STRING

[8]

Question 10

Topic relevance

Why this question appears here

98% assigned-topic match · Computational thinking and problem-solving › Recursion

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 9691_s15_qp_33.pdf

Keep practising this topic