Introduction to Java Programming
and Data Structures, 13th Edition by
Y Daniel Liang
Complete Chapter Test Bank
are included (Ch 1 to 30)
** Immediate Download
** Swift Response
** All Chapters included
,Table of Contents are given below
1.Introduction to Computers, Programs, and Java
2.Elementary Programming
3.Selections
4.Mathematical Functions, Characters, and Strings
5.Loops
6.Methods
7.Single-Dimensional Arrays
8.Multidimensional Arrays
9.Objects and Classes
10.Object-Oriented Thinking
11.Inheritance and Polymorphism
12.Exception Handling and Text I/O
13.Abstract Classes and Interfaces
14.JavaFX Basics
15.Event-Driven Programming and Animations
16.JavaFX UI Controls and Multimedia
17.Binary I/O
18.Recursion
19.Generics
20.Lists, Stacks, Queues, and Priority Queues
21.Sets and Maps
22.Developing Efficient Algorithms
23.Sorting
24.Implementing Lists, Stacks, Queues, and Priority Queues
25.Binary Search Trees
26.AVL Trees
27.Hashing
28.Graphs and Applications
29.Weighted Graphs and Applications
30.Aggregate Operations for Collection Streams
,The test bank is organized in reverse order, with the last chapter displayed first, to ensure that all
chapters are included in this document. (Complete Chapters included Ch30-1)
Introduction to Java Programming and Data Structures, 13e (Liang)
Chapter 30 Aggregate Operations for Collection Streams
Section 30.2 Stream Pipelines
1) The default ________ method is defined the Collection interface for creating a stream.
A) getStream()
B) Stream()
C) stream()
D) findStream()
Answer: C
Explanation: See the first paragraph.
Section: 30.2 Stream Pipelines
2) The Stream interface extends ________.
A) Collection
B) Collections
C) BaseStreams
D) BaseStream
Answer: D
Explanation: See Figure 30.1.
Section: 30.2 Stream Pipelines
3) A stream pipeline may contain ________ intermediate methods.
A) 0
B) 1
C) 0 or 1
D) 0 or more
Answer: D
Explanation: See the third paragraph.
Section: 30.2 Stream Pipelines
4) A stream pipeline may contain ________ terminal methods.
A) 0
B) 1
C) 0 or 1
D) 0 or more
Answer: B
Explanation: See the third paragraph.
Section: 30.2 Stream Pipelines
1
, 5) The Stream<T> interface contains static methods ________ for creating instances of Stream.
Please select all that apply.
A) empty()
B) of(T... values)
C) of(values: T)
D) concat(Stream<? extedns T> s1, Stream<? extends T> s2)
Answer: A, B, C, D
Explanation: See Figure 30.1.
Section: 30.2 Stream Pipelines
6) ________ is an intermediate method. Please select all that apply.
A) distinct
B) filter
C) limit
D) skip
Answer: A, B, C, D
Explanation: See Figure 30.1.
Section: 30.2 Stream Pipelines
7) ________ is an intermediate method. Please select all that apply.
A) sorted
B) map
C) mapToInt
D) mapToLong
E) mapToDouble
Answer: A, B, C, D, E
Explanation: See Figure 30.1.
Section: 30.2 Stream Pipelines
8) ________ is a terminal method. Please select all that apply.
A) count
B) max
C) min
D) findFirst
E) findAny
Answer: A, B, C, D, E
Explanation: See Figure 30.1.
Section: 30.2 Stream Pipelines
9) ________ is a terminal method. Please select all that apply.
A) allMatch
B) anyMatch
C) noneMatch
D) forEach
Answer: A, B, C, D
Explanation: See Figure 30.1.
Section: 30.2 Stream Pipelines
2