Search Header Logo

Unit 7 Test Review Parameters, return values & libraries

Authored by Donna Panter

Computers

9th - 12th Grade

Used 120+ times

Unit 7 Test Review Parameters, return values & libraries
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

the subdivision of a computer program into separate subprograms.

API

procedureal abstraction

modularity

library

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is one benefit of using existing algorithms instead of brand new algorithms?

removes testing

reduces abstractions in the program

simplifies a complex program

increases development time

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is output by the code below?

function Morning(message) {

write("Mom! ", message);

}

Morning("Good morning!");

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is output by the code below? (separate answers by a space. Ex 5 6 7)

function doubleIt(number) {

write(number, number);

}

doubleIt("two");

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is output by the code below? Write error if there is an error.

function sum(a, b) {

return a + b;

}

write(sum(3,5));

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is displayed after running this program? Write error if there is an error.

function greeting(a,b) {

if (a < 0) return "Good Morning";

else {

if ( b < 5) return "Good Afternoon";

else {

if (b > a) return "Good Night";

else return "I'm going to bed";

}

}

}

console.log(greeting(3,7));

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

How would you call the function if width was 5 and height was 10?

function area(width, height) {

console.log( width * height );

}

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?