AP CSA Variables and Operators

AP CSA Variables and Operators

9th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

Java Quiz 2: Classes and Objects

Java Quiz 2: Classes and Objects

6th - 12th Grade

10 Qs

Programming - Data Types

Programming - Data Types

1st - 10th Grade

10 Qs

String Manipulation (Python)

String Manipulation (Python)

9th - 12th Grade

17 Qs

AP CSA 1.2 Variables and Data Types

AP CSA 1.2 Variables and Data Types

11th - 12th Grade

19 Qs

Progamming - Java Syntax

Progamming - Java Syntax

11th - 12th Grade

15 Qs

Python Topics 1 & 2

Python Topics 1 & 2

11th Grade

14 Qs

Technical Terms - Internet (A-Z) - Primitive

Technical Terms - Internet (A-Z) - Primitive

12th Grade

10 Qs

Microbit (python)

Microbit (python)

8th - 10th Grade

15 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?