The Java Language | Module 4
Course Name: The Java Language (Java as a Second Language Specialization)
Course Link: The Java Language
These are The Java Language Week 4 Coursera Answers
Q1. A __________ statement can have a number of possible execution pathsZ
- switch
- IF-THEN
- IF-THEN-ELSE
Answer: switch
Q2. A superclass inherits from _________.
- the new class
- a subclass
- nothing
- the Java Object
Answer: a subclass
Q3. Which command controls a code block when the IF statement is false?
- run
- loop
- else
- none of these
Answer: Please login to see answer.
Q4. True or false: The code in the FOR loop will execute until the upper limit of the counter is reached.
- True
- False
Answer: Please login to see answer.
These are The Java Language Week 4 Coursera Answers
Q5. Which primitive data type only has 2 possible values?
- boolean
- double
- char
Answer: Please login to see answer.
Q6. Which Java keyword creates a class as a superclass?
- extends
- super
- implement
- is
Answer: Please login to see answer.
Q7. If class A extends class B, then class A will have class B’s _______ and _______. (Select all that apply).
- methods
- properties
- subclasses
- all of these
Answer: Please login to see answer.
Q8. A variable’s data type determines the ________ it may contain, plus the operations that may be performed on it.
- primitives
- keywords
- values
Answer: Please login to see answer.
Q9. _________ is a data structure that holds multiple values of the same data.
- An array
- A group
- A class
Answer: Please login to see answer.
Q10. When does the code block in an IF statement execute?
- when the IF statement is true
- always
- when part of the statement is true
- when the IF statement is false
Answer: Please login to see answer.
These are The Java Language Week 4 Coursera Answers
More Weeks of the course: Click Here
More Coursera courses: https://progiez.com/coursera
![The Java Language | Module 4 1 These are The Java Language Week 4 Coursera Answers](https://progiez.com/wp-content/uploads/2023/01/cropped-3-progiez-logo.png-1.png)