True or false: A combinational circuit’s outputs depend only on its current inputs, not on earlier inputs or stored state.
2 Digital Logic Online Quiz Questions
Use this free practice quiz with 20 questions to review 2 Digital Logic, test your knowledge, and prepare for your next test or exam.
What logic gate reverses a single input value?
A truth table includes every possible combination of its inputs. How many rows of input combinations are needed for a circuit with three binary inputs?
- A
6
- B
8
- C
9
- D
16
A NOR gate receives A=0 and B=0. What is its output?
- A
0
- B
1
- C
It depends on the previous inputs.
- D
The output is undefined.
True or false: NAND is the complement of OR.
- A
True
- B
False
Complete the Boolean identity: A+A=.
An OR gate receives A=1 and B=1. What is its output? Enter the output as 0 or 1.
Select all Boolean identities that are correct.
- A
A+A′=1
- B
A+0=0
- C
A⋅A′=0
- D
A⋅1=0
Evaluate A⋅1+A⋅0 when A=1. Choose the Boolean output value.
- A
0
- B
1
- C
The output depends on B.
- D
The output is undefined.
For a half adder, complete the carry equation: C=.
Which pair of gates implements a half adder’s sum and carry outputs?
- A
One OR gate and one NOT gate
- B
Two AND gates
- C
One XOR gate and one AND gate
- D
One NOR gate and one XNOR gate
For inputs A=1 and B=0, select all gates that output 1.
- A
AND
- B
OR
- C
XOR
- D
NOR
- E
NAND
- F
XNOR
Describe a systematic process for designing a combinational circuit from its required behavior.
A circuit produces the complement of the OR of inputs A and B. Which expression is equivalent to ¬(A+B)?
- A
¬A+¬B
- B
¬A⋅¬B
- C
A⋅B
- D
A+B
A designer finds an AND gate whose inputs are a signal A and a constant 1. Which change preserves the circuit’s output?
- A
The gate must remain because 1 changes the value of A.
- B
The output becomes 1 for every value of A.
- C
The gate can be removed because A⋅1=A.
- D
The output becomes 0 for every value of A.
A two-input circuit should output 1 whenever its binary inputs have the same value, and 0 when they differ. Which gate implements this behavior?
- A
XNOR
- B
XOR
- C
AND
- D
OR
A two-input circuit should output 1 only when A=0 and B=1, and output 0 for the other input combinations. Which Boolean expression describes the circuit?
- A
A⋅B
- B
A+¬B
- C
A⋅¬B
- D
¬A⋅B
True or false: In Boolean algebra, ¬(A⋅B) is equivalent to ¬A+¬B.
- A
True
- B
False
What gate outputs 1 when its two binary inputs differ and 0 when they match?
A designer removes an AND gate because one input is tied to 1, using A⋅1=A. What is the general name of the Boolean algebra rule used?
Related study packs and tools
03 — Python Programming Fundamentals
A focused set of flashcards covering Python variables, data types, expressions, control flow, functions, input, output, and common programming practices.
05 — Data Structures: Concepts, Operations, and Trade-Offs
A structured guide to the main data structures, their operations, efficiency trade-offs, representations, and practical selection criteria.
07 — Efficiency and Computational Complexity
A progressive guide to measuring algorithmic time and memory requirements, interpreting asymptotic bounds, analyzing common code patterns, and balancing performance trade-offs.
07 Trees and Binary Search Trees
A progressive guide to tree structure, binary-tree traversals, binary search tree operations, deletion, balancing, and the way tree height determines time and space costs.
08 — Discrete Mathematics for Computer Science
A focused review of propositional logic, quantifiers, sets, relations, functions, and foundational proof methods in discrete mathematics for computer science.
10 — Data, Systems, and Applications
A progression through how data is organized, searched, exposed through software interfaces, and managed through abstraction layers in modern computer systems.
12 — Foundations Capstone
A medium-difficulty quiz on integrating problem definition, representation, algorithms, complexity analysis, testing, correctness, ethical evaluation, and documentation in a computer science capstone.
12 — Foundations Capstone: Integrating Computer Science
A practical guide to integrating problem definition, data representation, modular programming, algorithms, complexity analysis, testing, correctness, and ethical evaluation into a responsible computer science capstone.
OS Processes
This quiz covers process management, context switching and scheduling, multitasking, traps and interrupts, and RISC-V privilege transitions.