C.P. - Flashcard #2 - Review

C.P. - Flashcard #2 - Review

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

21 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Declare the main method.

Back

public static void main(String [] args) {

2.

FLASHCARD QUESTION

Front

Declare a boolean variable.

Back

boolean x;

3.

FLASHCARD QUESTION

Front

Initialize an integer variable.

Back

int y = 3;

4.

FLASHCARD QUESTION

Front

Create a Scanner object.

Back

Scanner keyboard = new Scanner (System.in);

5.

FLASHCARD QUESTION

Front

Declare a variable and assign it to the input object.

Back

int z;
z =keyboard.nextInt();

6.

FLASHCARD QUESTION

Front

This method reads an integer from a Scanner object.

Back

.nextInt();

7.

FLASHCARD QUESTION

Front

This method reads a double from a Scanner object.

Back

.nextDouble();

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?