AP CSA Review Set #1

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Devon Senneseth
Used 52+ times
FREE Resource
37 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
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 Wayground
40 questions
SSW-NGS-G11-Exam JUN-PreTest-2023-2024

Quiz
•
11th Grade
34 questions
Latihan Soal Informatika Kelas IX

Quiz
•
9th Grade
40 questions
Массивы RU

Quiz
•
11th Grade
40 questions
Pemrograman Dasar-I

Quiz
•
10th Grade
37 questions
Robotics-1-PythonBooksA

Quiz
•
9th - 12th Grade
42 questions
Algorithms

Quiz
•
12th Grade
32 questions
Python 6 topic (lists and dictionaries)

Quiz
•
5th - 12th Grade
34 questions
AP CS A: Arrays, Array Lists, Recursion & Searching/Sorting

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade