AP CS P CodeHS Unit 5

AP CS P CodeHS Unit 5

9th - 12th Grade

26 Qs

quiz-placeholder

Similar activities

CSP Unit 7 Review Code.org

CSP Unit 7 Review Code.org

9th - 12th Grade

28 Qs

Python Functions and Parameters Review

Python Functions and Parameters Review

9th - 12th Grade

29 Qs

Computer Science Principles

Computer Science Principles

9th - 12th Grade

26 Qs

Code.org APCSP Unit 7 Assessment

Code.org APCSP Unit 7 Assessment

9th - 12th Grade

26 Qs

Python Functions Review Quiz

Python Functions Review Quiz

9th - 12th Grade

28 Qs

AP CSP Unit 7: Parameters, Returns, and Libraries

AP CSP Unit 7: Parameters, Returns, and Libraries

9th - 12th Grade

26 Qs

C++ Functions Review Quiz

C++ Functions Review Quiz

9th Grade - University

25 Qs

Functions in RobotC

Functions in RobotC

7th - 11th Grade

22 Qs

AP CS P CodeHS Unit 5

AP CS P CodeHS Unit 5

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Shannon Walsh

Used 80+ times

FREE Resource

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

________ allow us to break our programs into smaller parts

decisions

functions

methods

loops

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which is the correct header of a function names double_number that takes one parameter

def double number (x)

def double_number(x)

def double_number(x):

def double_number(int x):

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Everything in a function is indented by _____

One Level

Two Levels

Three Levels

In Curly Brackets ({})

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

To call a previous written function, you use the

function return type

function name without the ()

function name with () and included parameters

function name with ()

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

The tasks included in a function definition are referred to as the function _______.

method

body

statements

parameters

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

The variables written inside the () of a functions definition are the _____

return types

arguements

variables

parameters

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

When functions have multiple parameters, the variables are separated with

commas

colons

simi-colons

periods

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?