AP CS MCQ array
Interactive Video
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Amy Fu
Used 1+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the initial value of the Boolean array 'oldVowels'?
[true, false, true, true]
[false, true, false, false]
[true, true, false, true]
[false, false, true, true]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of 'newVowels' at index 3 after the first iteration of the loop?
null
false
undefined
true
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main issue with the 'removeDupes' method?
It does not check for duplicates correctly.
It does not handle empty arrays.
It does not remove elements from the array.
It increments 'k' even after removing an element.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens to the array when an element is removed in the 'removeDupes' method?
The array elements shift up.
The array elements shift down.
The array remains the same.
The array becomes empty.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the final value of 'sum' after executing the code segment with the 2D array?
66
60
54
48
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?
Popular Resources on Wayground
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
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade