AP CSA U1L01-03

AP CSA U1L01-03

11th - 12th Grade

18 Qs

quiz-placeholder

Similar activities

Arrays in Java

Arrays in Java

9th - 12th Grade

20 Qs

CodeHS Unit 2

CodeHS Unit 2

11th - 12th Grade

13 Qs

Java Basics

Java Basics

12th Grade

17 Qs

OOP - Java Classes

OOP - Java Classes

12th Grade - University

15 Qs

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

9th - 12th Grade

20 Qs

Java Script Quiz

Java Script Quiz

9th - 12th Grade

15 Qs

Java, part I

Java, part I

11th Grade - University

20 Qs

JAVA: Level-1

JAVA: Level-1

5th - 12th Grade

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