JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
AP Computer Science A Quiz - Unit 6
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
What is the value of old after this code segment is executed?
*
1 point
DA
Da
M
Ali
What can Arrays store in the coding language of Java?
*
1 point
Primitive data
Object reference data
Java
Both A and B
Which of the following arrays below this question has a length of 3?
*
1 point
None of the below
String[] op={"Ali", "d", "s"};
String[] ophj={"Ali", "d", "s","sh"};
int[] mop={9,9};
What will be printed out after the code segment beneath this question runs?
*
1 point
93
39
0
9 (new line) 3
Which of the following arrays below this question doesn’t have a length of 5?
*
1 point
int[] yumi={9,9,2,1,2};
double [] yes={2.2,9.223,2.6,1.4,2};
double [] s={2.2,9.23};
String []r= new String[5];
Which of the following is not true about Arrays?
*
1 point
The size of an Array object can never be increased.
The size of an Array object can never be decreased.
There are no methods that could increase or decrease the size of an Array
Arrays length can only be 3
What is printed out after this code segment below this question runs?
*
1 point
System.out.println(floor[z]);
double[] floor = {0.4, 2.3, 1.1, 68.33, 8.4};
0.4 (new line) 2.3 (new line) 1.1 (new line) 68.33 (new line) 8.4 (new line)
None of the above
What is the error in this code segment below this question?
*
1 point
No semicolon after r[0]="3"
The Array was not properly initialized
No errors in this code segment
None of the above.
Which of the following answer choices correctly initialize an Array called randle?
*
1 point
String [] randle = ne String[22];
int [] randle = ne String[22];
int [] randle = new String[22]; s
double [] randle = new double[22];
What is the value of a variable called derrick after this code runs?
*
1 point
9
9.2
9.214
9.213
What will be the output after the code below this question runs?
*
1 point
9.99
8
5
9
What is an enhanced for loop also called?
*
1 point
Primitive Values
Java
For each loop
None of the above
Which of the following answer choices below this question accurately describes Array Length?
*
1 point
Is a primitive value
Is a reference to the Simpsons
Is the number of elements an Array can actually hold.
None of the above.
What is the use for the For-each loop?
*
1 point
Used to create errors in Java
Used to make coding languages
Utilized to loop through every element in an Array.
None of the above.
What is the value of m after this code runs?
*
1 point
False
Falso
true
None of the above
Which of the following below this question are Arrays that are valid?
*
1 point
boolean [] qa = {true,false,true};
boolean [] qa = {true,false,true”””””};
booleana [] qa = {true,false,true,false};
None of the above
What will be printed out after this code segment runs?
*
1 point
1600
1599
1500
1301.2
What is the output of this code snippet?
*
1 point
1
1.0
0
0.2
What is the length of the Array called games?
*
1 point
3
4
5
6
What is the length of the Array called p?
*
1 point
3
4
32
2
None of the above
Submit
Clear form
This content is neither created nor endorsed by Google.
Report Abuse
-
Terms of Service
-
Privacy Policy
Forms