StudyFox
कीमतेंब्लॉगएक्सटेंशनमुफ़्त टूल
  • कीमतें
  • ब्लॉग
  • एक्सटेंशन
  • मुफ़्त टूल
  • शुरू करेंसाइन इन
StudyFox

अपने नोट्स, PDF और स्लाइड्स को फ़्लैशकार्ड, क्विज़, नोट्स और माइंड मैप में बदलें।

StudyFox खोलें

स्टडी टूल्स

  • होमवर्क हेल्पर
  • नोट मेकर
  • फ़्लैशकार्ड मेकर
  • क्विज़ मेकर
  • माइंड मैप मेकर

प्रोडक्ट

  • कीमतें
  • Chrome एक्सटेंशन
  • मुफ़्त एक्सटेंशन
  • स्टडी सेट देखें
  • ब्लॉग

सहायता

  • सहायता केंद्र
  • संपर्क करें
  • गोपनीयता नीति
  • सेवा की शर्तें

तुलना करें

  • Chegg का विकल्प
  • Course Hero का विकल्प
  • Coursology का विकल्प
  • Photomath का विकल्प
  • Gauthmath का विकल्प
  • PhotoSolve का विकल्प
  • CollegeTools का विकल्प
  • Transcript का विकल्प
  • SmartSolve का विकल्प
  • Homeworkify का विकल्प
  • AnswersAi का विकल्प
  • StudyX का विकल्प
  • Quizlet का विकल्प
  • Anki का विकल्प
  • Knowt का विकल्प
  • Brainscape का विकल्प
  • सभी तुलनाएँ

© 2026 StudyFox AI. सर्वाधिकार सुरक्षित।

  • X
  • Discord
  • Instagram
ExploreEngineering & TechComputer ScienceComputer Architecture Quiz: Data Representation and Logic

Quiz · Medium

Computer Architecture Quiz: Data Representation and Logic

Two's complement, IEEE 754, endianness, Boolean algebra, adders and CPU basics.

by Kill h.20 questionsCreated Nov 20, 2026, 08:26 PM
Computer Science· Computer ArchitectureTags#binary#logic#ieee-754#computer-science#computer-architecture

20 questions

  1. 1

    What is the range of an 8-bit two's complement integer?

    • A

      0 to 255

    • B

      -127 to 127

    • -128 to 127

    • D

      -256 to 255

    The leftmost bit has weight -128, so the range is -128 to 127.

  2. 2

    The diagram shows an 8-bit two's complement pattern. What value does it represent?

    • -10

    • B

      246

    • C

      -118

    • D

      10

    -128 + 64 + 32 + 16 + 4 + 2 = -10. (Unsigned it would be 246.)

  3. 3

    In 8-bit two's complement, what is -5?

    • A

      10000101

    • 11111011

    • C

      11111010

    • D

      00000101

    5 = 00000101; invert to 11111010 and add 1 to get 11111011.

  4. 4

    What does 0x1F equal in decimal?

    • A

      15

    • B

      16

    • 31

    • D

      32

    1 x 16 + 15 = 31.

  5. 5

    In IEEE 754 single precision, how many bits are used for the exponent?

    • A

      5

    • 8

    • C

      11

    • D

      23

    1 sign + 8 exponent (bias 127) + 23 fraction = 32 bits. Double precision uses 11 exponent bits.

  6. 6

    Why does 0.1 + 0.2 not equal exactly 0.3 in binary floating point?

    • A

      Floating point cannot add

    • 0.1 and 0.2 have no exact binary representation

    • C

      The CPU rounds incorrectly

    • D

      Python is slow

    Both are stored as rounded binary fractions, so the sum carries a tiny error.

  7. 7

    A 32-bit value 0x12345678 is stored little-endian at address 100. Which byte is at address 100?

    • A

      0x12

    • B

      0x34

    • C

      0x56

    • 0x78

    Little-endian stores the least significant byte at the lowest address: 78 56 34 12.

  8. 8

    Which gate outputs 1 only when its inputs differ?

    • A

      AND

    • B

      OR

    • XOR

    • D

      NAND

    XOR is true when exactly one input is 1.

  9. 9

    According to De Morgan's law, NOT (A AND B) equals:

    • A

      NOT A AND NOT B

    • NOT A OR NOT B

    • C

      A OR B

    • D

      A XOR B

    Negating an AND gives the OR of the negations.

  10. 10

    What is the carry output of a half adder?

    • A

      A XOR B

    • A AND B

    • C

      A OR B

    • D

      NOT A

    Carry = A AND B and Sum = A XOR B.

  11. 11

    In the full-adder diagram, which input is the carry from the previous stage?

    • A

      A

    • B

      B

    • Cin

    • D

      Cout

    Cin is the carry-in; Cout goes to the next stage.

  12. 12

    What is the main drawback of a ripple-carry adder?

    • A

      It cannot add negative numbers

    • The carry must propagate through every stage, making it slow

    • C

      It needs a clock

    • D

      It only adds 4 bits

    Delay grows linearly with the width; carry-lookahead adders reduce it.

  13. 13

    Which memory element is edge-triggered?

    • A

      SR latch

    • D flip-flop

    • C

      Multiplexer

    • D

      Decoder

    A flip-flop samples its input on a clock edge; a latch is level-sensitive.

  14. 14

    Which gate types are universal?

    • A

      AND and OR

    • NAND and NOR

    • C

      XOR and XNOR

    • D

      NOT only

    Any Boolean function can be built from NAND gates alone or NOR gates alone.

  15. 15

    Which flag indicates unsigned overflow after an addition?

    • A

      Zero

    • B

      Negative

    • Carry

    • D

      Parity

    Carry is set when there is a carry out of the most significant bit; signed overflow uses the overflow flag.

  16. 16

    In the von Neumann diagram, which unit executes instructions' arithmetic?

    • A

      Control Unit

    • Arithmetic/Logic Unit

    • C

      Memory Unit

    • D

      Input Device

    The ALU performs arithmetic and logic operations; the control unit sequences them.

  17. 17

    In the fetch diagram, which register holds the address of the next instruction?

    • A

      MAR

    • B

      MDR

    • PC

    • D

      IR

    The program counter provides the address; it is copied to MAR to start the memory read.

  18. 18

    A CPU runs a 10^9-instruction program with CPI 2 at 2 GHz. How long does it take?

    • A

      0.5 s

    • 1 s

    • C

      2 s

    • D

      4 s

    10^9 x 2 / (2 x 10^9) = 1 second.

  19. 19

    Which statement describes a load/store architecture?

    • A

      Arithmetic instructions read memory directly

    • Only load and store instructions access memory

    • C

      Instructions have variable length

    • D

      It has no registers

    In load/store (RISC) designs arithmetic operates on registers only.

  20. 20

    How many distinct values can a 12-bit field hold?

    • A

      144

    • B

      1024

    • 4096

    • D

      8192

    2^12 = 4096.