0% found this document useful (0 votes)
16 views

1.3.1-Logic-gates_removed

The document contains a series of logic circuit questions, including truth tables, logic statements, and circuit drawings. It covers various logic gates and their functions, as well as the use of translators in programming. The questions require the completion of truth tables, drawing of logic circuits, and identification of errors in data transmission.

Uploaded by

kemisoabigail
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 views

1.3.1-Logic-gates_removed

The document contains a series of logic circuit questions, including truth tables, logic statements, and circuit drawings. It covers various logic gates and their functions, as well as the use of translators in programming. The questions require the completion of truth tables, drawing of logic circuits, and identification of errors in data transmission.

Uploaded by

kemisoabigail
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/ 22

QUESTION 3.

7 (a)

;
%

&

Complete the truth table for this logic circuit.

A B C Working space X

0 0 0

0 0 1

0 1 0

0 1 1

1 0 0

1 0 1

1 1 0

1 1 1
[4]

© UCLES 2016 0478/12/M/J/16 [Turn over


8

(b) Draw a logic circuit corresponding to the following logic statement:

X = 1 if ( ( A is 1 OR B is 1 ) AND ( A is 1 AND B is 1 ) ) OR ( C is NOT 1 )

% ;

&

[5]

© UCLES 2016 0478/12/M/J/16


9

(c) Re-draw the following logic circuit using NAND gates only.

&

Logic circuit re-drawn:

% ;

&

[4]

© UCLES 2016 0478/12/M/J/16 [Turn over


QUESTION 4. 11

10 For this logic statement:

X = 1 if (( A is 1 AND B is 1 ) OR ( B is 1 AND C is NOT 1 ))

(a) Draw the logic circuit.

B X

[4]

(b) Complete the truth table for the given logic statement.

Working space
A B C X

0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[4]

© UCLES 2017 0478/12/M/J/17 [Turn over


QUESTION 5. 7

7 Consider the logic statement:

X = 1 if ((A is 1 AND B is NOT 1) NAND C is 1) XOR ((A is 1 AND C is 1) OR B is 1)

(a) Draw a logic circuit to represent the given logic statement.

B X

[6]

(b) Complete the truth table for the given logic statement.

A B C Working space X

0 0 0

0 0 1

0 1 0

0 1 1

1 0 0

1 0 1

1 1 0

1 1 1

[4]

© UCLES 2018 0478/12/M/J/18 [Turn over


QUESTION 6. 8

8 A logic circuit is shown below.

B
X

(a) Complete the truth table for the given logic circuit.

Working space
A B C X

0 0 0

0 0 1

0 1 0

0 1 1

1 0 0

1 0 1

1 1 0

1 1 1

[4]

© UCLES 2018 0478/13/M/J/18


9

(b) Draw a logic circuit corresponding to this logic statement:

X = 1 if (A is NOT 1) OR ((B is 1 OR C is 1) AND (B is NOT 1 OR A is NOT 1))

B X

[6]

9 Three types of translators are assemblers, compilers and interpreters.

Tick (✓) the appropriate boxes to show which statements apply to each type of translator.

Assembler Compiler Interpreter


Statement
(✓) (✓) (✓)
Translates high-
level language into
machine code
Provides error
diagnostics
Translates whole
program to object
code in one
operation
Translates and
executes one line
of code at a time
[3]

© UCLES 2018 0478/13/M/J/18 [Turn over


QUESTION 7. 4

4 (a) Identify the name and draw the single logic gate that can replace the given logic circuits.

(i)
A
X
B

Name of gate: …………………………… Drawing of gate:

[2]

(ii)
A
X
B

Name of gate: …………………………… Drawing of gate:

[2]

(b) Complete the truth table for the given logic statement:

X = (((A OR C) AND (NOT A AND NOT C)) XOR B)

Working space
A B C X

0 0 0

0 0 1

0 1 0

0 1 1

1 0 0

1 0 1

1 1 0

1 1 1
[4]

© UCLES 2020 0478/12/M/J/20


Buy O / A Level & IGCSE Original Books, Solved Past Papers & Notes Online at Discounted Prices.
Home Delivery all over Pakistan Call / WhatsApp: (0331-9977798) Visit: www.TeachifyMe.com/Shop
QUESTION 8. 7

6 Consider the given logic statement:

X = (((A XOR B) AND C) OR NOT C)

(a) Draw a logic circuit to match the given logic statement.

All logic gates must have a maximum of two inputs. Do not attempt to simplify the logic
statement.

B X

[4]

(b) Complete the truth table for the given logic statement.

Working space
A B C X

0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[4]

© UCLES 2020 0478/13/M/J/20 [Turn over


Buy O / A Level & IGCSE Original Books, Solved Past Papers & Notes Online at Discounted Prices.
Home Delivery all over Pakistan Call / WhatsApp: (0331-9977798) Visit: www.TeachifyMe.com/Shop
QUESTION 10. 6

5 Three switches, A, B and C, each send values of 0 or 1 to a logic circuit. Value X is output from the
logic circuit.

Switch A
Switch B Logic circuit Output X
Switch C

Output X has a value of 1 depending on the following conditions:

Switch A sends value 1 AND Switch B sends value 0

OR

Switch B sends value 1 AND Switch C sends value 0

(a) Draw a logic circuit to represent the conditions above.

B X

[5]

© UCLES 2016 0478/11/O/N/16


7

(b) Complete the truth table for the conditions given at the start of question 5.

Working space
A B C X

0 0 0

0 0 1

0 1 0

0 1 1

1 0 0

1 0 1

1 1 0

1 1 1
[4]

(c) A microprocessor regularly samples the output, X. Each sample value is stored in an 8-bit
register as shown below. One bit of this register is reserved as a parity bit.

Five consecutive output values of 1 indicate a fault condition.

Identify which of the following registers shows a fault condition.


Parity bit

1 1 1 1 1 0 0 1 Register Y

0 1 0 1 1 1 1 1 Register Z

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

© UCLES 2016 0478/11/O/N/16 [Turn over


8

(d) When eight bytes of data have been collected, they are transmitted to a computer 100 km
away. Parity checks are carried out to identify if the data has been transmitted correctly. The
system uses even parity and column 1 is the parity bit.

The eight bytes of data are sent together with a ninth parity byte:

parity column column column column column column column


bit 2 3 4 5 6 7 8
byte 1 1 0 0 0 0 1 0 0
byte 2 1 1 1 1 0 0 1 1
byte 3 0 1 0 0 1 0 0 0
byte 4 0 1 1 1 0 0 0 1
byte 5 1 0 0 0 1 1 1 1
byte 6 0 0 0 0 0 0 0 0
byte 7 1 1 1 0 1 0 0 0
byte 8 1 0 0 0 1 1 1 0
parity
1 0 1 1 0 1 1 1
byte

(i) Identify which of the eight bytes contains an error.

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

(ii) Identify which column contains an error.

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

(iii) The incorrect bit is indicated where the byte number and column cross.

Give the corrected byte.

[1]

(iv) Calculate the denary value of the corrected byte.

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

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

(v) Considering the fault condition given in part (c), explain why it is very important that the
incorrect bit is located and corrected.

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

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

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

.......................................................................................................................................[2]
© UCLES 2016 0478/11/O/N/16
QUESTION 11. 7

7 (a) Complete the truth tables and name the single logic gate that could replace each logic circuit:

(i)
Working space
A A B X
X
B 0 0
0 1
1 0
1 1

Single logic gate ............................................................................................................[3]

(ii)

A Working space
A B X

X 0 0
0 1
B 1 0
1 1

Single logic gate ............................................................................................................[3]

© UCLES 2016 0478/12/O/N/16 [Turn over


8

(b) (i) Draw a logic circuit to represent the following logic statement:

X = 1 if (A = 1 AND B = 1) OR ( (B = NOT 1) AND C = 1)

B X

[4]

(ii) Complete the truth table for the logic statement in part (b)(i).

Working space
A B C X

0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1

[4]

© UCLES 2016 0478/12/O/N/16


QUESTION 12. 5

3 A logic circuit is shown:

X
B

(a) Complete the truth table for the given logic circuit.

Working space
A B C X

0 0 0

0 0 1

0 1 0

0 1 1

1 0 0

1 0 1

1 1 0

1 1 1
[4]

(b) Explain the difference between the functions of an AND gate and an OR gate.

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

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

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

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

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

.............................................................................................................................................. [3]

© UCLES 2018 0478/11/O/N/18 [Turn over


QUESTION 13. 7

6 (a) Many programmers write computer programs in high-level languages. The programs need to
be translated into machine code to be read by the computer.

State two types of translator that can be used.

Translator 1 ...............................................................................................................................

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

(b) Explain two reasons why a computer programmer may choose to write a program in a high-
level language, rather than a low-level language.

Reason 1 ..................................................................................................................................

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

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

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

Reason 2 ..................................................................................................................................

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

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

...................................................................................................................................................
[4]

(c) Three examples of computer code are given in the table.

Tick (✓) to show whether each example of computer code is High-level language, Assembly
language or Machine code.

High-level Assembly Machine


Computer code language language code
(✓) (✓) (✓)
10110111
11001100
01011100
FOR X = 1 TO 10
PRINT X
NEXT X
INP X
STA X
LDA Y
[3]

© UCLES 2018 0478/12/O/N/18 [Turn over


Buy IGCSE, O / A Level Books, Past Papers & Revision Notes Online at Discounted Prices across Pakistan
Visit: www.TeachifyMe.com / Shop Call / WhatsApp: (0331-9977798)
QUESTION 14. 9

7 A factory manufactures plastic pipes. It uses logic circuits to control the manufacturing process.

(a) Consider the logic gate:

Input A
Output
Input B

Complete the truth table for this logic gate.

Input A Input B Output

0 0

0 1

1 0

1 1
[1]

(b) Consider the truth table:

Input A Input B Output

0 0 0

0 1 1

1 0 1

1 1 0

State the single logic gate that produces the given output.

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

© UCLES 2019 0478/11/O/N/19 [Turn over


Buy IGCSE, O / A Level Books, Past Papers & Revision Notes Online at Discounted Prices across Pakistan
Visit: www.TeachifyMe.com / Shop Call / WhatsApp: (0331-9977798)
10

(c) Plastic pipes of various sizes are manufactured by heating the plastic and using pressure.

The manufacturing system uses sensors to measure the pressure (P), temperature (T) and
speed (S) of production.

The inputs to the manufacturing system are:

Input Binary value Condition


1 pressure is > 5 bar
P
0 pressure is <= 5 bar
1 temperature is > 200 degrees Celsius
T
0 temperature is <= 200 degrees Celsius
1 speed is > 1 metre per second
S
0 speed is <= 1 metre per second

The system will sound an alarm (X) when certain conditions are detected.

The alarm will sound when:

Temperature is > 200 degrees Celsius and the pressure is <= 5 bar
or
Speed is > 1 metre per second and Temperature is <= 200 degrees Celsius

Draw a logic circuit to represent the above alarm system.

Logic gates used must have a maximum of two inputs.

T X

[5]
© UCLES 2019 0478/11/O/N/19
Buy IGCSE, O / A Level Books, Past Papers & Revision Notes Online at Discounted Prices across Pakistan
Visit: www.TeachifyMe.com / Shop Call / WhatsApp: (0331-9977798)
11

(d) Give two benefits of using sensors to monitor the manufacture of plastic pipes.

1 ................................................................................................................................................

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

2 ................................................................................................................................................

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

8 Explain how an instruction is fetched in a Von Neumann model computer.

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

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

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

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

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

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

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

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

.................................................................................................................................................... [6]

9 HTML can be used to create the structure and the presentation of web pages.

(a) Describe what is meant by HTML structure.

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

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

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

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

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

© UCLES 2019 0478/11/O/N/19 [Turn over


Buy IGCSE, O / A Level Books, Past Papers & Revision Notes Online at Discounted Prices across Pakistan
Visit: www.TeachifyMe.com / Shop Call / WhatsApp: (0331-9977798)
QUESTION 15. 7

8 Consider the logic circuit:

X
B

(a) Write a logic statement to match the given logic circuit.

............................................................................................................................................. [3]

(b) Complete the truth table for the given logic circuit.

Working space
A B C X

0 0 0

0 0 1

0 1 0

0 1 1

1 0 0

1 0 1

1 1 0

1 1 1
[4]

© UCLES 2019 0478/12/O/N/19 [Turn over


Buy IGCSE, O / A Level Books, Past Papers & Revision Notes Online at Discounted Prices across Pakistan
Visit: www.TeachifyMe.com / Shop Call / WhatsApp: (0331-9977798)
QUESTION 16. 8

4 A factory that manufactures cleaning products has a system that monitors conditions throughout
the manufacturing process.

The inputs to the system are:

Input Binary value Condition


1 pH > 7
A
0 pH < = 7
1 Temperature < 35 °C
T
0 Temperature > = 35 °C
1 Pressure > = 80 %
P
0 Pressure < 80 %

(a) The system will sound an alarm (X) when certain conditions are detected.

The alarm will sound when:

• The pressure > = 80 % and the temperature > = 35 °C

or

• The temperature < 35 °C and the pH > 7

Draw a logic circuit to represent the alarm system in the factory. Each logic gate must have a
maximum of two inputs.

T X

[4]

© UCLES 2019 0478/13/O/N/19


Buy IGCSE, O / A Level Books, Past Papers & Revision Notes Online at Discounted Prices across Pakistan
Visit: www.TeachifyMe.com / Shop Call / WhatsApp: (0331-9977798)
9

(b) Complete the truth table for the given logic problem.

Working space
A T P X

0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[4]

(c) A sensor and a microprocessor are used to monitor the pH of the cleaning products. The
system records each reading that is taken. If the reading is greater than 7 a warning message
is displayed on a monitor.

Explain how the sensor and microprocessor are used in the system.

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

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

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

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

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

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

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

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

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

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

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

............................................................................................................................................. [6]

© UCLES 2019 0478/13/O/N/19 [Turn over

You might also like