C++ Chapter 2 Quiz Test

15 Questions | Total Attempts: 297

SettingsSettingsSettings
Please wait...
C++ Chapter 2 Quiz Test

Chapter 2 Quiz/Review Sheet/Test Whatever. From Hanna to Jono


Questions and Answers
  • 1. 
    How many bits are there in a byte?
    • A. 

      3

    • B. 

      12

    • C. 

      8

    • D. 

      1

    • E. 

      24

  • 2. 
    What is data?
    • A. 

      Computer representation of scientific facts.

    • B. 

      The arrangement of the binary number system.

    • C. 

      Something that can be measured.

    • D. 

      Computer representation of something that exists in the real world.

  • 3. 
    What does the microprocessor do?
    • A. 

      The device that executes machine language instructions.

    • B. 

      Kills people.

    • C. 

      Reads the code the programmer writes and assembles a machine language program based on those codes.

    • D. 

      Debugs runtime errors.

  • 4. 
    What is an example of a low level language?
    • A. 

      Binary code

    • B. 

      BASIC

    • C. 

      Pascal

    • D. 

      C++

  • 5. 
    What is the definition of a digital device?
    • A. 

      Something that uses quantities that are avaliable or exist in a range.

    • B. 

      Something that uses switches in combinination to represent something in the real world.

  • 6. 
    What is the definition of an analog device?
    • A. 

      Something that uses quantities that are avaliable or exist in a range.

    • B. 

      Something that uses switches in combinination to represent something in the real world.

  • 7. 
    Name two advantages of low level languages and two advantages of high level languages.
  • 8. 
    What is an interpreter?
    • A. 

      Files saved by a text editer in ASCII format.

    • B. 

      Program that translates the source code of a high level language into machine language. Every time a program written in an interpreted language needs to be inerpreted, the interpreter must once again translate each instruction.

    • C. 

      A program that translates the source code of a high level language into machine language. The interpreter makes the translation onces, then saves the machine language so that the instructions do not have to be translated each time.

  • 9. 
    Which of the answers in question 10 are the definition of a compiler?
    • A. 

      A

    • B. 

      B

    • C. 

      C

  • 10. 
    Fill in the blank for the steps involved in using a compiler.Source code -> compiler -> __________ -> linker -> executable code
    • A. 

      Object code

    • B. 

      Interpreter

    • C. 

      C++

  • 11. 
    What is an algorithm?
    • A. 

      A graphic user interface, a system used for interacting with the computer user through pictures.

    • B. 

      Set of sequential instructions that are followed to solve a problem.

    • C. 

      The part of the computer that stores random access memory.

  • 12. 
    Name the five steps of the programming process.
  • 13. 
    What is a runtime error or a crash?
    • A. 

      A type of error that can cause your program to stop running.

    • B. 

      Instructions that fail.

    • C. 

      A set of sequential instructions.

    • D. 

      Flying squirrels.

  • 14. 
    What is a syntax error?
    • A. 

      An error caused by moths flying into vacuum tubes.

    • B. 

      When program a command that the computer cannot execute.

    • C. 

      An error that occurs when you key a command or some other part of the program incorrectly.

  • 15. 
    What is the purpose of documentation inside a program?