CS2 Unit 7 Review

CS2 Unit 7 Review

12th Grade

15 Qs

quiz-placeholder

Similar activities

AP CompSci Unit 6 & 7 Vocab Review

AP CompSci Unit 6 & 7 Vocab Review

9th - 12th Grade

18 Qs

Learning About Computers

Learning About Computers

1st - 12th Grade

12 Qs

Текстовий редактор

Текстовий редактор

1st Grade - Professional Development

10 Qs

Funções em JavaScript

Funções em JavaScript

12th Grade

15 Qs

Quiz sobre Motores de Busca

Quiz sobre Motores de Busca

12th Grade - University

15 Qs

Python Iniciante

Python Iniciante

9th - 12th Grade

10 Qs

History of AI

History of AI

9th - 12th Grade

10 Qs

Cyber & Tech Careers Quiz

Cyber & Tech Careers Quiz

9th - 12th Grade

12 Qs

CS2 Unit 7 Review

CS2 Unit 7 Review

Assessment

Quiz

Instructional Technology

12th Grade

Hard

Used 4+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Instructional Technology