CS Final Exam--Java

CS Final Exam--Java

Assessment

Flashcard

Computers

11th Grade

Hard

Created by

Angela Reyes

FREE Resource

Student preview

quiz-placeholder

50 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the name of the method to print out text in Java?

Back

System.out.println()

2.

FLASHCARD QUESTION

Front

What is the output of the following lines?

Back

The total is 2424

3.

FLASHCARD QUESTION

Front

Which of the following is not a primitive type? int, double, String, boolean, char

Back

String

4.

FLASHCARD QUESTION

Front

What is the value of x after this code?

Back

4

5.

FLASHCARD QUESTION

Front

What is the proper syntax to declare and initialize a double called temperature to have the value 70.4?

Back

double temperature = 70.4;

6.

FLASHCARD QUESTION

Front

What is the result of this expression? (int) (5 + 2 / 3 + 1)

Back

6

7.

FLASHCARD QUESTION

Front

Which expression returns the 1’s place of an integer x? Options: x % 10, x / 10, x % 100, x + 1

Back

x % 10

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?