Unit 7

Unit 7

9th - 12th Grade

13 Qs

quiz-placeholder

Similar activities

p5.js Week1 PREtest

p5.js Week1 PREtest

7th - 12th Grade

14 Qs

GCSE Computing - Subprograms

GCSE Computing - Subprograms

9th - 10th Grade

14 Qs

1.2.3 - Introduction to programming

1.2.3 - Introduction to programming

3rd - 9th Grade

15 Qs

Computer Science Principles: Intro to Programming

Computer Science Principles: Intro to Programming

9th - 12th Grade

15 Qs

Subprograms

Subprograms

11th Grade

10 Qs

AP Computer Science Principles Practice Module

AP Computer Science Principles Practice Module

10th - 12th Grade

14 Qs

Functions and Parameters Summative preview

Functions and Parameters Summative preview

9th - 12th Grade

10 Qs

Functions With Return Values U1M2 Python

Functions With Return Values U1M2 Python

9th - 12th Grade

12 Qs

Unit 7

Unit 7

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Thomas Martinez

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is an example of abstraction?
Writing a function for code you repeat often
Using logic symbols like < and >
Numbers are converted from one base to another
There is an error in the code

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Why are parameters useful when programming?
Parameters determine the number of times the function will run. 
Parameters allow for more flexible, generalized behaviors in functions.
Parameters are useful for teams of programmers because they help define the boundaries of the problem they are trying to solve. 
Parameters change the order of operations within a function. 

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Multiple functions within a program can have the same name
True
False

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct way to call the function called "doMath" with a parameter of 5?
doMath(5);
function doMath(5);
doMath();
doMath{5};

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we use functions in programs?
A.  Make the program easier to read
B.  Avoid retyping the same lines of code
C.  Both A and B are correct
D. Neither A nor B are correct

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
What is wrong with this program?

The "go" function is called twice

The "go" function has a syntax error

The "go" function has been defined twice

"go" is not a command that can be used

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A benefit of using well-named functions and parameters in a computer program is
The program will run faster
The program will be easier for people to read
The program will have a greater data storage capacity
The program will not need parameters

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?