AP CS A Unit 1 Quiz Review

AP CS A Unit 1 Quiz Review

9th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

algoritma

algoritma

12th Grade

11 Qs

KUIZ PERSEKITARAN KOD ARAHAN

KUIZ PERSEKITARAN KOD ARAHAN

8th - 10th Grade

10 Qs

Java Quiz 1

Java Quiz 1

9th Grade

12 Qs

Visual basic for beginners

Visual basic for beginners

9th Grade

16 Qs

CS2 Review

CS2 Review

9th - 12th Grade

12 Qs

Java basic

Java basic

12th Grade - University

12 Qs

Basic C# Programming Quiz

Basic C# Programming Quiz

9th Grade

16 Qs

Java Scanner Quiz

Java Scanner Quiz

11th Grade

15 Qs

AP CS A Unit 1 Quiz Review

AP CS A Unit 1 Quiz Review

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Scott Chamberlain

Used 4+ times

FREE Resource

11 questions

Show all answers

1.

MATCH QUESTION

1 min • 5 pts

Match the following Java terms to their meanings.

println

A reference (class) data type for character data

String

Send output to the display and advance to the next line

print

Send output to the display and stay on the same line

nextLine

A method of the Scanner class used to accept character data input

Scanner

A class used to collect user input

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following java statements correctly declares a variable and sets it to the value 2.87?

int x = 2.87;

decimal x = 2.87;

float x = 2.87

double x = 2.87;

real x = 2.87;

3.

REORDER QUESTION

45 sec • 2 pts

Order the following from smallest to largest memory storage size:

double

String

int

boolean

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which statement correctly inputs an integer using a properly initialized Scanner variable?

int num = nextScan(int);

int num = scan.nextNumber();

int num = scanNextInt();

int num = scan.nextLine();

int num = scan.nextInt();

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which is a valid variable name in Java?

Select ALL that apply.

String

ip.address

address_1

2ndplace

lastName

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which variable assignment is valid in java?

double k = 13;

int b = 2.0;

double r = "3.14";

String f = 0;

String w = 98.6;

7.

MULTIPLE SELECT QUESTION

45 sec • 2 pts

System.out.println() accepts which datatype(s) as parameters?

String

double

int

boolean

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?