Search Header Logo

AP CSA U1L01-03

Authored by Anne Kohart

Computers

11th - 12th Grade

Used 36+ times

AP CSA U1L01-03
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the resulting value of x?


int x;

x = 2.3;

Error

2

2.3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the resulting value of x?


double x;

x = 7;

Error

7

7.0

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What does the following code print?


System.out.println("13" + 5 + 3);

21

1353

It will give a run-time error

138

It will give a compile-time error

Check MeCompare me

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do you think would happen if you add 1 to the largest possible integer:

int x = Integer.MAX_VALUE;

x = x +1;

System.out.println(x);

Program will not compile

Program will send an error

You will get an incorrect value

You will get a float error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A variable that holds a whole number

String
boolean
int
float

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A variable that holds true or false

String

boolean

int

float

Alex Trebek

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Name the data type: 1.0

double

int

char

boolean

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?