Search Header Logo

AP CS A Quiz 01: Data Types & Variables

Authored by Karen Kikuchi

Computers

10th - 12th Grade

Used 6+ times

AP CS A Quiz 01: Data Types & Variables
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

35 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which one is correct?

public static main(Strings[] args) { }

public private static main(Strings[] args) { }

public static void main(Strings[] args) { }

public void static main(Strings[] args) { }

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

(=) sign means

equals and it is used for math problems in Java

assignment operator. It used to assign a value

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which one is used for remainder in Java?

/

%

+

*

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

int x = 3; in this case, which of the following statement is true?

x = x+1;

x++;

x += 1;

All of above

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

This data type returns true or false

String

boolean

char

int

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Name the data type: 1.0

double

int

char

boolean

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What data type would you use for storing the average test score in a class?

boolean

char

int

double

Access all questions and much more by creating a free account

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

Already have an account?