CS2 Unit 7 Review

CS2 Unit 7 Review

12th Grade

15 Qs

quiz-placeholder

Similar activities

TESTOUT - CH 8

TESTOUT - CH 8

9th - 12th Grade

20 Qs

AI in Classroom: Pros & Cons

AI in Classroom: Pros & Cons

12th Grade

10 Qs

Operating system

Operating system

12th Grade

20 Qs

Matter/Interactions L1

Matter/Interactions L1

12th Grade

16 Qs

Lego EV3 Robotics Quiz (Multiple Choice)

Lego EV3 Robotics Quiz (Multiple Choice)

9th - 12th Grade

20 Qs

Python - Data Types

Python - Data Types

12th Grade - University

11 Qs

Scenario Based Questions

Scenario Based Questions

9th - 12th Grade

10 Qs

Artificial Intelligence#3

Artificial Intelligence#3

9th - 12th Grade

10 Qs

CS2 Unit 7 Review

CS2 Unit 7 Review

Assessment

Quiz

Instructional Technology

12th Grade

Hard

Used 4+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which code segment results in "true" being returned if a number is even? Replace "MISSING CONDITION" with the correct code segment.

num % 2 == 0;

num % 0 == 2;

num % 1 == 0;

num % 1 == 2;

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which code segment will guarantee that the robot makes it to the grey square without hitting a wall or a barrier (black square)?

Media Image
Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be printed to the console after this program runs?

[2, 5, 3, 1, 6]

[5, 2, 6, 3, 9]

[0, 3, 6, -1, 9]

[-1, 2, 6, -2, 8]

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which function calls would provide the most helpful test of this function?

Remember: With tests, you are attempting to figure out all the possible ways the function could be broken.

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

You have imported a library with the birthMonth() function. Based on the API, how many strings are inputed to calculate the birth month?

4

1

0

3

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

listAverage() returns the average number in a list. Which of these functions does this correctly?

Media Image
Media Image
Media Image
Media Image

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is printed to the console?

3

2

1

4

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?