Parameters/Returns/Libraries

Parameters/Returns/Libraries

9th Grade

15 Qs

quiz-placeholder

Similar activities

IDT Unit 2 Review (practice for Test 2)

IDT Unit 2 Review (practice for Test 2)

8th - 12th Grade

20 Qs

CodeHS Python Unit 3 Quiz Review

CodeHS Python Unit 3 Quiz Review

9th - 12th Grade

20 Qs

Python Quiz review

Python Quiz review

8th - 10th Grade

17 Qs

แบบทดสอบปลายภาคเรียน เทคโนโลยี ม.3

แบบทดสอบปลายภาคเรียน เทคโนโลยี ม.3

9th - 12th Grade

20 Qs

Unit 6 ArrayLists and String Methods

Unit 6 ArrayLists and String Methods

9th - 12th Grade

20 Qs

Python concepts

Python concepts

5th - 10th Grade

10 Qs

Excel

Excel

9th - 12th Grade

20 Qs

Unit 7- Lesson 11: Assessment Day

Unit 7- Lesson 11: Assessment Day

9th - 12th Grade

15 Qs

Parameters/Returns/Libraries

Parameters/Returns/Libraries

Assessment

Quiz

Computers

9th Grade

Hard

Created by

Darrin Patterson

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

30 sec • 1 pt

Media Image

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

moveForward(); rotateLeft(); moveForward();

rotateRight(); moveForward(); moveForward();

moveForward(); moveForward(); rotateRight();

rotateLeft(); moveForward(); rotateLeft();

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

[2, 5, 3, 1, 6]

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

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

[5, 2, 6, 3, 9]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

findMin(-1, 0), findMin(2,4), findMin(5,10)

findMin(5,3), findMin(7,2), findMin(5,1)

findMin(1,1), findMin(-2,2), findMin(0,3)

findMin(-1,1), findMin(1,-1), findMin(1,1)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

1

4

0

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is printed to the console?

console.log(15%4);

2

3

4

1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which term refers to a solution to a large problem that is based on the solutions of smaller subproblems?

Procedural abstraction

API

Parameter

Library

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?