GoConqr has a new look! Let us know what you think.

Quiz

GAME 1001 Chapter 8

Liam Blake 15 questions

Take the quiz

This quiz has a time limit, so it opens in the usual player.

Questions in this quiz (15)

  1. 1An array is:
    1. AA - has a subscript
    2. BB - a variable that can store multiple values of the same type
    3. CC - declared using ( ) operator
    4. DA and B are correct
    5. EB and C are correct
    6. FA, B, and C are correct
  2. 2Each array [blank_start]element[blank_end] has a [blank_start]subscript[blank_end] used to access the element. Subscripts start at [blank_start]0[blank_end].
    1. Aelement
    2. Bprototype
    3. Csubscript
    4. Drefrence
    5. Eparameter
    6. F0
    7. G1
    8. H10
  3. 3int tests[ISIZE];
    ISIZE = ___?
    1. Athe size declarator
    2. Bthe name of the array
    3. Cthe data type of the array elements
    4. DNone of the above
    5. EAll of the above
  4. 4cout and cin can be used to display values from and store values into an array
    1. ATrue
    2. BFalse
  5. 5Which of the following can be used to access each element of an array?
    1. AUse a loop
    2. BUse a control variable
    3. CUse a subscript
    4. DIncrement the array index using ++ or --
    5. EAll of the above
    6. FNone of the above
  6. 6Which of the following is false about arrays?
    1. Athere are no checks in an array that a subscript is in range
    2. Ban invalid subscript can cause the program to overwrite other memory
    3. Can array can be initialized during the program
    4. DC++ can't determine the size of an initialization list
    5. EAll are correct
  7. 7What does a range based for loop do?
    1. Aa loop that simplifies array processing
    2. Bit uses a variable that will hold a different array
    3. Cdo not have to set the array initialization list
    4. DAll of the above
    5. ENone of the above
  8. 8Which of the following statements is false (Refer to the comments "//")
    1. Aarrays can be treated as ordinary variables
    2. Bused in arithmetic expressions
    3. Ctests[i] //++ adds 1 to the tests[i]
    4. Dtests[i++] //Will not work
    5. EAll of the above are correct
  9. 9What is a parallel Array?
    1. Atwo or more arrays that contain related data
    2. Ba variable that can store multiple data types
    3. Cno checks in c++ that indicate its there
    4. DNone of the above
    5. EAll of the above
  10. 10What is this an example of?
    -> typedef existingType newName
    1. Aa typeindef statement used to make code more reliable
    2. Ba typeindef statement used to make a variable also accepted by a different data type
    3. Cpasses an array to a function
    4. Darray parameters

Information

Description
Intro to Programming - GAME1001 Quiz on GAME 1001 Chapter 8, created by Liam Blake on 28/11/2018.
Language
English
Views
0
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?