
AP CS A: Arrays, Array Lists, Recursion & Searching/Sorting

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Anthony Logothetis
Used 39+ times
FREE Resource
34 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which index is the last element in an array called nums at?
nums.length
nums.length - 1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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];
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is returned from arr[3] if arr={6, 3, 1, 2}?
1
2
3
6
4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is returned from mystery when it is passed {10, 30, 30, 60}?
17.5
30.0
130
32
32.5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is a valid conclusion. Assume that variable b is an array of k integers and that the following is true:
The value in b[0] does not occur anywhere else in the array
Array b is sorted
Array b is not sorted
Array b contains no duplicates
The value in b[0] is the smallest value in the array
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment. Which of the following statements best describes the condition when it returns true?
whenever the first element in a is equal to val
Whenever a contains any element which equals val
Whenever the last element in a is equal to val
Whenever more than 1 element in a is equal to val
Whenever exactly 1 element in a is equal to val
Create a free account and access millions of resources
Similar Resources on Wayground
31 questions
TEST 2 SEMI-FINALS IN EMP TECH

Quiz
•
12th Grade
30 questions
Latihan soal Akhir Semester satu

Quiz
•
9th Grade - University
34 questions
Java Quiz

Quiz
•
11th Grade - University
30 questions
Паскаль АВС_9 класс

Quiz
•
8th - 9th Grade
30 questions
Latihan PHP OTW PTS Part 2

Quiz
•
12th Grade
32 questions
2.2 Programming Fundamentals Knowledge Check

Quiz
•
9th - 12th Grade
30 questions
Berpikir Komputasi

Quiz
•
10th Grade
30 questions
SQL and File Handling Concepts Quiz

Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade