String name1 = new String("Norman");
String name2 = new String("Norman");
System.out.println(name1 == name2);
APCSA - Unit 3
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Justin Loomis
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
String name1 = new String("Norman");
String name2 = new String("Norman");
System.out.println(name1 == name2);
TRUE
FALSE
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
MyObject obj1 = new MyObject();
MyObject obj2 = new MyObject();
MyObject obj3 = obj1;
Which variables are aliases?
obj1 and obj2
obj1 and obj3
obj2 and obj3
obj1, obj2, and obj3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which boolean expression is TRUE for all values of a and b?
a && (b || c)
!a || !b
a || (!a || b)
(a && b) || !b
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
x >= 3 || y < 7
Which of these is equivalent to the expression above?
!(x < 3 && y >= 7)
!(x > 3 || y <= 7)
x < 3 && y >= 7
x <= 7 || y > 3
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a || (a || !b)
Which of these is equivalent to the expression above?
a || b
a && b
a || !b
!a || b
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if (x < 0) { value = true; }
else if (x > 5) { value = true; }
else { value = false; }
Which of these code segments is equivalent to the code segment above?
value = x < 0 && x > 5;
value = x < 0 || x > 5;
value = true;
value = false;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int x = 2;
if (x < 5) { System.out.print("A"); }
else if (x < 10) { System.out.print("B"); }
else { System.out.print("C"); }
What is printed?
A
AB
ABC
BC
14 questions
Computing Revision JCG
Quiz
•
KG - University
15 questions
PYTHON PROGRAMMING
Quiz
•
11th - 12th Grade
10 questions
Representing and understanding algorithms
Quiz
•
10th - 11th Grade
10 questions
Python Data Types
Quiz
•
9th - 12th Grade
15 questions
Quiz sobre Interfaces en Java y Spring Core
Quiz
•
12th Grade
15 questions
Selection Quiz 2
Quiz
•
12th Grade
10 questions
Java Arithmetic Operators
Quiz
•
10th Grade
15 questions
Python Programming
Quiz
•
5th Grade - University
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