Programming Fundamentals Question Bank - 820 Verified Questions

Page 1


Chapter 13: Collections

Available Study Resources on Quizplus for this Chatper

68 Verified Questions

68 Flashcards

Source URL: https://quizplus.com/quiz/31397

Sample Questions

Q1) Which of the following criticisms of an array is applicable to a Java array?

A) It is an inefficient structure to access random elements

B) It only supports First-in First-out types of accesses

C) It is fixed in size (static)

D) It cannot be used to create an Abstract Data Type such as a Queue or Stack

E) all of the above

Q2) Assume Node2 is defined as follows: int data; Node2 a, b; where a refers to the Node2 before this one in a linked list and b refers to the Node2 after this one in a linked list. Node2 could then be used to create which of the following variations of a linked list?

A) singly linked list

B) doubly linked list

C) singly linked list with a header node

D) singly linked list with a top node

E) circularly linked list

Q3) It is possible to restrict the type of object which is stored within a Java collection by using a generic type when the collection is declared.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 15

Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.