




























































































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 for representing numbers? A) Decimal B) Octal C) Binary D) Hexadecimal Answer: C Explanation: The binary system is a base-2 number system using only two digits, 0 and 1, to represent numbers. Question 2. What is the decimal equivalent of the binary number 1011? A) 9 B) 11 C) 13 D) 15 Answer: B Explanation: Binary 1011 equals (1×8) + (0×4) + (1×2) + (1×1) = 8 + 0 + 2 + 1 = 11 in decimal. Question 3. Convert the octal number 157 to hexadecimal. A) 67
Answer: C Explanation: Octal 157 = (1×64)+(5×8)+7=111 decimal. 111 in hex is 6F; converting directly yields 5F when considering binary conversion steps. Question 4. Which of the following is true about radix in number systems? A) It indicates the number of digits used in the system B) It is always 10 in decimal system C) It determines the place value of each digit D) Both A and C Answer: D Explanation: Radix indicates the base of the number system and determines the number of digits used and the place value of each position. Question 5. When adding binary numbers 1101 and 1011, what is the result? A) 11000 B) 10110 C) 10000
Explanation: Sign-magnitude representation uses a dedicated sign bit (0 for positive, 1 for negative) along with magnitude bits. Question 8. What is the main advantage of 2's complement over sign-magnitude representation? A) Easier hardware implementation for subtraction B) No need for sign bits C) Simplifies addition and subtraction operations D) Both A and C Answer: D Explanation: 2's complement simplifies hardware implementation of addition and subtraction and handles negative numbers efficiently. Question 9. In BCD, what is 9 + 3? A) 12 (1100 in binary) B) 12 (0001 0011 in BCD) C) 0 (with carry) D) 1001 Answer: C Explanation: BCD addition involves adding digits and adjusting for sums over 9, resulting in a carry and correct BCD result, which is 0 with carry.
Question 10. How many bits are needed to represent the decimal number 255 in BCD? A) 8 B) 12 C) 16 D) 24 Answer: C Explanation: 255 is represented as 0010 0101 0101 in BCD, requiring 3 digits × 4 bits = 12 bits. But since each digit is 4 bits, total bits needed are 12. Question 11. Which code is used to minimize the chance of error during data transmission by changing only one bit at a time? A) Gray code B) ASCII code C) Parity code D) BCD code Answer: A Explanation: Gray code changes only one bit between successive values, reducing errors during transitions.
B) Even parity C) Both A and B D) Neither Answer: B Explanation: Even parity adds a bit to make the total number of 1's even, aiding error detection. Question 15. Which logic gate outputs true only when exactly one input is true? A) AND B) OR C) XOR D) NOR Answer: C Explanation: XOR gate outputs true when an odd number of inputs are true, which for two inputs means exactly one is true. Question 16. The Boolean expression A·(B + C) simplifies to what using distributive law? A) A·B + A·C B) A + B·C C) (A·B) + (A·C)
D) Both A and C Answer: D Explanation: Distributive law states A·(B + C) = A·B + A·C, which is the same as A·B
Question 21. Which map is used to simplify Boolean functions with four variables? A) 2-variable K-Map B) 3-variable K-Map C) 4-variable K-Map D) Truth table only Answer: C Explanation: A 4-variable K-Map is used for simplifying Boolean functions involving four variables. Question 22. In a Karnaugh Map, grouping minterms to form simplified expressions is based on what? A) Power of two (1, 2, 4, 8) groups B) Random selection of cells C) Only maxterms D) Only don't care conditions Answer: A Explanation: Groups are formed based on powers of two to simplify the Boolean expression efficiently. Question 23. Which of the following is a Product-of-Sums (POS) form? A) A + B + C
Answer: B Explanation: POS form involves ANDing ORed terms, such as (A + B)(A + C). Question 24. When designing a logic circuit from a truth table, what is the first step? A) Simplify Boolean expressions B) Write the sum-of-products expression C) Identify minterms or maxterms D) Draw the logic diagram directly Answer: C Explanation: The initial step is to identify minterms or maxterms corresponding to the truth table. Question 25. A half-adder performs which operation? A) Addition of two bits with no carry-in B) Subtraction of two bits C) Multiplication of two bits
Explanation: A comparator circuit compares two binary numbers and indicates their relative magnitude. Question 28. What is the main function of a decoder? A) Convert binary to decimal or other codes B) Convert decimal to binary C) Encode data in priority order D) Select one input from many inputs Answer: A Explanation: Decoders convert binary input into a one-hot output, such as decimal or BCD to 7-segment display. Question 29. Which device is used to select one data input from multiple inputs based on control signals? A) Encoder B) Multiplexer C) Demultiplexer D) Comparator Answer: B Explanation: Multiplexers select one data input based on select lines.
Question 30. What is the primary purpose of a demultiplexer? A) To encode data B) To distribute data to one of several outputs C) To perform addition D) To compare data bits Answer: B Explanation: Demultiplexers route a single input to one of many outputs based on control signals. Question 31. Which code conversion involves changing a binary number into BCD format? A) Binary to BCD converter B) BCD to binary converter C) Gray to binary converter D) ASCII to binary converter Answer: A Explanation: Binary to BCD converters transform binary numbers into a decimal- coded binary format. Question 32. In sequential logic, what does a flip-flop do? A) Stores a binary state
D) Do not need clock signals Answer: B Explanation: Synchronous counters have all flip-flops driven by the same clock, reducing propagation delay issues. Question 35. Which type of counter cycles through a sequence of states in a ring formation? A) Johnson counter B) Ring counter C) Binary counter D) Decoding counter Answer: B Explanation: A ring counter circulates through a fixed sequence of states, with only one flip-flop set at a time. Question 36. What is the primary function of a shift register? A) Store multiple bits of data B) Shift data serially or parallelly for data transfer or delay C) Perform binary addition D) Generate clock pulses Answer: B
Explanation: Shift registers transfer data serially or in parallel, used for data conversion, delay, or transfer. Question 37. Which memory type is volatile and needs to be refreshed periodically? A) SRAM B) DRAM C) ROM D) Flash memory Answer: B Explanation: DRAM is dynamic and requires periodic refreshing to maintain data. Question 38. Which memory device is non-volatile and can be electrically erased and reprogrammed? A) SRAM B) DRAM C) EEPROM D) RAM Answer: C Explanation: EEPROM retains data without power and can be electrically erased and reprogrammed.
Question 41. Which of the following is an advantage of programmable logic devices? A) Fixed function only B) Reprogrammable and flexible C) Cannot implement complex functions D) Not suitable for digital design Answer: B Explanation: PLDs are reprogrammable, offering flexibility and customization for various digital functions. Question 42. Which type of PLD is based on a matrix of programmable logic arrays? A) PROM B) PAL C) GAL D) FPGA Answer: D Explanation: FPGAs consist of configurable logic blocks and interconnects, structured as a matrix.
Question 43. What is the primary purpose of a hardware description language like VHDL or Verilog? A) To program microcontrollers B) To describe and simulate digital circuits C) To design analog circuits D) To compile software programs Answer: B Explanation: HDL languages are used to model, simulate, and implement digital hardware designs. Question 44. Which number system is most suitable for human readability in digital electronics? A) Binary B) Decimal C) Hexadecimal D) Gray code Answer: C Explanation: Hexadecimal is compact and more human-readable, often used to represent binary data efficiently.