pencil-icon
Build your own quiz

Computers

Image

Arrays

133
plays

10 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt
    Which of the following are good examples of things to store as arrays or lists? 
    I – A to-do list 
    II – A grocery list 
    III – A ball in a game of breakout 
    IV – A list of balls in a game of breakout 
    V – A loop counter variable
    II only
    III and V
    I, II, and IV
    I, II, III, IV, and V
  • 2. Multiple Choice
    30 seconds
    1 pt
    var groceries = ["milk", "sugar", "eggs", "cake"];
    What is the value of groceries[2] in the above array?
    "milk"
    "sugar"
    "eggs"
    "cake"
  • 3. Multiple Choice
    30 seconds
    1 pt
    var shoppingList = ["milk", "eggs", "sugar", "bread", "cake"];
    What is the index of the item "bread" in the array shoppingList?
    4
    3
    5
    6
  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?