Deck 11: Data Structure
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/10
Play
Full screen (f)
Deck 11: Data Structure
1
Given a linked list called children, the pointer variable children identifies ________ element of the linked list.
A) the first
B) the second
C) the last
D) any
A) the first
B) the second
C) the last
D) any
A
2
Each element in a record is called _______.
A) a variable
B) an index
C) a field
D) a node
A) a variable
B) an index
C) a field
D) a node
C
3
To traverse a list, you need a _______ pointer.
A) null
B) walking
C) beginning
D) insertion
A) null
B) walking
C) beginning
D) insertion
B
4
A data structure can be _______.
A) only an array
B) only a record
C) only a linked list
D) an array, a record, or a linked list
A) only an array
B) only a record
C) only a linked list
D) an array, a record, or a linked list
Unlock Deck
Unlock for access to all 10 flashcards in this deck.
Unlock Deck
k this deck
5
_______ is an ordered collection of data in which each element contains the location of the next element.
A) An array
B) A record
C) A linked list
D) A file
A) An array
B) A record
C) A linked list
D) A file
Unlock Deck
Unlock for access to all 10 flashcards in this deck.
Unlock Deck
k this deck
6
All the members of a record must be _______.
A) the same type
B) related types
C) integer type
D) character type
A) the same type
B) related types
C) integer type
D) character type
Unlock Deck
Unlock for access to all 10 flashcards in this deck.
Unlock Deck
k this deck
7
The _______ is a pointer that identifies the next element in the linked list.
A) link
B) node
C) array
D) data
A) link
B) node
C) array
D) data
Unlock Deck
Unlock for access to all 10 flashcards in this deck.
Unlock Deck
k this deck
8
An array that consists of just rows and columns is a _______ array.
A) one-dimensional
B) two-dimensional
C) three-dimensional
D) multidimensional
A) one-dimensional
B) two-dimensional
C) three-dimensional
D) multidimensional
Unlock Deck
Unlock for access to all 10 flashcards in this deck.
Unlock Deck
k this deck
9
In a linked list, each element contains _______.
A) only data
B) only a link
C) neither data nor a link
D) data and a link
A) only data
B) only a link
C) neither data nor a link
D) data and a link
Unlock Deck
Unlock for access to all 10 flashcards in this deck.
Unlock Deck
k this deck
10
An empty linked list consists of _______.
A) a node
B) two nodes
C) data and a link
D) a null head pointer
A) a node
B) two nodes
C) data and a link
D) a null head pointer
Unlock Deck
Unlock for access to all 10 flashcards in this deck.
Unlock Deck
k this deck