• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 33 pages
Exam (elaborations)

C169 Introduction to Programming in Java Objective Assessment Study Guide (2026/2027) | WGU Exam Review

Document preview thumbnail
Preview 4 out of 33 pages

C169 Introduction to Programming in Java Objective Assessment Study Guide (2026/2027) | WGU Exam ReviewC169 Introduction to Programming in Java Objective Assessment Study Guide (2026/2027) created for Western Governors University students preparing for the C169 assessment. This focused resource is designed to reinforce understanding, identify weak areas, and support efficient exam review. A C169 OA study guide focused on Introduction to Programming in Java, organized for quick review and assessment preparation. This is an independent study resource intended to support learning and exam preparation. It is not an official WGU publication. C169 Study, Java Programming, WGU C169, Objective Assessment, Exam Review, WGU Study, Java Study, Assessment Prep, Programming Guide, Exam Prep C169 Introduction to Programming in Java Study Guide 2026/2027, WGU C169 Introduction to Programming in Java, C169 Objective Assessment Study Guide, WGU C169 OA Study Guide, C169 Java Programming Exam Review, WGU C169 Exam Prep 2026/2027, C169 Introduction to Java Study Guide, C169 Java Objective Assessment Review, WGU Java Programming Study Guide, C169 Programming in Java Exam Prep, C169 OA Exam Review, WGU C169 Assessment Prep, Introduction to Programming in Java WGU, C169 Java Study Notes, C169 WGU Study Guide, WGU C169 Objective Assessment Prep, C169 Java Exam Study Guide, C169 Programming Study Resource, Western Governors University C169 Study Guide, C169 Complete Java Exam Review

Content preview

C169 Introduction to Programming in
Java Objective Assessment Study Guide
(2026/2027) | WGU Exam Review

Question 1: Java Primitive Arithmetic

What is the value stored in the variable result after executing the following Java code snippet?

Java
int a = 19;
int b = 4;
int result = a / b + a % b;

• A. 7.75
• B. 7
• C. 8
• D. 4

Correct Answer: B. 7

Rationale:

1. Integer division a / b () truncates the decimal portion, resulting in 4.
2. Modulus a % b (19 % 4) evaluates to the remainder, which is 3.
3. Summing the results: 4 + 3 = 7.

Question 2: Loop Control Flow

How many times will the string "WGU Java" be printed to the console when executing the
following loop?

Java
int count = 0;
do {
System.out.println("WGU Java");
count += 2;
} while (count < 5);

• A. 2 times
• B. 3 times
• C. 5 times

, • D. 0 times

Correct Answer: B. 3 times

Rationale: Tracing execution in a post-test do-while loop:

• Pass 1: Prints "WGU Java", count becomes 2. Condition 2 < 5 is True.
• Pass 2: Prints "WGU Java", count becomes 4. Condition 4 < 5 is True.
• Pass 3: Prints "WGU Java", count becomes 6. Condition 6 < 5 is False (loop
terminates).

Total printed = 3 times.

Question 3: Array Indexing & Bounds

Given the array declaration double[] values = new double[6];, which expression references
the final element in the array?

• A. values[6]
• B. values[5]
• C. values.length
• D. values[values.length]

Correct Answer: B. values[5]

Rationale: Java arrays are zero-indexed. An array allocated with size 6 has valid index positions
0, 1, 2, 3, 4, 5. Referencing values[6] causes an ArrayIndexOutOfBoundsException.

Question 4: Object-Oriented Principles

Which Java programming keyword is used inside a class constructor or instance method to
resolve ambiguity when a local parameter name is identical to an instance variable field name?

• A. super
• B. this
• C. static
• D. void

Correct Answer: B. this

Rationale: The this reference variable points directly to the current object instance, explicitly
differentiating instance variables (this.name) from shadowing parameter variables (String
name).

Question 5: Method Overloading Rules

,Which modification to a method signature establishes valid Method Overloading in a Java
class?

• A. Changing only the method return type from int to double.
• B. Changing the parameter list by altering the parameter data types or quantity.
• C. Changing only the access modifier from private to public.
• D. Changing the parameter variable names while keeping parameter types identical.

Correct Answer: B. Changing the parameter list by altering the parameter data types or
quantity.

Rationale: Method overloading requires changing the parameter signature (number, order, or
data types of parameters). Simply altering the return type or access modifier without changing
parameters causes a compilation syntax error.

Would you like to generate additional practice question sets covering specific topics like String
manipulation (StringBuilder, .equals()), inheritance/polymorphism, or basic exception
handling (try-catch) next?

Question 6

Which primitive data type in Java is specifically designed to store a 64-bit double-
precision floating-point number?

• A. float
• B. double
• C. long
• D. int

Correct Answer: B. double

Rationale: double is a 64-bit floating-point type, whereas float is 32-bit. double is the
default choice in Java for decimal numbers.

Question 7

What is the result of evaluating the integer division expression in Java?

• A. 3.75
• B. 3
• C. 4
• D. 3.0

Correct Answer: B. 3

, Rationale: When both operands are integers, Java performs integer division, truncating
the fractional remainder.

Question 8

Which operator is used to calculate the remainder of division between two integer
values?

• A. /
• B. *
• C. %
• D. ^

Correct Answer: C. %

Rationale: The modulo operator (%) returns the integer remainder of division.

Question 9

What is implicit type casting (widening conversion) in Java?

• A. Automatically converting a smaller primitive type to a larger compatible type
(e.g., int to double).
• B. Manually casting a double to an int using parentheses (int).
• C. Converting strings into booleans.
• D. Compiling code into bytecode.

Correct Answer: A. Automatically converting a smaller primitive type to a larger
compatible type (e.g., int to double).

Rationale: Widening conversions happen automatically without data loss risk, handled
seamlessly by the Java compiler.

Question 10

Which of the following is an illegal variable identifier name in Java?

• A. userScore
• B. _totalCount
• C. 2ndAttempt
• D. $taxRate

Correct Answer: C. 2ndAttempt

Rationale: Variable identifiers in Java cannot begin with a numeric digit.

Document information

Uploaded on
October 17, 2026
Number of pages
33
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$17.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
Sold
36
Followers
3
Items
2656
Last sold
2 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right 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 aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions