AP CS P CodeHS Unit 5

AP CS P CodeHS Unit 5

9th - 12th Grade

26 Qs

quiz-placeholder

Similar activities

Code HS Unit Test

Code HS Unit Test

9th - 12th Grade

26 Qs

Functions in RobotC

Functions in RobotC

7th - 11th Grade

22 Qs

CSP Unit 7 Review Code.org

CSP Unit 7 Review Code.org

9th - 12th Grade

28 Qs

P5.js Exam 1

P5.js Exam 1

9th - 12th Grade

21 Qs

Code.org Unit 7

Code.org Unit 7

9th - 12th Grade

26 Qs

AGAD: UNIT 4_C# & UNITY

AGAD: UNIT 4_C# & UNITY

9th - 12th Grade

24 Qs

CodeHS APCSP Python

CodeHS APCSP Python

9th - 12th Grade

26 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?