AP CSA Variables and Operators

AP CSA Variables and Operators

9th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

String manipulation

String manipulation

10th Grade

16 Qs

Strings + Revision

Strings + Revision

9th - 10th Grade

18 Qs

Podstawy Pythona

Podstawy Pythona

8th Grade - University

12 Qs

Search for Content on Methods in Java

Search for Content on Methods in Java

11th - 12th Grade

10 Qs

JavaScript Test 1: Shapes and Printing

JavaScript Test 1: Shapes and Printing

2nd - 9th Grade

10 Qs

QUIZ #1 JAVASCRIPT

QUIZ #1 JAVASCRIPT

11th Grade

16 Qs

Java Arithmetic Operations

Java Arithmetic Operations

11th Grade

10 Qs

python (loops)

python (loops)

11th 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 49+ 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?