AP CSA Unit 1 Review

Flashcard
•
Computers
•
10th - 12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

18 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Consider the following code segment.
System.out.println("W");
System.out.println("X");
System.out.print("Y");
System.out.print("Z");
What is printed as a result of executing the code segment?
Back
W
X
YZ
2.
FLASHCARD QUESTION
Front
Consider the following code segment:
String str = "AP";
str += "CS " + 1 + 2;
System.out.println(str);
What is printed as a result of executing the code segment?
Back
APCS 12
3.
FLASHCARD QUESTION
Front
What is the expected output? Options: -1, 0, 1, 17, 18
Back
17
4.
FLASHCARD QUESTION
Front
Is the following identifier legal or illegal?
MyFirstProgram
Back
legal
5.
FLASHCARD QUESTION
Front
If x = 4, x++ =?
Back
5
6.
FLASHCARD QUESTION
Front
if int a = 10, what does b = if b= 15/4
Back
3
7.
FLASHCARD QUESTION
Front
In integer division, what happens to the decimal, such as int a = 25/10, where the answer would be 2.5?
Back
the decimal is dropped
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Java - Flow of Control Flashcard

Flashcard
•
9th - 12th Grade
13 questions
Functions and Parameters

Flashcard
•
9th - 12th Grade
11 questions
Java Boolean Statements

Flashcard
•
11th Grade
9 questions
Java For Loops

Flashcard
•
9th - 12th Grade
16 questions
Lesson 3.5 - If Structures Practice

Flashcard
•
11th Grade
11 questions
for and while loops level 2

Flashcard
•
9th - 12th Grade
14 questions
Javascript Control Structures Practice

Flashcard
•
9th - 12th Grade
16 questions
Loops Flashcard

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade