AP CSA U1L01-03

AP CSA U1L01-03

11th - 12th Grade

18 Qs

quiz-placeholder

Similar activities

Java If/else/ switch

Java If/else/ switch

9th - 12th Grade

20 Qs

Java Arrays Basic

Java Arrays Basic

10th - 12th Grade

15 Qs

Arithmetic Types Declare Initialize Relation Logical Ops

Arithmetic Types Declare Initialize Relation Logical Ops

9th Grade - University

16 Qs

Loops

Loops

5th - 12th Grade

16 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

Java Level 1 - B

Java Level 1 - B

12th Grade

15 Qs

APCSA Arrays

APCSA Arrays

9th - 12th Grade

20 Qs

Java March

Java March

KG - University

16 Qs

AP CSA U1L01-03

AP CSA U1L01-03

Assessment

Quiz

Computers

11th - 12th Grade

Easy

Created by

Anne Kohart

Used 35+ times

FREE Resource

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

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?