AP CS A Unit 6 Exam PRACTICE

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Scott Chamberlain
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What return statement may be used in p()?
return 1;
return {1, 2, 3};
return int[]{1, 2, 3};
return new int[3];
return true;
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What does the following method do?
Returns a count of the number of elements in the array.
Returns the sum of the values in the array.
Returns a count of the number of times x appears in the array.
Returns the average of the values in the array.
Returns a count of the number of positive elements in the array
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider the following instance variable and method.
Which of the following replacements for /* missing code */ correctly implements the method printEvenIndices()?
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Assume the following method has been defined.
What is output by the following code?
String[] b = {"aardvark", "banana", "cougar", "daikon", "elephant", "fog", "get"};
System.out.println(mystery(b, 5));
0
2
3
4
5
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
When you pass an array to a method, the method receives _______.
a copy of the array
a copy of the first element
a copy of the reference to the first element
a copy of the reference to the array
the length of the array
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What does the following algorithm do?
Adds 1 to every value in the array.
Doubles all the values in the array.
Changes all the values in the array to even numbers.
Tests if the elements in the array are even or odd.
Doubles every other value in the array.
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider the following method.
What is printed when the code above is executed?
pro
pprpro
pprogrpro
prprograprog
programprogramprogram
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Data structure test1

Quiz
•
12th Grade
15 questions
Unit 8 Javascript Quiz

Quiz
•
9th - 12th Grade
25 questions
JAVASCRIPT

Quiz
•
12th Grade
20 questions
Computer Application Practice Quiz Class 10

Quiz
•
10th Grade
15 questions
CS Data Structure Quiz

Quiz
•
11th Grade
15 questions
Data Structures Quiz

Quiz
•
11th Grade
20 questions
10.4 Intro. to Abstract Data Types (ADT) Cambridge iAS 9618

Quiz
•
11th Grade
15 questions
AP Computer Science A Review 1

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade