Question 4
OCR Computer Science June 2017 Paper 1A level11 marks
On the specification
- (a)
- 1.4 Data types, data structures and algorithms
- (b)(i)
- 1.4 Data types, data structures and algorithms
- (b)(ii)
- 1.4 Data types, data structures and algorithms
- (c)
- 1.3 Exchanging data
Question text
4 A cinema offers discounted tickets, but only under one of the following conditions: • Customer is under 18 and has a student card. • Customer is over 60 and has ID which proves this. Let: A be Customer is under 18 B be Customer has a student card C be Customer is over 60 D be Customer has ID Q be Discount ticket issued (a) Complete the Boolean expression below: Q ≡ [3] (b) The cinema has a voucher which promises free popcorn when the voucher is produced whilst buying a soft drink or bottle of water. Let: E be Voucher is shown F be Soft drink is bought G be Bottle of water is bought R be Free popcorn given. This could be written as: R ≡ (E/F) 0 (E/G) (i) Complete the truth table below. E F G (E/F) (E/G) (E/F)0(E/G) 11 1 11 0 10 1 10 0 1 1 1 0 0 1 0 0 [4] (ii) Simplify the expression (E/F) 0 (E/G) [2] Most films are now distributed to cinemas digitally. A studio allows cinemas to download its latest film 5 days before the release date via a private download. It wants to ensure that no cinema shows it before the release date. (c) Describe one technical measure the studio could use to ensure that films are not shown early. [2]