100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Conquer Your Course with the [Java An Introduction to Problem Solving and Programming, 4e] 2024 Test Bank

Rating
-
Sold
1
Pages
42
Grade
A+
Uploaded on
10-08-2023
Written in
2023/2024

Boost your chances of acing your exams with the Test Bank for [Java An Introduction to Problem Solving and Programming, 4e]. With practice exam questions that replicate official exams, and detailed answers for thorough understanding, you have all you need to pass the class. Let be your year of academic success.

Show more Read less
Institution
Module











Whoops! We can’t load your doc right now. Try again or contact support.

Connected book

Written for

Institution
Module

Document information

Uploaded on
August 10, 2023
Number of pages
42
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Chapter 1
34 questions
11 fill in the blank
8 true/false
15 multiple choice

Fill in the Blank Questions
1. The __________ is the part of a computer that follows instructions.
[processor]

2. A(n) __________ is a program that translates programs to a simpler language that the
computer can execute.
[compiler]

3. The Java interpreter translates a Java program from __________ to machine language.
[byte code]

4. A(n) __________ is an action that a Java object can perform.
[method]

5. Another term for __________ is information hiding.
[encapsulation]

6. A(n) __________ is a set of instructions that tells the basic strategery for solving a
problem.
[algorithm]

7. A(n) __________ is a program meant to be sent from one computer to another across the
world-wide web.
[applet]

8. A(n) __________ is a piece of information passed to a method.
[argument]

9. A(n) __________ is a digit that can only have the value 1 or 0.
[bit]

10. A(n) __________ is part of a program that has data associated with it and can perform
certain actions.
[object]

Optional Graphics Supplement Questions:
11. The __________ method of an applet is used to draw graphics and is invoked
automatically when the applet runs.
[paint]

True/False Questions
1. Main memory refers to the amount of storage space available on a computer’s disk
drive.
TRUE FALSE
[FALSE]




1 of 42

,2. Java is a high-level language.
TRUE FALSE
[TRUE]

3. The Java compiler translates Java programs into machine language programs.
TRUE FALSE
[FALSE]

4. Pseudocode is a mixture of English and a programming language.
TRUE FALSE
[TRUE]

5. The computer will not display an error message when a logic error occurs.
TRUE FALSE
[TRUE]

6. System.out is an example of a method.
TRUE FALSE
[FALSE]

7. In Java, the double equal sign means "make equal to".
TRUE FALSE
[FALSE]

8. Polymorphism is a classification system for organizing classes in Java.
TRUE FALSE
[FALSE]

Multiple-Choice Questions
1. A bit can have __________ different values.
A. 2 B. 10 C. 100 D. 256
[A]

2. Bytes in auxiliary memory are grouped into __________.
A. bits B. files C. directories D. programs
[B]

3. The kind of language that is easiest for people to use is
A. assembly language B. machine language
C. low-level language D. high-level language
[D]

4. Input to a compiler is called
A. a byte-code file B. source code C. an executable file D. object code
[B]

5. The term __________ refers to a way of organizing classes that share properties.
A. object-oriented B. encapsulation C. polymorphism D. inheritance
[D]

6. __________ means that two or more methods can have different names in the same way
that an English word can have two or more meanings.
A. object-oriented B. encapsulation C. polymorphism D. inheritance
[C]



2 of 42

,7. A(n) __________ occurs when a program has a grammatical mistake like missing
punctuation.
A. syntax error B. run-time error C. logic error D. hidden error
[A]

8. If the computer displays an error message while executing your program, the program
contains a(n) __________.
A. syntax error B. run-time error C. logic error D. hidden error
[B]

9. Invoking a method means
A. checking the method for errors B. designing the method
C. asking the method to do its job D. revising the method
[C]

10. In Java, a library of classes is called
A. a folder B. a package C. a directory D. an application
[B]

11. The __________ is a program that supervises operation of the entire computer.
A. operating system B. compiler C. interpreter D. virtual machine
[A]

12. A(n) __________ is a unit of memory that contains eight binary digits.
A. bit B. byte C. object D. class
[B]

13. Which of these is not a high-level language?
A. Java B. BASIC C. C++ D. assembly language
[D]

Optional Graphics Supplement Questions:
14. The point (0, 0) is in the __________ of the screen in the Java coordinate system.
A. upper left-hand corner B. upper right-hand corner
C. lower left-hand corner D. lower right-hand corner
E. center
[A]

15. Which of the following is information passed by parameter(s) to fillOval?
A. the fill color
B. the line color
C. the width of the bounding rectangle
D. the coordinates of the lower-right corner of the bounding rectangle
[C]

Chapter 2
39 questions
15 fill in the blank
13 true/false
13 multiple choice




3 of 42

, Fill in the Blank Questions
1. Every variable in Java must be __________ before it is used.
[declared]

2. Single quotes are used with constants of the __________ type.
[char]

3. __________ is the integer type you should use if you're not sure which one is best.
[int]

4. An assignment statement always has a single __________ on the left side of the
assignment operator.
[variable]

5. A(n) __________ is used to change the type of a value.
[type cast]

6. The value of 42 % 10 is __________.
[2]

7. Double quotes are used with constants of the __________ type.
[String]

8. The __________ operator is used to connect two strings to make one longer string.
[concatenation or +]

9. To include a double quote inside a character string, you must use a(n) __________
character.
[escape]

10. nextInt and nextLine are two methods in the __________ class.
[Scanner]

11. __________ should explain non-obvious aspects of a program and should not be
redundant with the code.
[comments]

12. Using __________ variable names helps make a program self-documenting.
[meaningful]

13. A variable’s __________ determines the kind of value that it can hold.
[type]

14. __________ rules determine the order of operations if the order is not determined by
parentheses.
[precedence]

15. In a method invocation, the name that comes before the dot is the __________.
[calling object]

True/False Questions
1. An upper-case letter is considered to be the same character as a lower-case letter in
Java.
TRUE FALSE
[FALSE]


4 of 42

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
PracticeExams my own
Follow You need to be logged in order to follow users or courses
Sold
316
Member since
2 year
Number of followers
194
Documents
3272
Last sold
1 month ago
ExamPrepZone

4.1

41 reviews

5
25
4
4
3
7
2
2
1
3

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions