Practice AP Computer Science Sem. Exam 2021

Practice AP Computer Science Sem. Exam 2021

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Awesome Pence

Used 35+ times

FREE Resource

Student preview

quiz-placeholder

35 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Given: var myNumbers = [32, 64, 33, 0, 15, 26, 31]


What will the value be for index:


myNumbers[4]

15

32

0

16

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be displayed after this code segment is run?

"opal"

"saphirre"

"garnet"

"emerald"

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will be displayed in the console when this program runs?

_________________________________________

var numList = [10,20,30];

console.log(numList[numList.length-1]);

2

3

20

30

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Given: var myNumbers = [32, 64, 33, 0, 15, 26, 31]


What will the value be for index:


myNumbers[0]

15

32

0

64

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be displayed after this code segment is run?

Perfect Game!

You Win!

You Lose!

Nothing will be displayed

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Given: var myNumbers = [32, 64, 33, 0, 15, 26, 31]


What will the value be for index:


myNumbers[3]

15

32

0

64

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is stored in studentScores after running the program code?

[82, 0, 0, 97, 91]

[5, 0, 0, 5, 5]

[0, 37, 50, 0, 0]

[77, 37, 50, 92, 86]

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?