Module 3 Quiz :Java for Android (Android App Development Specialization) Answers 2025
1. What is the value of 54 % 10 + 6 * 3 % 4 ?
✔️ 6
❌ 22
❌ 9
❌ None of the other options
❌ 9.9
2. Which operator is evaluated first?
✔️ The multiplication * operator
❌ The division / operator
❌ The subtraction – operator
❌ The addition + operator
3. Overloading allows multiple methods with same name?
✔️ TRUE
❌ FALSE
4. str.toUpperCase() modifies the original string?
✔️ FALSE (Strings are immutable)
❌ TRUE
5. _am_I_okay is a legal Java identifier?
✔️ TRUE
❌ FALSE
6. Operation to manually convert types:
✔️ cast
❌ coercion
❌ convert
❌ alteration
7. Output of the program?
✔️ 22 99 22
❌ 22 22 22
❌ 22 99 99
❌ 22 22 99
❌ 99 22 99
8. Which gives a different value?
✔️ x = (double)(32/5) (32/5 = integer division → 6 → casts to 6.0)
❌ x = 32.0/5
❌ x = 32.0/5.0
❌ x = 32/5.0
❌ They are all equivalent
9. Does the code always print 9?
✔️ FALSE (x++ prints 8, then increments to 9)
❌ TRUE
10. Do actual argument names need to match formal parameter names?
✔️ FALSE
❌ TRUE
11. Reserved word for no return value:
✔️ void
❌ static
❌ return
❌ public
12. A bit can have how many values?
✔️ 2
❌ 8
❌ 256
❌ 100
✅ Summary Table
| Q No. | Correct Answer |
|---|---|
| 1 | 6 |
| 2 | The multiplication * operator |
| 3 | TRUE |
| 4 | FALSE |
| 5 | TRUE |
| 6 | cast |
| 7 | 22 99 22 |
| 8 | x = (double)(32/5) |
| 9 | FALSE |
| 10 | FALSE |
| 11 | void |
| 12 | 2 |