AP CS MCQ array

AP CS MCQ array

Assessment

Interactive Video

Computers

12th Grade

Hard

Created by

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