AP CSA Semester 1 Review (Mod 1 - 5)

Quiz
•
Computers
•
10th - 12th Grade
•
Medium
Devon Senneseth
Used 16+ times
FREE Resource
77 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 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
B
C
D
2.
MULTIPLE CHOICE QUESTION
2 mins • 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");
x is negative
x is zero
x is positive
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What does the following code print when x has been set to .8?
if (x < .25)
System.out.println("first quartile");
else if (x < .5)
System.out.println("second quartile");
else if (x < .75)
System.out.println("third quartile");
else
System.out.println("fourth quartile");
first quartile
second quartile
third quartile
fourth quartile
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is printed when the following code executes and x has been set to zero?
if (x > 0 && (y / x) == 3)
System.out.println("first case");
else
System.out.println("second case");
first case
second case
You will get a error because you can't divide by zero.
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is printed when the following code executes and x has been set to negative 1?
String message = "help";
if (x >= 0 && message.substring(x).equals("help") System.out.println("first case");
else
System.out.println("second case");
first case
second case
You will get a error because you can't use a negative index with substring.
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is printed when the following code executes and x has been set to zero and y is set to 3?
if ((y / x) == 3 || x = 0)
System.out.println("first case");
else
System.out.println("second case");
first case
second case
You will get a error because you can't divide by zero.
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is printed when the following code executes and x equals 4 and y equals 3?
if (!(x < 3 || y > 2))
System.out.println("first case");
else
System.out.println("second case");
first case
second case
Create a free account and access millions of resources
Similar Resources on Wayground
80 questions
ASK TINGKATAN 2 BAB 3 2025

Quiz
•
9th - 12th Grade
81 questions
GCSE Computer Science Year 10 Spiral 1 Revision

Quiz
•
9th - 10th Grade
75 questions
Sistemas informáticos

Quiz
•
10th Grade - University
77 questions
Data Representation Unit Revision Quiz

Quiz
•
10th Grade
75 questions
Computer Science - End of Year Quiz

Quiz
•
10th Grade
74 questions
Ôn Tập Cuối Kỳ Môn Tin Học 10

Quiz
•
10th Grade
72 questions
0360.U7.U8.U9.U10.Equips MicroInformàtics

Quiz
•
9th - 12th Grade
81 questions
Tin học 10

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade