













































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














































Java Programming, 10th Edition (Joyce Farrell) – Full Practice Exam: 100+ Multiple-Choice Questions with Verified Answers & Detailed Rationales | Covers All Chapters (1–10) | Ideal for Final Exam ReviewJava Programming, 10th Edition by Joyce Farrell – Comprehensive Practice Test Bank Chapter 1: Creating Java Programs Q1: Languages that let you use an easily understood vocabulary of descriptive terms, such as read, write, or add, are known as ____________ languages.
Q6: Envisioning program components as objects that are similar to concrete objects in the real world is the hallmark of ____________.
Q8: An instance of a class is a(n) ____________.
Q12: Arguments to methods always appear within ____________.
Q14: All Java applications must have a method named ____________.
☑ Correct Answer : D – debugging Rationale: While debugging is important, a program can run (though possibly produce incorrect results) even with logic errors. Coding, compiling, and saving are essential prerequisites for program execution. Q18: The command to execute a compiled Java application is ____________.
Rationale: In Java, multiplication (*), division (/), and remainder (%) have higher precedence than addition (+) and subtraction (-). These operations are performed before addition and subtraction unless parentheses override the order. Q24: Primitive types serve as the building blocks for more complex data types, called ____ types.
☑ Correct Answer : A – Associativity Rationale: Associativity determines the order in which operators of the same precedence are evaluated. For example, most binary operators have left-to-right associativity, while assignment operators have right-to-left associativity. Q26: A ____ data type can hold 14 or 15 significant digits of accuracy.
Q35: You may declare an unlimited number of variables in a statement as long as the variables are ____.
Rationale: The correct method declaration includes: access modifier (public), static keyword, return type (void if no value is returned), method name (computeSum), and parameter list with types (double a, double b). Q37: In the method header public static boolean (int age), age is a(n)____.