Give the output (type error if there is an error):
int x = 5 % 3;
System.out.print(x);
Semester 1 Review 1
Quiz
•
Computers
•
12th Grade
•
Medium
Jeffrey Smith
Used 3+ times
FREE Resource
28 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Give the output (type error if there is an error):
int x = 5 % 3;
System.out.print(x);
2.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Give the ouput:
double x = 5 / 3;
System.out.println(x);
3.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Give the ouput:
double x = (double)7 / 2;
System.out.println(x);
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sterling silver is pure silver.
True
False
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Give the output:
System.out.println(5 + 2 * 3);
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is returned?
String s = "123";
if(s == "123")
return true;
return false;
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is returned?
String s1 = new String("apple");
String s2 = new String("apple");
if(s1 == s2)
return true;
return false;
32 questions
Unit 1 APCSA
Quiz
•
9th Grade - University
24 questions
Java Fundamentals
Quiz
•
12th Grade
26 questions
JENIS DATA (ASAS SAINS KOMPUTER TINGKATAN 2) Cikgu Munirah
Quiz
•
12th Grade
26 questions
Java - Flow of Control Quiz
Quiz
•
9th - 12th Grade
25 questions
Algoritma dan Pemrograman
Quiz
•
12th Grade - University
25 questions
Java Review
Quiz
•
9th Grade - University
23 questions
Java conditional/loop/method/user input
Quiz
•
9th - 12th Grade
29 questions
Parcial 1 Programación en Java
Quiz
•
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