CS Final Exam--Java

CS Final Exam--Java

Assessment

Flashcard

Computers

11th Grade

Practice Problem

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?

Media Image

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?

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?