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

Quiz

Intro to Computer Science S2 Chapter 10

Grant Eversole 44 questions

Take the quiz

This quiz has question types that open in the usual player.

Questions in this quiz (44)

  1. 1It is not possible for an array to hold an array.
    1. ATrue
    2. BFalse
  2. 2Two-dimensional array indexes are listed as [blank_start]rows[blank_end] and [blank_start]columns[blank_end]
    1. Arows
    2. Bcolumns
  3. 3Two-dimensional arrays store information that can be represented as a [blank_start]grid[blank_end]
    1. Agrid
  4. 4Consider the following code:
    grid = []
    grid.append (["frog", "cat", "hedgehog"])
    grid.append (["fish", "emu", "rooster"])
    print (grid)
    How many rows does this array have?
    [blank_start]2[blank_end]
    1. A2
  5. 5Consider the following code:
    grid = []
    grid.append (["frog", "cat", "hedgehog"])
    grid.append (["fish", "emu", "rooster"])
    print (grid)
    How many columns does this array have?
    [blank_start]3[blank_end]
    1. A3
  6. 6Consider the following code:
    grid = []
    grid.append (["frog", "cat", "hedgehog"])
    grid.append (["fish", "emu", "rooster"])
    What is output by:
    print (grid[0][0])
    [blank_start]frog[blank_end]
    1. Afrog
  7. 7Consider the following code:
    grid = []
    grid.append (["frog", "cat", "hedgehog"])
    grid.append (["fish", "emu", "rooster"])
    What is output by:
    print (grid[1][2])
    [blank_start]rooster[blank_end]
    1. Arooster
  8. 8Consider the following code:
    grid = []
    grid.append (["frog", "cat", "hedgehog"])
    grid.append (["fish", "emu", "rooster"])
    What is output by:
    print (grid[0][1])
    [blank_start]cat[blank_end]
    1. Acat
  9. 9To iterate through (access all the entries) a two-dimensional arrays you need [blank_start]2[blank_end] for loops. (Enter the number of for loops needed).
    1. A2
  10. 10When using for loops and two-dimensional arrays the outside loop moves across the _____ and the inside loop moves across the ________
    1. Arows, columns
    2. Belements, indexes
    3. Cindexes, elements
    4. Dcolumns, rows

Information

Description
10th grade Computer Science Quiz on Intro to Computer Science S2 Chapter 10, created by Grant Eversole on 10/05/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?