if (score >= 90) grade = "A"; if (score >= 80) grade = "B"; if (score >= 70) grade = "C"; if (score >= 60) grade = "D"; else grade = "E";
AP CSA Review Set #1

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Devon Senneseth
Used 50+ times
FREE Resource
37 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if (x > 2) x = x * 2; if (x > 4) x = 0;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if (x < 0) System.out.println("x is negative"); else if (x == 0) System.out.println("x is zero"); else System.out.println("x is positive");
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if (x < 0) System.out.println("x is negative"); else if (x == 0) System.out.println("x is zero"); else System.out.println("x is positive");
5.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Given the following code segment, which of the following is true?
String s1 = new String("Hi There");
String s2 = new String("Hi There");
String s3 = s1;
I. (s1 == s2)
II. (s1.equals(s2))
III. (s1 == s3)
IV. (s2.equals(s3))
II and IV
II, III, and IV
I, II, III, IV
II only
IV only
6.
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
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
After the following code is executed, which of I, II and/or III will evaluate to true?
String s1 = "xyz";
String s2 = s1;
String s3 = s2;
I. s1.equals(s3)
II. s1 == s2
III. s1 == s3
I, II, III
I only
II only
III only
II and III only
Create a free account and access millions of resources
Similar Resources on Quizizz
40 questions
PBO

Quiz
•
11th Grade
40 questions
2024_UAS XII RPL 1 PBO

Quiz
•
12th Grade
40 questions
Kisi kisi soal Pemrograman Berorientasi Objek

Quiz
•
11th Grade
37 questions
AP CS A Midterm Review

Quiz
•
9th - 12th Grade
34 questions
Java Quiz

Quiz
•
11th Grade - University
32 questions
1.4.2 Data Structures

Quiz
•
12th Grade
32 questions
2.16.1: Basic Java Review

Quiz
•
10th Grade
40 questions
Quizz PTS Kelas XI Struktur Data Array

Quiz
•
11th Grade - University
Popular Resources on Quizizz
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
Discover more resources for Computers
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