




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Question 1. Which number system uses base 2? A) Decimal B) Octal C) Binary D) Hexadecimal Answer: C Explanation: The binary number system is a base-2 system that uses only two digits: 0 and 1. Question 2. What is the hexadecimal equivalent of the decimal number 255? A) FF B) 100 C) 1F D) FF Answer: A Explanation: 255 in decimal converts to FF in hexadecimal because 15 (F) in hex corresponds to 15 in decimal, and 255 is 16Ć15 + 15.
Question 3. How is a signed number represented in the signed-magnitude system? A) Using two's complement B) Sign bit with magnitude bits C) Using 1's complement D) Two separate unsigned numbers Answer: B Explanation: In signed-magnitude representation, the most significant bit (MSB) indicates sign (0 for positive, 1 for negative), with the remaining bits representing magnitude. Question 4. Convert the 8-bit two's complement number 11110010 to decimal. A) - 14 B) 242 C) - 114 D) 114 Answer: A
Explanation: ASCII (American Standard Code for Information Interchange) encodes alphanumeric characters and symbols. Question 7. Which Boolean algebra theorem states that A + A' = 1? A) Complementarity B) Identity C) Null Law D) Absorption Answer: A Explanation: The complementarity law states that a variable OR'ed with its complement equals 1. Question 8. What does De Morgan's first theorem state? A) (A + B)' = A' * B' B) (A * B)' = A' + B' C) A + A' = 1 D) A * A' = 0 Answer: A
Explanation: De Morgan's first theorem states that the negation of a disjunction is the conjunction of the negations. Question 9. Which logic gate is universal, meaning it can be used to implement any Boolean function? A) AND B) OR C) NAND D) XOR Answer: C Explanation: NAND is a universal gate because any Boolean function can be implemented using only NAND gates. Question 10. What is the truth table for the XOR gate when both inputs are 1? A) 0 B) 1 C) Undefined D) Cannot be determined
Explanation: Sum-of-Products (SOP) form is a sum (OR) of minterms, where each minterm is an AND of variables. Question 13. In a 3-variable K-Map, how many minterms are there? A) 4 B) 8 C) 16 D) 32 Answer: B Explanation: For 3 variables, there are 2^3 = 8 minterms in the K-Map. Question 14. When handling "Don't Care" conditions in K-Maps, what is the primary goal? A) Minimize the number of variables B) Maximize the number of true outputs C) Simplify the Boolean expression by grouping "Don't Cares" to reduce terms D) Eliminate all "Don't Cares" from the logic Answer: C
Explanation: "Don't Care" conditions are used as flexible groupings in K-Maps to simplify Boolean expressions optimally. Question 15. Which method is suitable for minimizing large Boolean functions with many variables? A) K-Map B) Quine-McCluskey C) Boolean algebra alone D) Truth table enumeration Answer: B Explanation: Quine-McCluskey is a systematic method suitable for functions with many variables, unlike K-Maps which become unwieldy. Question 16. A half-adder can add: A) Two bits with carry-in B) Two bits without carry-in C) Three bits D) Four bits Answer: B
Explanation: Carry-lookahead adders generate carries in parallel, significantly reducing delay compared to ripple-carry adders. Question 19. Which comparator is used to compare the magnitude of two binary numbers? A) Equality comparator B) Magnitude comparator C) Priority encoder D) Decoder Answer: B Explanation: A magnitude comparator compares two binary numbers and determines their relative size. Question 20. A 3-to-8 decoder has how many output lines? A) 3 B) 6 C) 8 D) 16 Answer: C
Explanation: A 3-to-8 decoder converts 3 binary inputs into 8 unique output lines, activating only one at a time. Question 21. In a 4-to-16 decoder, how many minterms are decoded? A) 4 B) 16 C) 32 D) 64 Answer: B Explanation: It decodes 16 minterms corresponding to its 4 input bits. Question 22. Which component translates a binary input to a decimal digit display? A) Encoder B) Decoder C) BCD-to-seven segment decoder D) Multiplexer Answer: C
Explanation: A 2-to-1 MUX chooses one of two inputs depending on the select line. Question 25. The main purpose of a demultiplexer is to: A) Select one input among many B) Distribute a single input to one of many outputs C) Combine multiple signals into one D) Encode data Answer: B Explanation: A demultiplexer routes a single input to one of many outputs based on control signals. Question 26. Which logic circuit is used to detect odd parity in data? A) Parity generator B) Parity checker C) Encoder D) Comparator Answer: A
Explanation: A parity generator creates a parity bit (even or odd) for data, often to detect errors. Question 27. What is the primary function of a ripple counter? A) Synchronous counting B) Asynchronous counting C) Multiplying binary numbers D) Dividing frequency Answer: B Explanation: Ripple counters are asynchronous, where the carry ripples through flip-flops sequentially. Question 28. In an asynchronous ripple counter, the flip-flops are triggered: A) Simultaneously B) Sequentially, with each flip-flop triggered by the previous C) Randomly D) By external clock only Answer: B
Explanation: A modulo-10 counter counts from 0 to 9, making the total number of states 10. Question 31. Which type of counter is used to generate a sequence of states with a repeating pattern, like a ring? A) Johnson counter B) Ring counter C) Up-counter D) Down-counter Answer: B Explanation: A ring counter circulates a single '1' or '0' through flip-flops, creating a repeating sequence. Question 32. In a Moore FSM, the output depends on: A) Current state only B) Input and current state C) Next state only D) External inputs only Answer: A
Explanation: In Moore machines, outputs are determined solely by the current state. Question 33. Which diagram is commonly used to represent FSMs? A) State diagram B) Logic circuit diagram C) Truth table only D) Karnaugh map Answer: A Explanation: State diagrams visually depict FSM states and transitions. Question 34. When minimizing a state table, what is the primary goal? A) Reduce the number of states B) Increase the number of transitions C) Maximize the number of states D) Eliminate all unused states Answer: A Explanation: State reduction aims to minimize the number of states while preserving functionality.
Question 37. In Verilog, which keyword is used to declare a register? A) wire B) reg C) integer D) logic Answer: B Explanation: The 'reg' keyword declares variables that hold values across procedural blocks in Verilog. Question 38. The 'initial' block in Verilog is used to: A) Assign values at simulation start B) Describe hardware behavior C) Synthesize hardware D) Connect modules Answer: A Explanation: 'initial' blocks execute once at the start of simulation for setting initial conditions.
Question 39. In behavioral modeling, blocking assignments (=) are mainly used for: A) Combinational logic B) Sequential logic C) Continuous assignments D) Structural modeling Answer: A Explanation: Blocking assignments are used for combinational logic because they execute sequentially within a procedural block. Question 40. The difference between simulation and synthesis in HDL design is: A) Simulation verifies functional behavior; synthesis generates hardware B) Synthesis is only for software C) Simulation is faster than synthesis D) They are identical processes Answer: A Explanation: Simulation tests the design's behavior, whereas synthesis converts HDL code into hardware description for implementation.