Computer Programming Basics: Quiz

10 Questions | Total Attempts: 167

SettingsSettingsSettings
Please wait...
Computer Programming Basics: Quiz


Questions and Answers
  • 1. 
    What command do you use to output data to the screen?
    • A. 

      Cin

    • B. 

      Cout>>

    • C. 

      Cout

    • D. 

      Output>>

  • 2. 
    A Syntax Error is? 
    • A. 

      An error you will never find

    • B. 

      An error you find at the end when the program gives out a wrong value due to logic error

    • C. 

      An error caused by language rules being broken.

    • D. 

      An error due to user error

  • 3. 
    Which data structure uses LIFO?
    • A. 

      Array

    • B. 

      Int

    • C. 

      Stacks

    • D. 

      Queues

  • 4. 
    What is FIFO?
    • A. 

      First in Few Out

    • B. 

      Few In Few out

    • C. 

      First In First Out

    • D. 

      Few In First Out

  • 5. 
    A memory location that holds a single letter or number.  
    • A. 

      Double

    • B. 

      Int

    • C. 

      Char

    • D. 

      Word

  • 6. 
    A do-while and a while loop are the same.
    • A. 

      True

    • B. 

      False

  • 7. 
    A short section of code written to complete a task. 
    • A. 

      Buffer

    • B. 

      Array

    • C. 

      Function

  • 8. 
    Int holds decimals numbers.
    • A. 

      True

    • B. 

      False

  • 9. 
    One loop inside the body of another loop is called 
    • A. 

      Loop in loop

    • B. 

      Nested

    • C. 

      Double loops

  • 10. 
    What does this equation mean? a != t
    • A. 

      A is assinged t

    • B. 

      A and t are equal

    • C. 

      A is not equal to t

    • D. 

      T is add to a

Back to Top Back to top