SHS Computing · Year 2
Logic Gates, Boolean Expressions and Arithmetic practice questions
The NAND, NOR and XOR gates alongside AND, OR and NOT, their truth tables and symbols, combining gates through intermediate stages, Boolean notation, the identity law and De Morgan's laws, disjunctive and conjunctive normal forms, the properties of arithmetic operations, the order of operations and arithmetic in Python.
29 questions in this topic: 3 recall, 13 applying skills and concepts, 10 strategic thinking and 3 extended thinking. Every one carries a written explanation.
Sample questions
5 of 29 questions in this topic. Sign up to answer them and see the explanations.
- Question 1Strategic thinking
What is the value of X = (A AND B) OR (NOT C) when A = 1, B = 0 and C = 0?
- a0
- b1
- c2
- d10
- Question 2Strategic thinking
What does Python print for print(2 + 3 * 4 ** 2)?
- a400
- b50
- c196
- d104
- Question 3Skills & concepts
According to the identity law, what is A . 1 equal to?
- a1
- bA
- c0
- dNOT A
- Question 4Extended thinking
A savings balance of GH¢1000 grows by 5% each year. Which Python expression gives the balance after 3 years, and what is it to two decimal places?
- a1000 * 1.05 * 3, which is 3150.00
- b1000 * 1.05 ** 3, which is 1157.63
- c1000 + 1000 * 0.05 * 3, which is 1150.00
- d(1000 * 1.05) ** 3, which is 1157625000.00
- Question 5Skills & concepts
XOR can be written as which Boolean expression?
- a(A AND B) OR (NOT A AND NOT B)
- b(NOT A AND B) OR (A AND NOT B)
- cNOT (A OR B)
- d(A OR B) AND (A AND B)
Answer these and 24 more on Logic Gates, Boolean Expressions and Arithmetic
Free account. Instant marking, a written explanation for every question.
Start practising freeMore Computing Year 2 topics
- Barcodes, QR Codes and the Functions of Software
- Designing LANs, CANs, MANs and WANs
- Internet Protocols, Addressing and Internet Access
- Machine Learning Concepts and Ethics
- Main Memory, Trees, Graphs and Hash Tables
- Multimedia, Responsive Design, Accessibility and E-commerce
- Python Functions, Conditions, Loops and Recursion
- Relational Databases and SQL
- Web Page Editors, HTML and CSS