Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
16 views10 pages

ch18 - Logic 2

Uploaded by

phone pyae
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views10 pages

ch18 - Logic 2

Uploaded by

phone pyae
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Sayar Wai Phyo Aung Edexcel CS Past Paper

Name: _______________________________________________

Chapter 18 - Logic

1
Sayar Wai Phyo Aung Edexcel CS Past Paper

Questions
Q1.

Modern society depends on many different embedded systems to function properly.

Boolean operators are used in embedded systems.

Draw the truth table for the Boolean operator AND.


(1)

(Total for question = 1 mark)

Q2.

An online quiz asks students questions about computer science topics.

A player earns a badge for every 100 questions they answer correctly, providing this includes at least 10
hard questions or 30 medium questions.

This can be expressed as (NQ >= 100) and (HQ >= 10 or MQ >= 30).

Complete the truth table.


(6)

2
Sayar Wai Phyo Aung Edexcel CS Past Paper

(Total for question = 6 marks)

Q3.

Complete this truth table.


(4)

(Total for question = 4 marks)

3
Sayar Wai Phyo Aung Edexcel CS Past Paper

Q4.

Computers carry out comparisons.

Complete the truth table.


(6)

(Total for question = 6 marks)

Q5.

A car park uses a number plate recognition system.

Customers pay online in advance to use the car park. Members of staff do not have to pay.

When a car arrives at the exit barrier, the system checks three conditions:
1) The number plate (P) has been recorded by the system.
2) Enough time (T) has been paid for.
3) The car belongs to a member of staff (S).
4
Sayar Wai Phyo Aung Edexcel CS Past Paper

Construct a Boolean logic statement, using P, T and S, to represent the conditions necessary for the
system to raise the exit barrier.
(2)
.............................................................................................................................................

(Total for question = 2 marks)

Q6.

Modern society depends on many different embedded systems to function properly.

Boolean expressions can be used to represent logical behaviours.

• The lights in a room are controlled by an embedded system.


• There is a power (P) switch to control the lights.
• A movement (M) sensor will turn the lights on when there is a person in the room, provided the
power switch has been left in the on position.
• An override (O) switch will turn the lights on, regardless of the state of the movement sensor,
provided the power switch has been left in the on position.

Construct a logic statement to represent the logic of this behaviour, using the symbols P, M, and O.
(3)
.............................................................................................................................................

(Total for question = 3 marks)

Q7.

Computer systems run software programs. The programs provide the instructions needed for the
computer to handle the input, processing and output of data.

Truth tables are used to show how digital output relates to input.

Complete the truth table for the AND and OR statements.


(1)

5
Sayar Wai Phyo Aung Edexcel CS Past Paper

(Total for question = 1 mark)

6
Sayar Wai Phyo Aung Edexcel CS Past Paper

Mark Scheme
Q1.

7
Sayar Wai Phyo Aung Edexcel CS Past Paper

Q2.

Q3.

8
Sayar Wai Phyo Aung Edexcel CS Past Paper

Q4.

Q5.

9
Sayar Wai Phyo Aung Edexcel CS Past Paper

Q6.

Q7.

10

You might also like