Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

WGU Scripting and Programming Foundations (D278) Exam - Topic 2 Question 13 Discussion

Posted by Toi on Jun 18, 2026 at 05:31 PM

Which kind of languages are C and Java?

Suggested Answer: B

Comprehensive and Detailed Explanation From Exact Extract:

C and Java are both compiled languages, though they differ in their compilation process. According to foundational programming principles, C is compiled directly to machine code, while Java is compiled to bytecode, which is executed by the Java Virtual Machine (JVM).

Option A: 'Machine code.' This is incorrect. Machine code is the low-level output of a compiler, not a programming language. C and Java are high-level languages.

Option B: 'Compiled.' This is correct. C is compiled to machine code (e.g., .exe files), and Java is compiled to bytecode (.class files), which is then executed by the JVM. Both require a compilation step before execution.

Option C: 'Interpreted.' This is incorrect. Neither C nor Java is interpreted. While Java's bytecode is executed by the JVM, the compilation to bytecode distinguishes it from interpreted languages like Python, which execute source code directly.

Option D: 'Markup.' This is incorrect. Markup languages (e.g., HTML) are used for structuring content, not programming. C and Java are programming languages.

Certiport Scripting and Programming Foundations Study Guide (Section on Compiled Languages).

Java Documentation: ''The Java Compiler'' (https://docs.oracle.com/javase/8/docs/technotes/tools/windows/javac.html).

W3Schools: ''C Introduction'' (https://www.w3schools.com/c/c_intro.php).


Get Premium Scripting and Programming Foundations (D278) Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
17 comments · newest first
PA
Page 23 days ago
Makes sense. Compiled is more accurate overall.
DE
Deeanna 28 days ago
Exactly! But for this question, B is the best choice.
SH
Shawna 1 month ago
Good point! Java's bytecode is interesting though.
PA
Page 1 month ago
Right, C is purely compiled.
DE
Deeanna 1 month ago
True, but primarily compiled.
SH
Shawna 2 months ago
I agree, but Java also has an interpreter. Isn't it both?
DE
Deeanna 2 months ago
Yeah, definitely B. They both need a compiler.
PA
Page 2 months ago
I think C and Java are compiled languages.
AL
Alayna 2 months ago
Definitely compiled, no doubt!
BE
Bernadine 2 months ago
Wait, are you sure about that?
LA
Lashon 2 months ago
Nope, Java is compiled to bytecode.
TA
Tamesha 3 months ago
I thought Java was interpreted?
EL
Elin 3 months ago
They're both compiled languages!
VA
Vannessa 3 months ago
I remember that markup languages are different from programming languages, so I don't think that's the answer. But I’m not confident about the compiled vs interpreted part.
DA
Daniela 3 months ago
I feel like C is definitely compiled, but Java might be a bit tricky since it runs on the JVM. Is that considered interpreted?
FE
Fernanda 3 months ago
I practiced a similar question last week, and I think both C and Java are compiled. But I could be mixing them up with other languages.
AN
Antione 4 months ago
I think C is a compiled language, but I'm not sure about Java. I remember something about it being both compiled and interpreted?
0/2000 characters

Save Cancel