What is the resulting value of x?
int x;
x = 2.3;
AP CSA U1L01-03
Quiz
•
Computers
•
11th - 12th Grade
•
Easy
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
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
15 questions
Basics in Java
Quiz
•
9th - 12th Grade
21 questions
SAINS KOMPUTER TINGKATAN 4 (BAB1)
Quiz
•
KG - University
19 questions
AP CSA 1.2 Variables and Data Types
Quiz
•
11th - 12th Grade
20 questions
JAVA FUNDAMENTALS
Quiz
•
9th - 12th Grade
20 questions
Java, part I
Quiz
•
11th Grade - University
15 questions
Java Script Quiz
Quiz
•
9th - 12th Grade
15 questions
JAVA: Level-1
Quiz
•
5th - 12th Grade
20 questions
Arrays in Java
Quiz
•
9th - 12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University