• 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 41 pages
Exam (elaborations)

C169 Objective Assessment Exam – Java Programming – 2026 Actual Questions & Answers (WGU)

Document preview thumbnail
Preview 4 out of 41 pages

C169 Objective Assessment Java Programming PDF helps WGU students review actual-style questions and answers for Introduction to Programming in Java. This updated study resource is designed for quick exam prep, weak-area review, and focused practice before the OA. C169 Objective Assessment, C169 OA, WGU C169 exam, Western Governors University C169, Introduction to Programming in Java, Java programming OA, C169 Java questions, C169 actual questions, C169 answers PDF, WGU Java programming, C169 study guide, C169 exam prep, C169 practice questions, C169 updated PDF, C169 full version exam, WGU programming exam, Java OA study guide, Java exam questions, Java questions answers, buy C169 PDF, download C169 exam, C169 review guide, C169 objective assesment, C169 assesment, WGU C169 OA PDF, C169 Java OA help, programming in Java WGU, C169 test bank, WGU exam prep PDF, C169 questions answers

Content preview

C169
Objective Assessment
(Full Version Exam)
Introduction to Programming in Java
Western Governors University

This document provides a focused
OA
• This Exam is structured to help students
reinforce understanding, identify weak
areas, and prepare confidently for the
assessment.

• you can review quickly and walk into exam
confident and prepared.

,PREVIEW PAGES BELOW



Get the Complete PDF
After Purchase




"If you require further clarification or in need of
any study resources, feel free to Message me."

,Question 1: Which Java component is responsible for actually executing compiled
bytecode on a specific machine?
A. Java Development Kit (JDK)
B. Java Runtime Environment (JRE)
C. Java Virtual Machine (JVM)
D. Java Application Programming Interface (API)

Correct Answer: C. Java Virtual Machine (JVM)
Expert Rationale: The JVM is the part of the Java platform that interprets and executes
the bytecode instructions produced by the compiler on a particular device.



Question 2: Which statement best describes the relationship between the JDK and the
JRE?
A. The JRE includes the JDK so programs can be compiled and run.
B. The JDK includes the JRE so programs can be compiled and run.
C. The JVM includes both the JDK and the JRE.
D. The JDK and JRE are unrelated and installed separately by design.

Correct Answer: B. The JDK includes the JRE so programs can be compiled and run.
Expert Rationale: The JDK is the full development kit that contains tools such as the
compiler and also bundles the JRE so compiled programs can be executed.



Question 3: In a Java IDE, which action most directly checks for syntax errors and
translates source code to bytecode?
A. Running the program
B. Debugging the program
C. Compiling the program
D. Formatting the program

Correct Answer: C. Compiling the program
Expert Rationale: The compile step parses the Java source, flags compile-time
syntax/type errors, and generates bytecode if the code is valid.

, Question 4: A student writes int x = ; and tries to run the program. The code
compiles without error. What will happen at runtime?
A. The program prints 0.
B. The program throws an arithmetic exception.
C. The program exits normally with no output.
D. The program enters an infinite loop.

Correct Answer: B. The program throws an arithmetic exception.
Expert Rationale: Integer division by zero is not detected at compile time; at runtime the
JVM throws an ArithmeticException, which is a runtime error.



Question 5: Which statement about compile-time errors in Java is true?
A. They occur only while the JVM executes bytecode.
B. They are usually caused by incorrect logic.
C. They prevent the compiler from producing a .class file.
D. They always cause the program to crash after some output.

Correct Answer: C. They prevent the compiler from producing a .class file.
Expert Rationale: Compile-time errors such as syntax mistakes or type mismatches stop
compilation, so no bytecode is generated until they are fixed.



Question 6: Which of the following is a valid Java variable declaration and initialization
for an immutable value?
A. final int DAYS_IN_WEEK = 7;
B. constant int DAYS_IN_WEEK = 7;
C. static DAYS_IN_WEEK = 7;
D. immutable int DAYS_IN_WEEK = 7;

Correct Answer: A. final int DAYS_IN_WEEK = 7;
Expert Rationale: The final keyword marks a variable so its value cannot be changed
once initialized, matching the concept of an unchangeable constant.



Question 7: Which of these is a primitive data type in Java?
A. String

Document information

Uploaded on
September 14, 2026
Number of pages
41
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$16.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.
LectHarrison
3.9
(237)
Sold
1576
Followers
323
Items
1954
Last sold
3 hours 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