Programming Test: Arrays And Loops

10 Questions | Total Attempts: 131

SettingsSettingsSettings
Programming Test: Arrays And Loops - Quiz

Programmers who are in the know consider it a useful data structure which consists of a number of variables and values. Each variable that is associated with an element is often identified by a key or index. Do you know each array can be computed using a certain mathematical formula? Try this quiz now!


Questions and Answers
  • 1. 
    Which of these programming languages does have support for multi-dimensional arrays?
    • A. 

      C

    • B. 

      FORTRAN 

    • C. 

      COBOL 

    • D. 

      Ruby 

  • 2. 
    Which of these does not require arrays?
    • A. 

      Heaps 

    • B. 

      String 

    • C. 

      Queues 

    • D. 

      Loops 

  • 3. 
    Which of these connotes condition?
    • A. 

      IF

    • B. 

      @IT#

    • C. 

      Can 

    • D. 

      Ahrefs 

  • 4. 
    Which of these is not used to pack these parameters? 
    • A. 

      Vector processor 

    • B. 

      Dope vector 

    • C. 

      String 

    • D. 

      Lists 

  • 5. 
    What element does ALGOL use?
    • A. 

      Do

    • B. 

      Can

    • C. 

      For 

    • D. 

      Will

  • 6. 
    What element does Fortran use?
    • A. 

      Do

    • B. 

      For 

    • C. 

      Is 

    • D. 

      Can

  • 7. 
    How many parts does a for-loop have?
    • A. 

      Two parts 

    • B. 

      Nine parts 

    • C. 

      Four parts 

    • D. 

      Six parts 

  • 8. 
    What does the header of a for-loop specify?
    • A. 

      End 

    • B. 

      Array 

    • C. 

      List 

    • D. 

      Iteration 

  • 9. 
    Which of these is not a type of for-loop?
    • A. 

      Traditional for-loops

    • B. 

      Iterator-based for-loops 

    • C. 

      Special for-loops 

    • D. 

      Vectorised for-loops 

  • 10. 
    Which of these languages does not support for-loops?
    • A. 

      BASIC 

    • B. 

      Modula 

    • C. 

      Python

    • D. 

      Pascal 

Back to Top Back to top