
Unit 6 Review APCS
Authored by Erin Thompson
Mathematics
9th - 12th Grade
CCSS covered
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Easy: Which index is the last element in an array called nums at?
nums.length
nums.length - 1
Answer explanation
Since the first element in an array is at index 0 the last element is the length minus 1.
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Easy: Which of the following declarations will cause a compile time error?
int[] scores = null;
int[] scoreArray = {50,90,85};
String[] nameArray = new String[10];
String[] nameArray = {5, 3, 2};
int[] scores = new int[5];
Answer explanation
You can not put integers into an array of String objects.
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Easy: What is returned from arr[3] if arr={6, 3, 1, 2}?
1
2
3
6
4
Answer explanation
This returns the value in arr at index 3. Remember that the first item in an array is at index 0.
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Easy: What is returned from mystery when it is passed {10, 30, 30, 60}?
17.5
30.0
130
32
32.5
Answer explanation
This sums all the values in the array and then returns the sum divided by the number of items in the array. This is the average.
Tags
CCSS.6.SP.B.5C
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Easy: Given the following values of a and the method doubleLast what will the values of a be after you execute: doubleLast()?
{-20, -10, 2, 8, 16, 60}
{-20, -10, 2, 4, 8, 30}
{-10, -5, 1, 8, 16, 60}
{-10, -5, 1, 4, 8, 30}
Answer explanation
It loops from the middle to the end doubling each value. Since there are 6 elements it will start at index 3.
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Easy: What are the values in a after multAll(3) executes?
{1, 3, -5, -2}
{3, 9, -15, -6}
{2, 6, -10, -4}
The code will never stop executing due to an infinite loop
Answer explanation
This code multiplies each value in a by the passed amt which is 3 in this case.
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Easy: What are the values in a after mult(2) executes?
{1, 3, -5, -2}
{3, 9, -15, -6}
{2, 6, -10, -4}
The code will never stop executing due to an infinite loop
Answer explanation
The value of i is initialized to 0 and then never changes inside the body of the loop, so this loop will never stop. It is an infinite loop.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
7.1 Practice: Adding and Subtracting Polynomials
Quiz
•
9th Grade
18 questions
Component 3 Assessment B revision
Quiz
•
12th Grade
20 questions
Indices-(O'Level Revision)
Quiz
•
8th - 10th Grade
15 questions
StatProb Lesson 4 Quiz Reviewer (SY 23 - 24)
Quiz
•
11th Grade
13 questions
Solving Equations - Math 9
Quiz
•
9th Grade
20 questions
Numeracy #4
Quiz
•
9th Grade
14 questions
CHCI GENERAL KNOWLEDGE
Quiz
•
11th Grade
16 questions
Factoring Polynomials Quiz
Quiz
•
10th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Mathematics
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Exponent Properties
Quiz
•
9th Grade
15 questions
Combine Like Terms and Distributive Property
Quiz
•
8th - 9th Grade
20 questions
Function or Not a Function
Quiz
•
8th - 9th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
10 questions
Elijah McCoy: Innovations and Impact in Black History
Interactive video
•
6th - 10th Grade
10 questions
Evaluating Piecewise Functions Practice
Quiz
•
11th Grade
21 questions
Factoring Trinomials (a=1)
Quiz
•
9th Grade