NSK - TAMILAN ULAGAM

NSK - TAMILAN ULAGAM
NSK - DIPLOMA
Showing posts with label mcq questions. Show all posts
Showing posts with label mcq questions. Show all posts

Sunday, July 27, 2025

ECE - MC - MICROCONTROLLER MCQ QUESTIONS - MC MCQ QUESTIONS

 

ECE - MC - MICROCONTROLLER MCQ QUESTIONS - MC MCQ QUESTIONS

### ✅ **UNIT I: ARCHITECTURE OF 8051 MICROCONTROLLER (20 MCQs)**

1. **Which company developed the 8051 microcontroller?**
   A) Intel
   B) Motorola
   C) AMD
   D) Atmel
   **Answer: A**

2. **8051 is a \_\_\_\_ bit microcontroller.**
   A) 4
   B) 8
   C) 16
   D) 32
   **Answer: B**

3. **Microprocessor vs Microcontroller: Which has on-chip memory and I/O ports?**
   A) Microprocessor
   B) Microcontroller
   C) Both
   D) None
   **Answer: B**

4. **Which block controls the sequence of execution in 8051?**
   A) ALU
   B) Timer
   C) Program Counter
   D) RAM
   **Answer: C**

5. **The ALU in 8051 is responsible for:**
   A) Memory addressing
   B) Logical and arithmetic operations
   C) Communication
   D) Program storage
   **Answer: B**

6. **How many I/O ports does the 8051 have?**
   A) 2
   B) 3
   C) 4
   D) 5
   **Answer: C**

7. **Total number of pins in 8051 DIP package is:**
   A) 20
   B) 30
   C) 40
   D) 44
   **Answer: C**

8. **PSW register in 8051 stands for:**
   A) Program Status Word
   B) Primary Status Window
   C) Program Stack Width
   D) Processor Status Word
   **Answer: A**

9. **Which register is incremented automatically during program execution?**
   A) PSW
   B) PC
   C) Stack Pointer
   D) ACC
   **Answer: B**

10. **What is the function of the Stack in 8051?**
    A) Handles I/O operations
    B) Stores immediate data
    C) Temporary storage during interrupts
    D) Controls timers
    **Answer: C**

11. **Special Function Registers (SFRs) are located in which memory area?**
    A) ROM
    B) External RAM
    C) Internal RAM
    D) Code memory
    **Answer: C**

12. **Which port is used to interface external memory?**
    A) P0 and P2
    B) P1 and P3
    C) P2 and P3
    D) P0 and P1
    **Answer: A**

13. **The timer in 8051 is used for:**
    A) RAM expansion
    B) I/O programming
    C) Delay generation
    D) Address decoding
    **Answer: C**

14. **Which of the following is NOT a feature of 8051?**
    A) Serial port
    B) Timers
    C) Multiplication instruction
    D) 32-bit ALU
    **Answer: D**

15. **Interrupts in 8051 are used for:**
    A) Resetting memory
    B) Parallel processing
    C) Handling events
    D) Timer reset
    **Answer: C**

16. **How many interrupts are there in 8051?**
    A) 3
    B) 4
    C) 5
    D) 6
    **Answer: D**

17. **Port 0 of 8051 can be used as:**
    A) Output only
    B) Input only
    C) Bidirectional I/O
    D) Serial communication
    **Answer: C**

18. **Which register indicates current status of ALU operations?**
    A) PSW
    B) PC
    C) ACC
    D) DPTR
    **Answer: A**

19. **Which of the following is used for serial communication?**
    A) Timer
    B) Port 0
    C) UART
    D) Port 1
    **Answer: C**

20. **External memory is accessed using which signal?**
    A) ALE
    B) PSEN
    C) EA
    D) All of the above
    **Answer: D**


### ✅ **UNIT II: 8051 INSTRUCTION SET AND PROGRAMMING (20 MCQs)**

1. **Which instruction is used to transfer data from one register to another in 8051?**
   A) MOV
   B) ADD
   C) SUBB
   D) CJNE
   **Answer: A**

2. **The instruction `ADD A, R1` performs:**
   A) Subtraction
   B) Multiplication
   C) Addition of accumulator and R1
   D) None
   **Answer: C**

3. **Which instruction is used to jump unconditionally in 8051?**
   A) SJMP
   B) CJNE
   C) JNC
   D) JZ
   **Answer: A**

4. **Which instruction is used to multiply two numbers?**
   A) ADD
   B) MUL AB
   C) SUBB
   D) DIV AB
   **Answer: B**

5. **Logical instruction `ANL A, R2` performs:**
   A) Logical OR
   B) Logical AND
   C) Logical XOR
   D) Logical NOT
   **Answer: B**

6. **Which instruction is used to compare two values and jump if not equal?**
   A) JZ
   B) CJNE
   C) MOV
   D) SJMP
   **Answer: B**

7. **The maximum size of the immediate data in 8051 is:**
   A) 4 bits
   B) 8 bits
   C) 12 bits
   D) 16 bits
   **Answer: B**

8. **Which instruction divides the accumulator by register B?**
   A) DIV AB
   B) SUB AB
   C) MUL AB
   D) MOV AB
   **Answer: A**

9. **The instruction `CLR A` does what?**
   A) Clears Port A
   B) Clears all bits of the accumulator
   C) Clears memory
   D) Clears flag
   **Answer: B**

10. **The bit manipulation instruction used to complement a bit is:**
    A) SETB
    B) CLR
    C) CPL
    D) MOV
    **Answer: C**

11. **Instruction `MOVX` is used for:**
    A) External memory access
    B) Bit manipulation
    C) Arithmetic operation
    D) Logical operation
    **Answer: A**

12. **How many addressing modes are available in 8051?**
    A) 2
    B) 4
    C) 5
    D) 6
    **Answer: D**

13. **In which addressing mode is the operand specified within the instruction?**
    A) Register
    B) Immediate
    C) Indirect
    D) Direct
    **Answer: B**

14. **`MOV A, #55H` is an example of:**
    A) Direct addressing
    B) Immediate addressing
    C) Register indirect addressing
    D) Relative addressing
    **Answer: B**

15. **Time delay routines in 8051 are created using:**
    A) Timers only
    B) Loops and NOPs
    C) Interrupts
    D) UART
    **Answer: B**

16. **To add two 16-bit numbers in 8051, you need to:**
    A) Use ADD instruction twice with carry
    B) Use only one ADD
    C) Use MOV
    D) Use NOP
    **Answer: A**

17. **Which instruction checks if a bit is 1 and skips the next instruction if false?**
    A) JB
    B) JNB
    C) JZ
    D) JC
    **Answer: A**

18. **Instruction `DJNZ` is used for:**
    A) Delay creation
    B) Decrement and jump if not zero
    C) Compare and jump
    D) Bit clearing
    **Answer: B**

19. **BCD to HEX conversion is commonly done using:**
    A) MOV & ADD
    B) Logical and arithmetic instructions
    C) Timers
    D) Interrupts
    **Answer: B**

20. **To find the smallest number among given values in assembly, we use:**
    A) Compare and conditional jump
    B) MUL AB
    C) INC
    D) PUSH and POP
    **Answer: A**



### ✅ **UNIT III: PERIPHERALS OF 8051 (20 MCQs)**

1. **Which of the following ports of 8051 is used for interrupt and serial communication?**
   A) Port 0
   B) Port 1
   C) Port 2
   D) Port 3
   **Answer: D**

2. **Each I/O port of 8051 is of size:**
   A) 4-bit
   B) 6-bit
   C) 8-bit
   D) 16-bit
   **Answer: C**

3. **The address range of SFRs is:**
   A) 00H to FFH
   B) 00H to 7FH
   C) 80H to FFH
   D) 00H to 0FH
   **Answer: C**

4. **Which port requires external pull-up resistors in 8051?**
   A) Port 0
   B) Port 1
   C) Port 2
   D) Port 3
   **Answer: A**

5. **Bit addressable area of 8051 starts from:**
   A) 00H
   B) 20H
   C) 30H
   D) 80H
   **Answer: B**

6. **Which instruction is used to set a single bit in I/O port?**
   A) SETB
   B) MOV
   C) CLR
   D) CPL
   **Answer: A**

7. **Timer 0 and Timer 1 in 8051 are:**
   A) 4-bit
   B) 8-bit
   C) 16-bit
   D) 32-bit
   **Answer: C**

8. **How many timer/counters are present in 8051?**
   A) 1
   B) 2
   C) 3
   D) 4
   **Answer: B**

9. **Which SFR is used to control timer mode?**
   A) TMOD
   B) TCON
   C) PCON
   D) IE
   **Answer: A**

10. **Timer Mode 2 in 8051 is:**
    A) 13-bit
    B) 16-bit
    C) 8-bit auto-reload
    D) 32-bit
    **Answer: C**

11. **SBUF is used for:**
    A) Bit manipulation
    B) Serial communication
    C) Stack operations
    D) Timer operation
    **Answer: B**

12. **8051 uses which standard for serial communication?**
    A) USB
    B) RS232
    C) SPI
    D) I2C
    **Answer: B**

13. **The register that holds the baud rate settings is:**
    A) TMOD
    B) TH1
    C) IE
    D) TCON
    **Answer: B**

14. **Which instruction is used to transmit data via serial port?**
    A) MOV SBUF, A
    B) MOV A, SBUF
    C) SETB TI
    D) CLR RI
    **Answer: A**

15. **The TI flag is set when:**
    A) A timer overflows
    B) A bit is set
    C) A byte is transmitted
    D) An interrupt occurs
    **Answer: C**

16. **8051 has how many interrupt sources?**
    A) 2
    B) 3
    C) 5
    D) 6
    **Answer: D**

17. **Which interrupt has the highest priority by default?**
    A) Serial
    B) External 0
    C) Timer 0
    D) Timer 1
    **Answer: B**

18. **The IE register is used to:**
    A) Enable or disable interrupts
    B) Configure timers
    C) Clear the accumulator
    D) Set the serial baud rate
    **Answer: A**

19. **Which pin of 8051 is used for external interrupt 0?**
    A) P3.3
    B) P3.2
    C) P3.4
    D) P3.5
    **Answer: B**

20. **Which register controls interrupt priority?**
    A) IE
    B) IP
    C) PSW
    D) PCON
    **Answer: B**



### ✅ **UNIT IV: INTERFACING TECHNIQUES (20 MCQs)**

1. **Which IC is used for parallel peripheral interfacing with 8051?**
   A) 8251
   B) 8253
   C) 8255
   D) 8279
   **Answer: C**

2. **How many ports are there in 8255?**
   A) 1
   B) 2
   C) 3
   D) 4
   **Answer: C**

3. **How many modes are supported by 8255?**
   A) 1
   B) 2
   C) 3
   D) 4
   **Answer: C**

4. **Which mode of 8255 is used for handshake input/output?**
   A) Mode 0
   B) Mode 1
   C) Mode 2
   D) BSR Mode
   **Answer: B**

5. **Which mode allows bidirectional data transfer in 8255?**
   A) Mode 0
   B) Mode 1
   C) Mode 2
   D) BSR
   **Answer: C**

6. **Relays are used to interface:**
   A) Low power devices
   B) High power AC/DC devices
   C) Sensors
   D) Microcontrollers
   **Answer: B**

7. **Which component is used for temperature sensing?**
   A) Relay
   B) LM35
   C) LCD
   D) 8255
   **Answer: B**

8. **Which display uses 7 segments to show digits?**
   A) LCD
   B) LED matrix
   C) 7-segment display
   D) OLED
   **Answer: C**

9. **Which pin in 16x2 LCD selects command or data mode?**
   A) VSS
   B) RS
   C) E
   D) D4
   **Answer: B**

10. **Which pin enables LCD operation?**
    A) RS
    B) RW
    C) E
    D) VSS
    **Answer: C**

11. **Keyboard interfacing is based on:**
    A) ADC
    B) Matrix scanning
    C) Timer
    D) PWM
    **Answer: B**

12. **How many rows and columns are there in 4x4 keypad?**
    A) 2 rows, 2 columns
    B) 4 rows, 4 columns
    C) 8 rows
    D) 3 rows, 4 columns
    **Answer: B**

13. **Stepper motor rotates in:**
    A) Continuous mode
    B) Discrete steps
    C) Random angle
    D) Vibration
    **Answer: B**

14. **Which is used to convert analog signal to digital?**
    A) DAC
    B) PWM
    C) ADC
    D) RTC
    **Answer: C**

15. **Which component is used to interface analog output devices like speakers?**
    A) ADC
    B) DAC
    C) LCD
    D) LED
    **Answer: B**

16. **PWM is generally used for controlling:**
    A) Relays
    B) Timers
    C) DC motors
    D) RAM
    **Answer: C**

17. **What does PWM stand for?**
    A) Pulse Width Memory
    B) Pulse Wide Mode
    C) Pulse Width Modulation
    D) Programmable Wave Modulation
    **Answer: C**

18. **The interface used to control AC loads safely is:**
    A) Keyboard
    B) DAC
    C) Relay
    D) LCD
    **Answer: C**

19. **Which of these is NOT used for interfacing with 8051?**
    A) LCD
    B) ADC
    C) Hard disk
    D) Stepper motor
    **Answer: C**

20. **Sensor interfacing involves conversion of:**
    A) Analog to analog
    B) Digital to analog
    C) Analog to digital
    D) None
    **Answer: C**




### ✅ **UNIT V: ADVANCED MICROCONTROLLERS (20 MCQs)**

1. **Which of the following is an open-source microcontroller platform?**
   A) 8051
   B) ARM7
   C) Arduino
   D) PIC
   **Answer: C**

2. **The Arduino Uno board is based on which microcontroller?**
   A) AT89C51
   B) ATmega328P
   C) PIC16F877A
   D) ATmega2560
   **Answer: B**

3. **Which programming language is commonly used in Arduino IDE?**
   A) Python
   B) Java
   C) C/C++
   D) Assembly
   **Answer: C**

4. **What type of port is used to upload code into Arduino?**
   A) VGA
   B) Ethernet
   C) USB
   D) HDMI
   **Answer: C**

5. **What is the voltage level of digital I/O pins in Arduino Uno?**
   A) 1.8V
   B) 3.3V
   C) 5V
   D) 12V
   **Answer: C**

6. **Which of the following is a feature of Arduino?**
   A) Complex architecture
   B) Needs external programmer
   C) Open-source hardware
   D) Cannot be used in IoT
   **Answer: C**

7. **Which one is an IoT communication protocol?**
   A) I2C
   B) SPI
   C) MQTT
   D) USB
   **Answer: C**

8. **Which of the following is not an IoT device?**
   A) Smart thermostat
   B) Smart light bulb
   C) Manual switch
   D) Smart watch
   **Answer: C**

9. **In IoT, the purpose of a sensor is to:**
   A) Control data
   B) Generate software
   C) Collect data
   D) Transmit emails
   **Answer: C**

10. **Which architecture is commonly used in IoT?**
    A) 3-tier architecture
    B) Von Neumann architecture
    C) Harvard architecture
    D) Client-Server architecture
    **Answer: A**

11. **Which one of the following is a layer in IoT architecture?**
    A) Application layer
    B) Assembly layer
    C) Programming layer
    D) Compiler layer
    **Answer: A**

12. **Which of the following technologies is used in smart homes?**
    A) IoT
    B) Robotics
    C) Bioinformatics
    D) Web designing
    **Answer: A**

13. **What is the main use of actuators in IoT systems?**
    A) Sensing temperature
    B) Measuring humidity
    C) Performing physical actions
    D) Storing data
    **Answer: C**

14. **Which of the following is an example of IoT service?**
    A) Video calling
    B) Smart irrigation
    C) Text editing
    D) Gaming
    **Answer: B**

15. **Which component is not essential for a basic IoT system?**
    A) Sensor
    B) Internet
    C) Actuator
    D) Television
    **Answer: D**

16. **What is the full form of IoT?**
    A) Internet of Televisions
    B) Interface of Technology
    C) Internet of Things
    D) Interlink of Transmission
    **Answer: C**

17. **Which of the following is NOT a feature of Arduino?**
    A) Easy to program
    B) Cost-effective
    C) Proprietary hardware
    D) Open source
    **Answer: C**

18. **What is one major ethical concern in IoT?**
    A) Display resolution
    B) Memory usage
    C) Data privacy
    D) Operating speed
    **Answer: C**

19. **IoT is mostly used in which of the following sectors?**
    A) Healthcare
    B) Agriculture
    C) Home automation
    D) All of the above
    **Answer: D**

20. **Which of the following can be a node in IoT network?**
    A) Smartphone
    B) Sensor
    C) Microcontroller
    D) All of the above
    **Answer: D**




 SYLLABUS

Unit I ARCHITECTURE OF 8051 MICROCONTROLLER 

Microprocessor-Microcontroller-Comparison of Microprocessor and Microcontroller-Architecture diagram of Microcontroller 8051-Functions of each Block-Pin details of 8051-ALU-Special Function RegistersProgram Counter-PSW Register-Stack I/O Ports-Timer-Interrupt-Serial Port-External memory. 

 Unit II 8051 INSTRUCTION SET AND PROGRAMMING 

Instruction set of 8051-Classification of 8051 Instructions-Data Transfer Instructions-Arithmetic Instructions-Logical InstructionsBranching Instructions-Bit Manipulation Instructions - Different Addressing Modes of 8051-Time Delay routines. Assembly Language Programs - 16 Bit Addition -8 Bit Multiplication - BCD to HEX Code Conversion- Smallest number. 

 Unit III PERIPHERALS OF 8051

 I/O Ports - Bit Addresses for I/O Ports-I/O Port Programming-I/O bit Manipulation Programming. Timer/Counter - SFRS for Timer- Modes of Timers/countersProgramming 8051 Timer (Simple programs). Serial Communication - SFRs for Serial Communication-RS232 Standard-8051 Connection to RS 232-8051 Serial Port Programming Interrupts - 8051 Interrupts-SFRs for interrupt-Interrupt priority Interfacing Techniques 

 Unit IV INTERFACING TECHNIQUES 

IC 8255-Block diagram-Modes of 8255-8051 interfacing with 8255 Interfacing - Relay interfacing- Sensor interfacing -Seven Segment LED Display Interfacing - LCD Interfacing-Keyboard Interfacing-Stepper Motor interfacing-ADC Interfacing- DAC interfacing - DC motor Interfacing using PWM. 

Unit V ADVANCED MICROCONTROLLERS 

Arduino- General Block diagram- Features-Applications IoT- Introduction to IoT-Architecture of IoT- IoT Services and Applications – IoT Ethics. 


Thursday, July 24, 2025

ECE DE MCQ QUESTION WITH ANSWER

 





ECE - DE - MCQ

UNIT 1

🔢 Number System and Codes

  1. What is the decimal equivalent of binary number 1101?
    A) 11
    B) 13
    C) 14
    D) 15
    Answer: B) 13

  2. Convert (45)₁₀ to binary:
    A) 101101
    B) 110101
    C) 101011
    D) 110011
    Answer: A) 101101

  3. What is the hexadecimal representation of (255)₁₀?
    A) FE
    B) FF
    C) F0
    D) F1
    Answer: B) FF

  4. (111101)₂ is equivalent to which octal number?
    A) 75
    B) 77
    C) 65
    D) 61
    Answer: A) 75

  5. What is 1's complement of binary number 100101?
    A) 011010
    B) 100010
    C) 011011
    D) 101010
    Answer: A) 011010

  6. 2's complement of 1100 is:
    A) 0011
    B) 0100
    C) 1111
    D) 0101
    Answer: D) 0101

  7. Perform binary addition: 1011 + 1101 = ?
    A) 11000
    B) 10100
    C) 10000
    D) 11110
    Answer: A) 11000

  8. Binary subtraction: 10010 - 01001 = ?
    A) 01001
    B) 10001
    C) 01101
    D) 11111
    Answer: A) 01001

  9. What is the BCD code for decimal number 39?
    A) 0011 1001
    B) 0100 0011
    C) 0011 0110
    D) 0111 0011
    Answer: A) 0011 1001

  10. Which ASCII code represents the character 'A'?
    A) 65
    B) 66
    C) 67
    D) 64
    Answer: A) 65

  11. What is the Gray code for binary number 1010?
    A) 1111
    B) 1110
    C) 1100
    D) 1001
    Answer: B) 1110


🔣 Boolean Algebra and K-Map

  1. According to Boolean algebra, A + A = ?
    A) 1
    B) A
    C) 0
    D) A'
    Answer: B) A

  2. Which is DeMorgan’s First Theorem?
    A) (A + B)' = A'B'
    B) (AB)' = A' + B'
    C) (A + B)' = A + B
    D) A' + B' = (AB)'
    Answer: A) (A + B)' = A'B'

  3. The expression AB + A'C is in which form?
    A) POS
    B) SOP
    C) Canonical SOP
    D) Canonical POS
    Answer: B) SOP

  4. Which Boolean expression represents the POS form?
    A) AB + AC
    B) (A + B)(A + C)
    C) A + B + C
    D) ABC + A'B'C'
    Answer: B) (A + B)(A + C)

  5. What is the simplified form of A + AB using Boolean algebra?
    A) A
    B) AB
    C) B
    D) A + B
    Answer: A) A

  6. What is the value of A ⊕ B (A XOR B) when A = 1 and B = 1?
    A) 1
    B) 0
    C) A
    D) B
    Answer: B) 0

  7. In 4-variable K-map, how many cells are there?
    A) 4
    B) 8
    C) 16
    D) 32
    Answer: C) 16

  8. In K-map, adjacent cells differ by:
    A) 2 bits
    B) 1 bit
    C) 3 bits
    D) No bits
    Answer: B) 1 bit

  9. Simplify using K-map: F(A, B, C) = Σ(1, 2, 3, 7)
    A) A'C + AC
    B) B + C
    C) A + B
    D) AB + BC
    Answer: A) A'C + AC

UNIT 2



🔘 Logic Gates – Symbols, Expressions, Truth Tables


1. Which logic gate has the output expression Y = A · B?

A) OR

B) AND

C) XOR

D) NOT

✅ Answer: B) AND



2. What is the output of an OR gate when both inputs are 0?

A) 1

B) 0

C) A

D) B

✅ Answer: B) 0



3. The NOT gate is also known as a:

A) Inverter

B) Repeater

C) Comparator

D) Amplifier

✅ Answer: A) Inverter



4. Which gate has the truth table where output is 1 only when inputs differ?

A) XOR

B) XNOR

C) NOR

D) AND

✅ Answer: A) XOR



5. What is the Boolean expression for a NAND gate?

A) A + B

B) A · B

C) (A · B)'

D) (A + B)'

✅ Answer: C) (A · B)'



6. The symbol with a curved back and one input is for which gate?

A) NOT

B) AND

C) OR

D) XOR

✅ Answer: A) NOT



7. Which logic gate gives a HIGH output only when both inputs are LOW?

A) NOR

B) NAND

C) AND

D) OR

✅ Answer: A) NOR



8. The truth table of XNOR gate gives output 1 when:

A) Inputs are different

B) Both inputs are 1

C) Both inputs are 0

D) Inputs are the same

✅ Answer: D) Inputs are the same



9. Which gate has the output expression Y = (A + B)'?

A) NAND

B) NOR

C) AND

D) OR

✅ Answer: B) NOR



10. Which of the following are Universal Gates?

A) AND and OR

B) XOR and XNOR

C) NAND and NOR

D) NOT and AND

✅ Answer: C) NAND and NOR





---


🧮 Logic Circuit Realization – Using Universal Gates


11. Which gate can be used to construct all other gates?

A) AND

B) OR

C) NAND

D) XOR

✅ Answer: C) NAND



12. How many NAND gates are required to construct a NOT gate?

A) 1

B) 2

C) 3

D) 4

✅ Answer: A) 1



13. Using NOR gates, how do you create an OR gate?

A) 2 NOR gates

B) 3 NOR gates

C) 4 NOR gates

D) Not possible

✅ Answer: B) 3 NOR gates



14. Which combination gives AND gate using NAND gates?

A) Invert inputs, then NAND

B) NAND output, then invert

C) NAND output twice

D) NOR of inputs

✅ Answer: B) NAND output, then invert



15. To create an AND gate using only NOR gates, you need:

A) 2 gates

B) 3 gates

C) 4 gates

D) 1 gate

✅ Answer: C) 4 gates



16. Which gate’s output is 0 only when both inputs are 1?

A) OR

B) XOR

C) NAND

D) AND

✅ Answer: C) NAND



17. What is the implementation of A + B using NAND gates?

A) Invert A and B, then NAND

B) A NAND B

C) NAND followed by NOR

D) Cannot be done

✅ Answer: A) Invert A and B, then NAND



18. Which logic gate is used in parity checkers?

A) AND

B) OR

C) XOR

D) NOR

✅ Answer: C) XOR



19. XNOR gate is also called:

A) Even parity gate

B) Difference gate

C) NOT gate

D) Zero detector

✅ Answer: A) Even parity gate



20. The output of a NOR gate is 1 when:

A) Any one input is 1

B) B

oth inputs are 1

C) Both inputs are 0

D) One input is 0

✅ Answer: C) Both inputs are 0


UNIT 3


🔢 Arithmetic Circuits: Adders and Subtractors


1. What are the inputs to a half adder?

A) A, B, Carry-in

B) A, B

C) A, Carry-in

D) A, B, Carry-out

✅ Answer: B) A, B



2. The sum output of a half adder is:

A) A AND B

B) A OR B

C) A XOR B

D) A XNOR B

✅ Answer: C) A XOR B



3. Which of the following is used in a full adder but not in a half adder?

A) AND gate

B) XOR gate

C) Carry-in

D) OR gate

✅ Answer: C) Carry-in



4. How many inputs and outputs does a full adder have?

A) 2 inputs, 1 output

B) 3 inputs, 2 outputs

C) 2 inputs, 2 outputs

D) 3 inputs, 1 output

✅ Answer: B) 3 inputs, 2 outputs



5. The carry output of a full adder is:

A) A XOR B

B) A AND B

C) AB + BC + AC

D) A OR B

✅ Answer: C) AB + BC + AC



6. The difference output of a half subtractor is:

A) A XOR B

B) A AND B

C) A OR B

D) A NAND B

✅ Answer: A) A XOR B



7. Which component is required to design a full subtractor?

A) 1 half subtractor and 1 OR gate

B) 2 half subtractors and 1 OR gate

C) 2 half adders and 1 AND gate

D) 2 full adders

✅ Answer: B) 2 half subtractors and 1 OR gate



8. The borrow output in a half subtractor is:

A) A AND B

B) A' AND B

C) A XOR B

D) A OR B

✅ Answer: B) A' AND B





---


💾 Data Processing Circuits: Encoder, Decoder, MUX, DEMUX


9. How many output lines does a 4-to-2 encoder have?

A) 2

B) 4

C) 3

D) 1

✅ Answer: A) 2



10. The number of output lines in an 8-to-3 encoder is:

A) 2

B) 3

C) 4

D) 8

✅ Answer: B) 3



11. What is the function of an encoder?

A) Decodes input data

B) Generates sum and carry

C) Converts input to binary code

D) Multiplies input signals

✅ Answer: C) Converts input to binary code



12. Which logic circuit converts binary data from n input lines to a maximum of 2ⁿ output lines?

A) Encoder

B) Decoder

C) Multiplexer

D) Comparator

✅ Answer: B) Decoder



13. How many output lines does a 3-to-8 decoder have?

A) 3

B) 8

C) 6

D) 4

✅ Answer: B) 8



14. A 2-to-4 decoder has how many input and output lines?

A) 2 inputs, 4 outputs

B) 4 inputs, 2 outputs

C) 2 inputs, 2 outputs

D) 4 inputs, 4 outputs

✅ Answer: A) 2 inputs, 4 outputs



15. Which circuit has multiple input lines and selects one line to pass to the output?

A) Decoder

B) Encoder

C) Multiplexer

D) Demultiplexer

✅ Answer: C) Multiplexer



16. How many select lines are needed for a 4-to-1 multiplexer?

A) 1

B) 2

C) 3

D) 4

✅ Answer: B) 2



17. What is the function of a demultiplexer?

A) Combines data lines

B) Selects input lines

C) Routes one input to multiple outputs

D) Generates binary numbers

✅ Answer: C) Routes one input to multiple outputs



18. A 1-to-4 demultiplexer requires how many select lines?

A) 1

B) 2

C) 3

D) 4

✅ Answer: B) 2





---


✅ Parity Generator and Checker


19. A 3-bit even parity generator produces output 1 when:

A) Number of 1s is even

B) Number of 1s is odd

C) All bits are 0

D) All bits are 1

✅ Answer: B) Number of 1s is odd



20. The parity checker is

 used to:

A) Detect errors

B) Count 1s

C) Convert binary to decimal

D) Add bits

✅ Answer: A) Detect errors


UNIT 4


🔄 Flip-Flops and Latches


1. Which gate is used in basic SR Latch construction?

A) XOR

B) NAND

C) XNOR

D) AND

✅ Answer: B) NAND



2. A latch is a:

A) Combinational circuit

B) Sequential circuit without clock

C) Clocked sequential circuit

D) Multiplexer

✅ Answer: B) Sequential circuit without clock



3. What is the output of an SR latch when S = 0 and R = 0 (NAND-based)?

A) Invalid

B) No change

C) Reset

D) Set

✅ Answer: B) No change



4. In NOR-based SR latch, which input combination leads to invalid state?

A) S=1, R=1

B) S=0, R=0

C) S=1, R=0

D) S=0, R=1

✅ Answer: A) S=1, R=1



5. Which flip-flop stores one bit of data and has a clock input?

A) SR

B) D

C) T

D) All of these

✅ Answer: D) All of these



6. What is the purpose of the ‘Clock’ in a flip-flop?

A) Provide delay

B) Synchronize operations

C) Invert output

D) Store data

✅ Answer: B) Synchronize operations



7. Which of the following is not a type of triggering?

A) Level triggering

B) Pulse triggering

C) Edge triggering

D) Voltage triggering

✅ Answer: D) Voltage triggering



8. The output of a D flip-flop is:

A) Same as input

B) Always 0

C) Always 1

D) Inverted input

✅ Answer: A) Same as input



9. The JK flip-flop avoids the invalid state of which other flip-flop?

A) D

B) SR

C) T

D) Master-slave

✅ Answer: B) SR



10. When both J and K are high in a JK flip-flop, the output will:

A) Toggle

B) Set

C) Reset

D) No change

✅ Answer: A) Toggle





---


⏱️ More on Flip-Flops and Applications


11. T flip-flop is derived from which flip-flop?

A) JK

B) SR

C) D

D) Master-slave

✅ Answer: A) JK



12. Which flip-flop is commonly used in counters?

A) D flip-flop

B) T flip-flop

C) SR flip-flop

D) Clocked SR

✅ Answer: B) T flip-flop



13. Which flip-flop uses two clocked JK flip-flops to eliminate race condition?

A) D flip-flop

B) T flip-flop

C) Master-Slave JK

D) SR flip-flop

✅ Answer: C) Master-Slave JK



14. What is the purpose of PRESET and CLEAR in flip-flops?

A) Delay outputs

B) Eliminate race condition

C) Initialize or reset outputs

D) Increase speed

✅ Answer: C) Initialize or reset outputs



15. Flip-flops are mainly used in:

A) Memory devices

B) Adders

C) Encoders

D) Decoders

✅ Answer: A) Memory devices





---


🔢 Counters


16. What is a counter?

A) Logic adder

B) Memory cell

C) Sequential circuit that counts pulses

D) Encoder

✅ Answer: C) Sequential circuit that counts pulses



17. Asynchronous counter is also known as:

A) Parallel counter

B) Serial counter

C) Ripple counter

D) Decade counter

✅ Answer: C) Ripple counter



18. What is the major drawback of asynchronous counters?

A) High power

B) Limited speed

C) Propagation delay

D) High cost

✅ Answer: C) Propagation delay



19. Which counter has all flip-flops triggered by the same clock?

A) Ripple counter

B) Serial counter

C) Synchronous counter

D) Decade counter

✅ Answer: C) Synchronous counter



20. A decade counter counts from:

A) 0 to 9

B) 0 to 10

C) 0 to 15

D) 1 to 10

✅ Answer: A) 0 to 9


UNIT 5


🔁 Shift Registers


1. What is the primary function of a shift register?

A) Perform arithmetic operations

B) Store and transfer data

C) Decode binary values

D) Generate clock pulses

✅ Answer: B) Store and transfer data



2. In a Serial In Serial Out (SISO) shift register, data is:

A) Entered and removed in parallel

B) Entered in serial, read in parallel

C) Entered and read in serial

D) Stored permanently

✅ Answer: C) Entered and read in serial



3. Which shift register allows loading all bits at the same time and outputs them one by one?

A) Serial In Serial Out

B) Serial In Parallel Out

C) Parallel In Serial Out

D) Parallel In Parallel Out

✅ Answer: C) Parallel In Serial Out



4. Which shift register outputs all bits simultaneously after shifting in serial data?

A) SISO

B) PISO

C) SIPO

D) PIPO

✅ Answer: C) SIPO



5. Which shift register has both parallel input and parallel output?

A) SIPO

B) PIPO

C) SISO

D) PISO

✅ Answer: B) PIPO



6. A 4-bit shift register can hold:

A) 2 bits

B) 4 bits

C) 8 bits

D) 1 byte

✅ Answer: B) 4 bits



7. Which of the following is not an application of shift registers?

A) Serial-to-parallel conversion

B) Parallel-to-serial conversion

C) Data storage

D) Multiplication

✅ Answer: D) Multiplication



8. Shift registers operate based on:

A) Combinational logic

B) Counters

C) Clock pulses

D) Cache memory

✅ Answer: C) Clock pulses





---


💾 Memory – ROM and Types


9. ROM stands for:

A) Read On Memory

B) Random Only Memory

C) Read Only Memory

D) Rapid Output Memory

✅ Answer: C) Read Only Memory



10. Which type of ROM can be programmed once by the user?

A) PROM

B) EPROM

C) EEPROM

D) Flash

✅ Answer: A) PROM



11. Which ROM type can be erased using UV light?

A) PROM

B) EPROM

C) EEPROM

D) Flash

✅ Answer: B) EPROM



12. EEPROM can be erased using:

A) Ultraviolet light

B) Heat

C) Electrical signals

D) Magnetic field

✅ Answer: C) Electrical signals



13. Which ROM type is commonly used in USB drives and memory cards?

A) EEPROM

B) Flash

C) EPROM

D) PROM

✅ Answer: B) Flash



14. ROM is generally used for:

A) Temporary storage

B) Storing boot programs

C) Arithmetic operations

D) Cache memory

✅ Answer: B) Storing boot programs





---


🧠 Memory – RAM, Cache, and Comparison


15. What does RAM stand for?

A) Read and Memory

B) Random Access Memory

C) Rapid Access Module

D) Registered Arithmetic Memory

✅ Answer: B) Random Access Memory



16. Which type of RAM uses flip-flops to store data?

A) DRAM

B) Flash

C) SRAM

D) EEPROM

✅ Answer: C) SRAM



17. DRAM stores data using:

A) Flip-flops

B) Capacitors

C) Latches

D) Registers

✅ Answer: B) Capacitors



18. Which of the following is faster but more expensive?

A) DRAM

B) SRAM

C) ROM

D) PROM

✅ Answer: B) SRAM



19. Which of the following best compares RAM and ROM?

A) RAM is permanent, ROM is volatile

B) RAM is faster, ROM is slower

C) RAM stores firmware, ROM stores data

D) ROM loses data when power is off

✅ Answer: B) RAM is faster, ROM is slower



20. Cache memory is used to:

A) Store BIOS

B) Backup hard disk

C) Provide faster access to frequently used data

D) Stor

e output permanently

✅ Answer: C) Provide faster access to frequently used data





ACS CA1

  Part A 1. ASK stands for:  a) Amplitude Shift Keying b) Amplitude Sharing Keying  c) Analog Signal Keying d) Amplitude Sampling Key  2. In...