TEST BANK fg
Introduction To Java Programming And Data Structures
fg fg fg fg fg fg
12th Edition by Liang Chapter 1 to 44
fg fg fg fg fg fg fg
© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they
fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg
, Table of contents fg fg fg
1. Introduction to Computers, Programs, and Java™
fg fg fg fg fg
2. Elementary Programming fg
3. Selections
4. Mathematical Functions, Characters, and Strings
fg fg fg fg
5. Loops
6. Methods
7. Single-Dimensional Arrays fg
8. Multidimensional Arrays fg
9. Objects and Classes
fg fg
10. Object-Oriented Thinking fg
11. Inheritance and Polymorphism fg fg
12. Exception Handling and Text I/O fg fg fg fg
13. Abstract Classes and Interfaces fg fg fg
14. JavaFX Basics fg
15. Event-Driven Programming and Animations fg fg fg
16. JavaFX UI Controls and Multimedia fg fg fg fg
17. Binary I/O fg
18. Recursion
19. Generics
20. Lists, Stacks, Queues, and Priority Queues
fg fg fg fg fg
21. Sets and Maps fg fg
22. Developing Efficient Algorithms fg fg
23. Sorting
24. Implementing Lists, Stacks, Queues, and Priority Queues fg fg fg fg fg fg
25. Binary Search Trees fg fg
26. AVL Trees fg
27. Hashing
© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they
fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg
, 28. Graphs and Applications
fg fg
29. Weighted Graphs and Applications
fg fg fg
30. Aggregate Operations for Collection Streams
fg fg fg fg
31. Advanced JavaFX and FXML fg fg fg
32. Multithreading and Parallel Programming fg fg fg
33. Networking
34. Java Database Programming
fg fg
35. Advanced Database Programming
fg fg
36. Internationalization
37. Servlets
38. JavaServer Pages fg
39. JavaServer Faces fg
40. RMI
41. Web Services
fg
42. 2-4 Trees and B-Trees
fg fg fg
43. Red-Black Trees fg
44. Testing Using JUnit
fg fg
© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they
fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg
, Chapter 1 Introduction to Computers, Programs, and Java
fg fg fg fg fg fg fg
Section 1.2 What is a Computer? fg fg fg fg fg
1. fg is the physical aspect of the computer that can be seen.
fg fg fg fg fg fg fg fg fg fg
a. Hardware
b. Software
c. Operating system fg
d. Application program fg
Key:a See the first paragraph in Section 1.2.
fg fg fg fg fg fg fg
#
Section 1.2.1 What is a Computer? fg fg fg fg fg
2. fg is the brain of a computer. fg fg fg fg fg
a. Hardware
b. CPU
c. Memory
d. Disk
Key:b See the first paragraph in Section 1.2.1.
fg fg fg fg fg fg fg
#
3. The speed of the CPU may be measured in
fg . fg fg fg fg fg fg fg
a. megabytes
b. gigabytes
c. megahertz
d. gigahertz
Key:cd See the third paragraph in Section 1.2.1. 1 megahertz equals 1 million pulses per second and 1
fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg
gigahertz is1000 megahertz.
fg fg fg fg
#
Section 1.2.2 Bits and Bytes fg fg fg fg
4. Why do computers use zeros and ones?
fg fg fg fg fg fg
a. because combinations of zeros and ones can represent any numbers and characters.
fg fg fg fg fg fg fg fg fg fg fg
b. because digital devices have two stable states and it is natural to use one state for 0 and the other for 1.
fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg
c. because binary numbers are simplest. fg fg fg fg
d. because binary numbers are the bases upon which all other number systems
fg fg fg fg fg fg fg fg fg fg fg
are built.Key:b See the second paragraph in Section 1.2.2.
fg fg fg fg fg fg fg fg fg fg
#
5. One byte has bits.
fg fg
a. 4
b. 8
c. 12
d. 16
Key:b See the thrid paragraph in Section 1.2.2.
fg fg fg fg fg fg fg
#
5. One gigabyte is approximately
fg bytes. fg fg
a. 1 million fg
b. 10 million fg
c. 1 billion fg
d. 1 trillion fg
Key:c See the fifth paragraph in Section 1.2.2.
fg fg fg fg fg fg fg
© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they
fg
fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg
Introduction To Java Programming And Data Structures
fg fg fg fg fg fg
12th Edition by Liang Chapter 1 to 44
fg fg fg fg fg fg fg
© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they
fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg
, Table of contents fg fg fg
1. Introduction to Computers, Programs, and Java™
fg fg fg fg fg
2. Elementary Programming fg
3. Selections
4. Mathematical Functions, Characters, and Strings
fg fg fg fg
5. Loops
6. Methods
7. Single-Dimensional Arrays fg
8. Multidimensional Arrays fg
9. Objects and Classes
fg fg
10. Object-Oriented Thinking fg
11. Inheritance and Polymorphism fg fg
12. Exception Handling and Text I/O fg fg fg fg
13. Abstract Classes and Interfaces fg fg fg
14. JavaFX Basics fg
15. Event-Driven Programming and Animations fg fg fg
16. JavaFX UI Controls and Multimedia fg fg fg fg
17. Binary I/O fg
18. Recursion
19. Generics
20. Lists, Stacks, Queues, and Priority Queues
fg fg fg fg fg
21. Sets and Maps fg fg
22. Developing Efficient Algorithms fg fg
23. Sorting
24. Implementing Lists, Stacks, Queues, and Priority Queues fg fg fg fg fg fg
25. Binary Search Trees fg fg
26. AVL Trees fg
27. Hashing
© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they
fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg
, 28. Graphs and Applications
fg fg
29. Weighted Graphs and Applications
fg fg fg
30. Aggregate Operations for Collection Streams
fg fg fg fg
31. Advanced JavaFX and FXML fg fg fg
32. Multithreading and Parallel Programming fg fg fg
33. Networking
34. Java Database Programming
fg fg
35. Advanced Database Programming
fg fg
36. Internationalization
37. Servlets
38. JavaServer Pages fg
39. JavaServer Faces fg
40. RMI
41. Web Services
fg
42. 2-4 Trees and B-Trees
fg fg fg
43. Red-Black Trees fg
44. Testing Using JUnit
fg fg
© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they
fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg
, Chapter 1 Introduction to Computers, Programs, and Java
fg fg fg fg fg fg fg
Section 1.2 What is a Computer? fg fg fg fg fg
1. fg is the physical aspect of the computer that can be seen.
fg fg fg fg fg fg fg fg fg fg
a. Hardware
b. Software
c. Operating system fg
d. Application program fg
Key:a See the first paragraph in Section 1.2.
fg fg fg fg fg fg fg
#
Section 1.2.1 What is a Computer? fg fg fg fg fg
2. fg is the brain of a computer. fg fg fg fg fg
a. Hardware
b. CPU
c. Memory
d. Disk
Key:b See the first paragraph in Section 1.2.1.
fg fg fg fg fg fg fg
#
3. The speed of the CPU may be measured in
fg . fg fg fg fg fg fg fg
a. megabytes
b. gigabytes
c. megahertz
d. gigahertz
Key:cd See the third paragraph in Section 1.2.1. 1 megahertz equals 1 million pulses per second and 1
fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg
gigahertz is1000 megahertz.
fg fg fg fg
#
Section 1.2.2 Bits and Bytes fg fg fg fg
4. Why do computers use zeros and ones?
fg fg fg fg fg fg
a. because combinations of zeros and ones can represent any numbers and characters.
fg fg fg fg fg fg fg fg fg fg fg
b. because digital devices have two stable states and it is natural to use one state for 0 and the other for 1.
fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg
c. because binary numbers are simplest. fg fg fg fg
d. because binary numbers are the bases upon which all other number systems
fg fg fg fg fg fg fg fg fg fg fg
are built.Key:b See the second paragraph in Section 1.2.2.
fg fg fg fg fg fg fg fg fg fg
#
5. One byte has bits.
fg fg
a. 4
b. 8
c. 12
d. 16
Key:b See the thrid paragraph in Section 1.2.2.
fg fg fg fg fg fg fg
#
5. One gigabyte is approximately
fg bytes. fg fg
a. 1 million fg
b. 10 million fg
c. 1 billion fg
d. 1 trillion fg
Key:c See the fifth paragraph in Section 1.2.2.
fg fg fg fg fg fg fg
© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they
fg
fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg fg