Search Header Logo

Practice AP Computer Science Sem. Exam 2021

Authored by Awesome Pence

Computers

10th Grade

Used 35+ times

Practice AP Computer Science Sem. Exam 2021
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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]

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?