AP CSA Review Set #1
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Devon Senneseth
Used 52+ times
FREE Resource
Enhance your content in a minute
37 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5-1-1: What is the value of grade when the following code executes and score is 93?
if (score >= 90) grade = "A"; if (score >= 80) grade = "B"; if (score >= 70) grade = "C"; if (score >= 60) grade = "D"; else grade = "E";
A
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is equivalent to the code segment below?
if (x > 2) x = x * 2; if (x > 4) x = 0;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code print when x has been set to -5? 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
What does the following code print when x has been set to 2000? 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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
40 questions
Quiz Bilangan dan Algoritma
Quiz
•
9th Grade
35 questions
ULANGAN HARIAN KE-1 SMT GENAP INFORMATIKA KELAS XII FASE F
Quiz
•
12th Grade
36 questions
KHỐI 9 - GIỮA KÌ 1
Quiz
•
9th Grade
40 questions
đề cương tin học cuối kì 2 (11)
Quiz
•
11th Grade
35 questions
Latihan SAS Gasal Informatika TA 23/24
Quiz
•
9th - 12th Grade
40 questions
Python Genel Deneme Sınavı
Quiz
•
10th Grade
39 questions
ASESMEN AKHIR KETERAMPILAN KOMPUTER
Quiz
•
10th Grade
35 questions
Rejestr Windows
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
