Functions and Parameters Summative preview

Functions and Parameters Summative preview

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Python

Python

8th - 9th Grade

15 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

Fundamentos PHP (Manejo de Fomularios y arreglos)

Fundamentos PHP (Manejo de Fomularios y arreglos)

9th Grade

10 Qs

Basics of spreadsheet

Basics of spreadsheet

12th Grade

15 Qs

Chapter 7: System life cycle

Chapter 7: System life cycle

9th - 11th Grade

15 Qs

OCR GCSE CS - 2.1 ERL sorts and searches

OCR GCSE CS - 2.1 ERL sorts and searches

10th - 11th Grade

9 Qs

Flowchart Symbols

Flowchart Symbols

11th Grade

12 Qs

Python List

Python List

4th Grade - University

15 Qs

Functions and Parameters Summative preview

Functions and Parameters Summative preview

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Kelly Hart

Used 28+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following program?

5

15

15

5

nothing will print

5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is printed by the following program?

-7

7

=13

13

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be printed to the screen when the following program is run?

function start(){

println(doubleNumber(doubleNumber(10)));

}

function doubleNumber(x){

var doubledX = 2 * x;

return doubledX;

}

20

100

40

x

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the following function printThreeTimes:

function printThreeTimes(word){

println(word);

println(word);

println(word);

}

What is the parameter of the function?

word

word

word

word

no parameter

println

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the minimum number of parameters that must be given when calling the ‘drawCircle’ function?

function drawCircle(radius, x, y, color) {

var circle = new Circle(radius);

circle.setPosition(x, y);

circle.setColor(color);

add(circle);

}

1

2

0

4

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

// This function prints out the area of a rectangle given its base and height function rectangleArea(base, height){

var area = base * height;

println(area);

}

What are the names of the parameters?

base and height

length and width

var area

println(area)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is printed by the program?

2

1

0

two

one

zero

nothing will print

0

1

2

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?

Discover more resources for Computers