JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
AP Computer Science A Unit 3
We wish you all the best luck studying for AP Computer Science A! Thank you to all of our wonderful Quiz Creators for making this possible!
- The Studyist Team
Sign in to Google
to save your progress.
Learn more
* Indicates required question
Which of the following answer choices is a relational operator?
*
1 point
double
int
boolean
!=
What will be the output after this code is executed?
*
1 point
U should stay at this hotel
U should stay at this hotel.
You should not stay at this hotel
This code will error
After this code runs, what will the value of kilo be?
*
1 point
true
false
faLse
None of the above
What will this method return? The method call is addOneOrTwo(3);
*
1 point
122
4
5
This method will error
What will the value of happy be after this code segment runs?
*
1 point
3.5
0
10000
false
What is wrong with this code?
*
1 point
Egg was not properly initialized.
The value of egg is greater than 1.
There is no semicolon after egg.
There is nothing wrong with this code.
Look at this code below:
*
1 point
I only
II only
III only
I, II, and III
What will the values for t and y be after this code runs?
*
1 point
This code would error.
Option 2
Option 3
Option 4
Which of the following answer choices below is equal to: !(s || d) s and d are BOOLEAN values.
*
1 point
100
!s && d+++
!s && !d
None of the above
Which of the following answer choices below this question is not a logical operator?
*
1 point
| |
double
&&
!
What will this code segment print out?
*
1 point
falso
false
true
Nothing is printed out.
Which of the following answer choices below this question accurately describes the function of ==?
*
1 point
Comparing two primitive types to see if they are equal.
Turns everything into one-hundred
Subtract something by one.
Assigning a new value
Which of the following answer choices accurately describes the function of !=?
*
1 point
To check if something is equal to zero
To check for inequality
Add something by one
Subtract something by 100
What will this method return? The method call is two(2);
*
1 point
2
200
false
true
What will this method return? The method call is positive(-1);
*
1 point
This amazing code will sadly error
1
positive
negative
Which of the following answer choices accurately describes the difference between = and ==?
*
1 point
= is used to assign values to variables, but == is used to compare two primitive types to see if the two primitive types are equal or not.
= is used to compare, but == is used to assign
Both = and == are the same.
= is used to assign values, but == is used to compare Strings.
What will this code print out after being executed?
*
1 point
Philadelphia 89ers
89ers Philadelphia
This code will sadly error.
Nothing is printed.
What will y be after this code runs?
*
1 point
This code will error
This code works fine
+
base
What will the value of pen be after this code runs?
*
1 point
0
5
1000
None of the above
What will be printed out after this code runs?
*
1 point
hamster
Hamsters
Hamster
This code will error
Submit
Clear form
This content is neither created nor endorsed by Google.
Report Abuse
-
Terms of Service
-
Privacy Policy
Forms