AP CS MCQ array
Interactive Video
•
Computers
•
12th Grade
•
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
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade