L 2 Homework

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Python Introduction and variables

H2: Homework 2
1.1 Questions

1. If only one input to an OR gate are on, what does it output


a) 1
b) 0
c) Nothing
d) A test message

2. Which of the following best describes the difference between OR and XOR
a) There is no difference
b) An OR gate outputs 0 no matter what the inputs are
c) An OR gate outputs a 1 if both inputs are 1, an XOR in the same situation outputs a 0
d) An XOR is not a gate

3. A car alarm should only go off if the car is locked, and


a) a gate is set
b) a door is opened
c) it is working
d) there is a car

4. Which letter is usually assigned to represent an output in a truth table


a) X
b) Y
c) P
d) Z

5. Why would you use a truth table


a) To explore every possible output for a circuit
b) To make circuits work
c) To enable circuits
d) Because it is the best thing to do

6. What is binary
a) A system of calculus
b) A way of counting with just two options; one and zero
c) Maths
d) Text

7. Google uses boolean operators


a) TRUE
b) FALSE
c) N
Python Introduction and variables

d) N

8. Logic gates allow you to do which of the following


a) store the answer
b) solve a series of problems
c) move electricity
d) develop websites

9. Which of the following letters usually represents an output for logic gates
a) X
b) Y
c) Z
d) P

10. According to the lesson, when does a fridge light come on


a) When the door opens
b) When the door closes
c) When there is a door
d) Never

11. What is a logic circuit


a) Logic gates
b) A circuit of logic
c) A combination of gates and wires
d) A series of gates

12. What does the image collectively represent


a) Circuits
b) Gates
c) Wires
d) Nothing

You might also like