Exam 8: Lists and Arrays

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The Collection Editor can be used to add elements to an array.

(True/False)
4.9/5
(33)

A(n) ___________________ holds a group of items and can be added to while the world is running.

(Short Answer)
4.9/5
(44)

The Do together instruction is used to have each element of a list execute the same instructions simultaneously.

(True/False)
4.9/5
(40)

An array can have additional elements added to it while the world is running.

(True/False)
5.0/5
(43)

What is the index of the last position in an array that contains 10 items?

(Multiple Choice)
4.8/5
(43)

What is the index of the first position in an array that contains 10 items?

(Multiple Choice)
4.9/5
(33)

Given an array, animalArray, that contains the objects: cat, dog, tiger, lion, monkey; item 2 from animalArray would refer to ___________________.

(Short Answer)
4.9/5
(39)

The ___________________ function is used to get the number of items stored in a list.

(Short Answer)
4.8/5
(45)

The first position in a list is position 1.

(True/False)
4.7/5
(28)

The first position in a list or array is position ___________________.

(Short Answer)
4.9/5
(39)

You can only remove an item that is currently in an array by replacing it with some other value.

(True/False)
5.0/5
(35)

Which instruction is used to step through each element of a list?

(Multiple Choice)
4.8/5
(39)

A(n) ___________________ holds a group of items and has a fixed size so new items cannot be added while the world is running.

(Short Answer)
4.9/5
(34)

The first position in an array is position 0.

(True/False)
4.8/5
(36)

Given a list, animalList, that contains the objects: cat, dog, tiger, lion; the function first item from list would return which object?

(Multiple Choice)
4.8/5
(31)

The last position in a list or array that contains 5 elements is position ___________________.

(Short Answer)
4.7/5
(41)

Which instruction is used when you want all of the elements of a list to execute the same instruction(s) simultaneously?

(Multiple Choice)
4.8/5
(44)

Given an array, animalArray, that contains the objects: cat, dog, tiger, lion; item 3 from animalArray would refer to which object?

(Multiple Choice)
4.8/5
(38)

The ___________________ instruction is used to step through each element of an array.

(Short Answer)
4.8/5
(46)

Given a list, animalList, that contains the objects: cat, dog, tiger, lion; the function ith item from list, given an index of 1, would return which object?

(Multiple Choice)
4.8/5
(39)
Showing 21 - 40 of 48
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)