Search Header Logo

AP CS A Midterm Review

Authored by Danielle Mills

Computers

9th - 12th Grade

Used 51+ times

AP CS A Midterm Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

37 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

4 16
4 10 16
0 6 12 18
1 4 7 10 13 16 19

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is output by the code?

0

1

2

3

4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is output by the code?

0

1

2

3

4

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

[P, Q, R, s, T]
[P, Q, s, T, u]
[P, Q, T, s, u]
[P, T, s, R, u]

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

I)    while(count <= numRolls && Math.random() < 1/6.0)     count++;
II)    for(int roll = 0; roll < numRolls; roll++)   {     if(Math.random() < 1/6.0)     count++;   }
III)  for(int roll = 0; roll < numRolls; roll++)   {     if((int)(6 * Math.random() + 1) == 1)     count++;   }
II and III

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

1  0  0  0  0
0  1  0  0  0
0  0  1  0  0
0  0  0  1  0
0  0  0  0  1
0  0  0  0  1
0  0  0  1  0
0  0  1  0  0
0  1  0  0  0
1  0  0  0  0
0  0  1  0  0
0  0  1  0  0
1  1  1  1  1
0  0  1  0  0
0  0  1  0  0
0  0  0  1  0
0  0  0  1  0
0  0  0  1  0
1  1  1  1  1
0  0  0  1  0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you wanted to check to see if two numerical values were equal, which operator would you use?

=
!=
equals
==

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?