CS1 - Unit 6

CS1 - Unit 6

Assessment

Flashcard

Computers

10th Grade

Practice Problem

Hard

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

32 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is a benefit of organizing code into functions?

Back

All of the above

2.

FLASHCARD QUESTION

Front

What order will the print statements run? Options: blue, red, green, blue, green, red, blue, red, green, blue, red

Media Image

Back

blue, red, green

3.

FLASHCARD QUESTION

Front

What will happen if we run the following program?

Media Image

Back

Nothing will print to the console

4.

FLASHCARD QUESTION

Front

Type the entire function signature: Options: def greeting(name):, def greeting(name)

Media Image

Back

def greeting(name):, def greeting(name)

5.

FLASHCARD QUESTION

Front

What are the arguments to the user-defined function? (List arguments in the order they appear, separate with commas and no spaces)

Media Image

Back

"#",5,"&",3

6.

FLASHCARD QUESTION

Front

What are the parameters in the following code snippet? (List parameters in the order they appear, separate with comma and no space)

Media Image

Back

symbol,num

7.

FLASHCARD QUESTION

Front

What should go on line 6 so that this function returns the total summed value?

Media Image

Back

return total

Access all questions and much more by creating a free account

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

Already have an account?