Unit 7 Test Review Parameters, return values & libraries

Unit 7 Test Review Parameters, return values & libraries

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Introduction to Javascript Programming

Introduction to Javascript Programming

9th - 10th Grade

16 Qs

AQA GCSE Computer Science Paper 1

AQA GCSE Computer Science Paper 1

9th - 11th Grade

20 Qs

Unit 5 Quiz - Loops & Lists (code.org)

Unit 5 Quiz - Loops & Lists (code.org)

10th - 12th Grade

20 Qs

JavaScript Functions and Parameters

JavaScript Functions and Parameters

9th - 12th Grade

20 Qs

Final Review - Unit 1

Final Review - Unit 1

9th - 12th Grade

15 Qs

Javascript

Javascript

10th - 12th Grade

15 Qs

Java - arrays and String methods

Java - arrays and String methods

9th - 12th Grade

12 Qs

COM10.3.2

COM10.3.2

10th Grade

20 Qs

Unit 7 Test Review Parameters, return values & libraries

Unit 7 Test Review Parameters, return values & libraries

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Donna Panter

Used 120+ times

FREE Resource

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 );

}

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?