AP CSA Variables and Operators

AP CSA Variables and Operators

9th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

X Input in Java

X Input in Java

10th Grade

15 Qs

Python Topics 1 & 2

Python Topics 1 & 2

11th Grade

14 Qs

Microbit (python)

Microbit (python)

8th - 10th Grade

15 Qs

APCSA Unit 1 Quiz Review

APCSA Unit 1 Quiz Review

9th - 12th Grade

17 Qs

Do Now Lesson 2

Do Now Lesson 2

9th - 12th Grade

15 Qs

String Manipulation (Python)

String Manipulation (Python)

9th - 12th Grade

17 Qs

Practice for 8th AP Java Quiz

Practice for 8th AP Java Quiz

10th - 12th Grade

14 Qs

Variables and Data Types

Variables and Data Types

10th - 12th Grade

10 Qs

AP CSA Variables and Operators

AP CSA Variables and Operators

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Sara Kazemi

Used 48+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which variable type is NOT a primitive variable type?

boolean

String

int

double

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a logic error?

An mistyped statement that causes the compiler to throw an exception.

An illegal operation that causes the compiler to throw an exception.

An illegal operation that causes the program to have a run-time error.

An error a programmer makes that causes the program to behave differently than expected.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to instantiate a Finch object with its default constructor?

Finch(f);

Finch f;

Finch f = Finch();

Finch f = new Finch();

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 3/2 in Java?

1.5

1.0

1

0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 3.0/2 in Java?

1.5

1.0

1

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the % operator in Java?

percentage

homonculus

modulus

modulator

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 3%2?

1

1.5

1.0

0

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?