AP Computer Science A: <= Unit 4

Quiz
•
Computers
•
10th - 12th Grade
•
Medium
Herman Galioulline
Used 90+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The code segment is intended to print a value that is 1 more than twice the value of n.
I only
II only
III only
I and III
II and III
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is printed as a result of executing the code segment?
ABCD
BCDE
BCEF
BCDEF
ABCDEF
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What value is returned as a result of the method call changeStr("12345") ?
"4"
"53"
"531"
"543"
"54321"
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
boolean x = (5 < 8) == (5 == 8);
What is the value of x?
3
5
8
true
false
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following code segments, if located in a method in a class other than Thing, will cause the message "Hello my friend" to be printed?
Thing a = new Thing();
Thing.talk();
Thing.name();
Thing a = new Thing();
Thing.greet();
Thing a = new Thing();
a.talk();
Thing a = new Thing();
a.greet();
Thing a = new Thing();
a.name();
a.talk();
Similar Resources on Wayground
10 questions
Python

Quiz
•
10th - 11th Grade
10 questions
Quiz 16 - Arrays and Loops

Quiz
•
11th Grade
10 questions
Python Boolean and If

Quiz
•
9th - 12th Grade
10 questions
Y6 - Programming A - Variables in games

Quiz
•
6th Grade - University
8 questions
Functions and Procedures

Quiz
•
9th - 11th Grade
10 questions
Code.org Unit 5 Vocab Quiz 1

Quiz
•
9th - 12th Grade
10 questions
Java Strings

Quiz
•
1st Grade - Professio...
10 questions
WJEC 1.7 Software Engineering

Quiz
•
9th - 10th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade