1. Home
  2. Explore
  3. Computer Science
  4. How Computers Work

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

How Computers Work

  • 36Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Basic Circuits & Binary

In a simple computer circuit, what voltage level is typically supplied between the positive terminal and ground?

36 questions

  1. 1

    In a simple computer circuit, what voltage level is typically supplied between the positive terminal and ground?

    1. A

      1.5 V or 2.0 V

    2. B

      0 V or 1 V

    3. C

      3.3 V or 5 V

    4. D

      9 V or 12 V

    Correct answer
    C

    3.3 V or 5 V

    Explanation

    Modern computer components typically supply 3.3 or 5 volts between the positive terminal and ground.

  2. 2

    How does a computer treat information based on voltage levels?

    1. A

      As binary: on/off, true/false, 1/0 based on high or low voltage

    2. B

      As decimal numbers from 0 to 9

    3. C

      As analog signals with continuous values

    4. D

      As base-10 numbers represented by voltage magnitude

    Correct answer
    A

    As binary: on/off, true/false, 1/0 based on high or low voltage

    Explanation

    Computers treat information as binary, with high voltage representing 1/true/on and low voltage representing 0/false/off.

  3. 3

    What is the difference between a push-to-make switch and a push-to-break switch?

    1. A

      Push-to-make requires a person to press; push-to-break is automatic

    2. B

      Push-to-make breaks the circuit when pressed; push-to-break completes the circuit when pressed

    3. C

      Push-to-make completes the circuit when pressed; push-to-break breaks the circuit when pressed

    4. D

      Both complete the circuit when pressed, but with different materials

    Correct answer
    C

    Push-to-make completes the circuit when pressed; push-to-break breaks the circuit when pressed

    Explanation

    A push-to-make switch completes the circuit when pressed, while a push-to-break switch breaks the circuit when pressed.

  4. 4

    Which type of MOSFET conducts electricity when a high voltage is applied to its gate?

    1. A

      Neither type

    2. B

      N-channel MOSFET

    3. C

      P-channel MOSFET

    4. D

      Both N-channel and P-channel

    Correct answer
    B

    N-channel MOSFET

    Explanation

    An N-channel MOSFET conducts when a high voltage is applied to the gate, similar to a push-to-make switch.

  5. 5

    In a CMOS pair, what is the relationship between the gate terminals of the N-channel and P-channel MOSFETs?

    1. A

      They are connected to the output

    2. B

      They are always connected together so they receive the same input

    3. C

      They are always connected to different inputs

    4. D

      They are not connected; each has its own independent gate

    Correct answer
    B

    They are always connected together so they receive the same input

    Explanation

    In CMOS, the gate terminals of a given pair are always connected together so they receive the same input voltage.

  6. 6

    What is the output of a CMOS NOT gate when the input is a high voltage (1)?

    1. A

      Undefined

    2. B

      High voltage (1)

    3. C

      Depends on the supply voltage

    4. D

      Low voltage (0)

    Correct answer
    D

    Low voltage (0)

    Explanation

    In a CMOS NOT gate, when input is high, the N-channel opens a path to low voltage, so output is low (0).

  7. 7

    Which elements are used to dope silicon to create P-type and N-type materials respectively?

    1. A

      Silicon for P-type, Germanium for N-type

    2. B

      Boron for N-type, Phosphorus for P-type

    3. C

      Gallium for P-type, Arsenic for N-type

    4. D

      Arsenic for P-type, Gallium for N-type

    Correct answer
    C

    Gallium for P-type, Arsenic for N-type

    Explanation

    Gallium has three valence electrons (one less than silicon) creating P-type; arsenic has five (one more) creating N-type.

  8. 8

    In lithography, what is the purpose of a photoresist?

    1. A

      To conduct electricity between layers

    2. B

      To protect areas from etching after being selectively exposed to light

    3. C

      To dope the silicon with impurities

    4. D

      To connect transistors with metal tracks

    Correct answer
    B

    To protect areas from etching after being selectively exposed to light

    Explanation

    Photoresist is deposited, exposed through a mask, and then selectively removed to create gaps for etching; unexposed photoresist protects areas from etching.

  9. 9

    What is the fundamental resolution limit in lithography?

    1. A

      The wavelength of light used for exposure

    2. B

      The speed of light

    3. C

      The number of masks available

    4. D

      The thickness of the silicon die

    Correct answer
    A

    The wavelength of light used for exposure

    Explanation

    Exposed areas must be at least as large as the wavelength of light used; hence very short wavelength ultraviolet light is used.

  10. 10

    Which logic gate outputs 1 only when all inputs are 1?

    1. A

      NAND gate

    2. B

      AND gate

    3. C

      XOR gate

    4. D

      OR gate

    Correct answer
    B

    AND gate

    Explanation

    An AND gate outputs 1 only when all inputs are 1.

  11. 11

    What is the output of an XOR gate when inputs are 0 and 1?

    1. A

      Undefined

    2. B

      0

    3. C

      1

    4. D

      Depends on the order of inputs

    Correct answer
    C

    1

    Explanation

    An XOR gate outputs 1 when inputs are different (one 0 and one 1).

  12. 12

    Why is the NAND gate considered universal?

    1. A

      It is the most commonly used gate in computers

    2. B

      It operates at the highest speed

    3. C

      It can be used to create any other logic gate

    4. D

      It uses the least number of transistors

    Correct answer
    C

    It can be used to create any other logic gate

    Explanation

    The NAND gate is universal because any other gate can be created using only NAND gates.

  13. 13

    In a CMOS NAND gate, what happens when both inputs are high (1)?

    1. A

      The output is high

    2. B

      The output is undefined

    3. C

      The output is low

    4. D

      The circuit shorts out

    Correct answer
    C

    The output is low

    Explanation

    In a CMOS NAND gate, when both inputs are high, the N-channel paths to ground open and the P-channel paths to high voltage close, so output is low (0).

  14. 14

    What does the binary number 101 represent in base 10?

    1. A

      3

    2. B

      5

    3. C

      6

    4. D

      101

    Correct answer
    B

    5

    Explanation

    101 in binary is 1×4 + 0×2 + 1×1 = 5.

  15. 15

    In binary addition of two 1-bit numbers, which gates are used to produce the sum and carry bits respectively?

    1. A

      OR for sum, NAND for carry

    2. B

      AND for sum, XOR for carry

    3. C

      XOR for sum, OR for carry

    4. D

      XOR for sum, AND for carry

    Correct answer
    D

    XOR for sum, AND for carry

    Explanation

    The sum bit is 1 when inputs differ (XOR) and carry is 1 only when both inputs are 1 (AND).

  16. 16

    How does a computer multiply a binary number by 2?

    1. A

      Add the number to itself

    2. B

      Shift all bits right by one position

    3. C

      Shift all bits left by one position and add a 0

    4. D

      Multiply by 10 in base 10

    Correct answer
    C

    Shift all bits left by one position and add a 0

    Explanation

    Multiplying by 2 (10 in binary) is done by a left shift, which adds a 0 at the end (bit shift).

  17. 17

    How does a computer check if two binary numbers are equal?

    1. A

      Use XNOR gates on each bit and AND the results

    2. B

      Use a single AND gate on the whole number

    3. C

      Use OR gates on each bit and check if any bit is different

    4. D

      Use XOR gates on each bit and OR the results

    Correct answer
    A

    Use XNOR gates on each bit and AND the results

    Explanation

    XNOR returns 1 when bits are equal; AND of all XNOR outputs is 1 only if all bits are equal.

  18. 18

    In a signed binary number, what does the leading bit indicate?

    1. A

      The magnitude of the number

    2. B

      The sign (0 for positive, 1 for negative)

    3. C

      The number of bytes used

    4. D

      Whether the number is even or odd

    Correct answer
    B

    The sign (0 for positive, 1 for negative)

    Explanation

    In signed numbers, the leading bit is 0 for positive and 1 for negative.

  19. 19

    What is a D-latch used for in a computer?

    1. A

      To perform arithmetic operations

    2. B

      To store a single bit of data

    3. C

      To decode instructions

    4. D

      To generate clock signals

    Correct answer
    B

    To store a single bit of data

    Explanation

    A D-latch latches and holds a bit value; it is used to store data.

  20. 20

    What is the purpose of the enable input in a D-latch?

    1. A

      To reset the latch to zero

    2. B

      To allow the input bit to propagate to the output when enable is 1

    3. C

      To invert the stored value

    4. D

      To connect the latch to the clock

    Correct answer
    B

    To allow the input bit to propagate to the output when enable is 1

    Explanation

    When enable is 1, the input D propagates to the output; when enable is 0, the output holds its previous value.

  21. 21

    What is a register composed of?

    1. A

      A single D-latch

    2. B

      A set of logic gates

    3. C

      A capacitor and a transistor

    4. D

      8 D-latches (to store a byte)

    Correct answer
    D

    8 D-latches (to store a byte)

    Explanation

    A register typically stores a byte (8 bits) using 8 latches.

  22. 22

    Why does a computer have a clock?

    1. A

      To measure time for the user

    2. B

      To determine the number of instructions per second

    3. C

      To synchronize operations and ensure signals finish before reading results

    4. D

      To power the components

    Correct answer
    C

    To synchronize operations and ensure signals finish before reading results

    Explanation

    The clock synchronizes events and ensures enough time for signals to propagate before reading outputs.

  23. 23

    How is data stored in dynamic random-access memory (DRAM)?

    1. A

      Using optical discs

    2. B

      Using magnetic domains

    3. C

      Using flip-flops made of transistors

    4. D

      Using capacitors that hold charge (leaking over time)

    Correct answer
    D

    Using capacitors that hold charge (leaking over time)

    Explanation

    DRAM uses capacitors that are charged (1) or discharged (0); the charge leaks and must be refreshed.

  24. 24

    What is the difference between a 32-bit and 64-bit program?

    1. A

      32-bit programs run twice as fast

    2. B

      32-bit programs cannot use registers

    3. C

      64-bit programs use 64-bit processors only

    4. D

      64-bit programs can use more RAM because they have larger memory addresses

    Correct answer
    D

    64-bit programs can use more RAM because they have larger memory addresses

    Explanation

    64-bit systems use 64-bit addresses, allowing more than 4 GB of RAM to be addressed (32-bit addresses limit to ~4 GB).

  25. 25

    Which storage type has the fastest access time?

    1. A

      Solid-state drive

    2. B

      Hard disk drive

    3. C

      Random access memory (RAM)

    4. D

      Processor cache

    Correct answer
    D

    Processor cache

    Explanation

    Cache is small but quick to access; it is the fastest among these options.

  26. 26

    In the von Neumann architecture, where are instructions stored?

    1. A

      In the same memory as data, as binary numbers

    2. B

      Only in the processor's registers

    3. C

      In a separate instruction memory only

    4. D

      On a hard disk never in RAM

    Correct answer
    A

    In the same memory as data, as binary numbers

    Explanation

    Von Neumann architecture stores instructions and data in the same memory, both as binary numbers.

  27. 27

    How does the computer know where the next instruction is in memory after executing an instruction?

    1. A

      It uses a separate pointer for each instruction type

    2. B

      Each instruction type has a fixed length, and the computer advances by that number of bytes

    3. C

      It always increments a program counter by one byte

    4. D

      The instruction itself contains the address of the next instruction

    Correct answer
    B

    Each instruction type has a fixed length, and the computer advances by that number of bytes

    Explanation

    Each instruction type has a set length; after executing, the computer advances by that many bytes to the next instruction.

  28. 28

    What does a jump instruction do?

    1. A

      It skips the next instruction

    2. B

      It halts the processor

    3. C

      It moves execution to a specified memory address instead of the next sequential instruction

    4. D

      It swaps two registers

    Correct answer
    C

    It moves execution to a specified memory address instead of the next sequential instruction

    Explanation

    A jump instruction causes the program to continue from a given memory address, enabling loops.

  29. 29

    What makes a computer Turing complete?

    1. A

      The ability to add binary numbers

    2. B

      Running at a clock speed above 1 GHz

    3. C

      Having conditional jumps (branching) in addition to jumps

    4. D

      Having a large enough hard disk

    Correct answer
    C

    Having conditional jumps (branching) in addition to jumps

    Explanation

    Conditional jumps allow the computer to execute different instructions based on conditions, making it Turing complete.

  30. 30

    What is the role of a compiler?

    1. A

      To translate high-level programming language into machine instructions and memory addresses

    2. B

      To manage memory at runtime

    3. C

      To execute code directly

    4. D

      To act as an operating system

    Correct answer
    A

    To translate high-level programming language into machine instructions and memory addresses

    Explanation

    A compiler translates human-readable code into the specific instructions and memory layout that the processor understands.

  31. 31

    What is a DLL file on Windows?

    1. A

      A file that stores the operating system's configuration

    2. B

      A dynamic link library containing compiled functions that programs can use

    3. C

      A device driver

    4. D

      A type of executable program

    Correct answer
    B

    A dynamic link library containing compiled functions that programs can use

    Explanation

    DLL stands for Dynamic Link Library; it contains compiled functions that can be shared across programs.

  32. 32

    How many bytes are used to define the color of a single pixel in a typical red-green-blue display?

    1. A

      4 bytes (including alpha channel)

    2. B

      2 bytes (65536 colors)

    3. C

      3 bytes (one each for red, green, blue)

    4. D

      1 byte (256 possible colors)

    Correct answer
    C

    3 bytes (one each for red, green, blue)

    Explanation

    Each of the three colors (red, green, blue) uses one byte, so 3 bytes per pixel for color.

  33. 33

    What is the Bresenham algorithm used for?

    1. A

      Sorting numbers

    2. B

      Drawing lines between two points on a display

    3. C

      Encrypting data

    4. D

      Compressing audio files

    Correct answer
    B

    Drawing lines between two points on a display

    Explanation

    The Bresenham algorithm draws a straight line between two (x,y) coordinates on a pixel grid.

  34. 34

    How does a speaker produce sound?

    1. A

      By heating a wire to cause air expansion

    2. B

      By varying the voltage across an LED

    3. C

      By moving a membrane back and forth using an electromagnet

    4. D

      By spinning a magnet near a coil

    Correct answer
    C

    By moving a membrane back and forth using an electromagnet

    Explanation

    A speaker has a membrane with a permanent magnet inside a coil; an oscillating current moves the membrane, creating sound waves.

  35. 35

    How does a computer identify which key on a keyboard was pressed?

    1. A

      The keyboard sends the ASCII code directly

    2. B

      The computer measures the time since the last key press

    3. C

      Each key has a unique frequency transmitted to the computer

    4. D

      Keys are arranged in a grid; pressing a key connects a row and column, identifying the key

    Correct answer
    D

    Keys are arranged in a grid; pressing a key connects a row and column, identifying the key

    Explanation

    Keys are arranged in a matrix; pressing a key makes electrical contact between a row and column, allowing identification.

  36. 36

    When a user clicks a button on the screen, how does the computer determine if the click is inside the button?

    1. A

      It uses a random number generator to guess

    2. B

      It checks if the mouse coordinates are within the button's rectangle using comparisons

    3. C

      It sends a signal to the button hardware

    4. D

      It compares the click location to a list of previously stored click locations

    Correct answer
    B

    It checks if the mouse coordinates are within the button's rectangle using comparisons

    Explanation

    The program checks if the mouse x and y coordinates are within the button's left/right and top/bottom boundaries using conditional comparisons.

Question 1 of 36
Question 1 of 36

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent