Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

4/25/2021 JFo Section 3 Quiz 1 - L1-L2

Test: JFo Section 3 Quiz 1 - L1-L2


Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.

Section 3 Quiz 1 - L1-L2


(Answer all questions in this section)

6. Assuming x is an int, which of the following are ways to increment the value of x by 1? Mark for Review

(1) Points
x = x +1; (*)

x = +1;

x+;

x++; (*)

x += 1; (*)

Correct

7. Which two are mathematical operators? Mark for Review

(1) Points
+ (*)
– (*)

#
@

Correct

8. Which keyword makes a variable’s value unchangeable? Mark for Review

(1) Points
const

final (*)
static
break

Correct

9. Which two statements will not compile? Mark for Review

(1) Points
int abc = 10;

double salary = 20000.34;


int age=20;
double double=10; (*)

int break=10; (*)

Correct
https://myacademy.oracle.com/player/play?in_sessionid=28539411210A51AJ&classroom_id=74941475 1/2
4/25/2021 JFo Section 3 Quiz 1 - L1-L2

10. Java is a strongly typed language; therefore you must declare a data type for all variables. Mark for Review

(1) Points
True (*)
False

Correct

Previous Page 2 of 3 Next Summary

https://myacademy.oracle.com/player/play?in_sessionid=28539411210A51AJ&classroom_id=74941475 2/2

You might also like