AP CS A- Recursion and 2D Arrays

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Diya Krishnan
Used 45+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the value returned by the call what(A,5) where A has been initialized by the statement
int[] A = {1,2,1,1,2}
1
2
3
4
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the value returned by the call what(123)?
1
2
3
0
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
-1 1 1 1 1
1 -1 1 1 1
1 1 -1 1 1
1 1 1 -1 1
1 1 1 1 -1
-1 -1 -1 -1 -1
-1 -1 -1 -1 -1
-1 -1 -1 -1 -1
-1 -1 -1 -1 -1
-1 -1 -1 -1 -1
-1 1 -1 1 -1
1 -1 1 -1 1
-1 1 -1 1 -1
1 -1 1 -1 1
-1 1 -1 1 -1
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following represents the contents of grid after the segment is executed?
1 2
3 4
5 6
7 8
1 2 3 4
5 6 7 8
1 3 5 7
2 4 6 8
1 5
2 6
3 7
4 8
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the value returned by the call what (“ay caramba”)”
1
2
3
4
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following represents grid?
A B C
D E F
G H I
A A A
A A A
A A A
A D G
B E H
C F I
C C C
F F F
I I I
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What i the value returned by the call
repl(“All of the above”)?
“All of the above”
“All+of+the+above”
“Alloftheabove”
“All”
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Linear Data

Quiz
•
12th Grade
15 questions
G10 CS String Manipulation

Quiz
•
12th Grade
11 questions
1970's

Quiz
•
9th - 12th Grade
14 questions
SQL 2

Quiz
•
11th Grade
17 questions
CS1 Review Unit 6

Quiz
•
9th - 12th Grade
10 questions
CS Python Fundamentals Test 12 PRACTICE

Quiz
•
9th - 12th Grade
10 questions
Recursive Functions in Python

Quiz
•
12th Grade
15 questions
Recursion in Java

Quiz
•
11th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th 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
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade