Quiz 4

Quiz 4

University

10 Qs

quiz-placeholder

Similar activities

Mobile Programming - POCC

Mobile Programming - POCC

University

15 Qs

HCI GOMS quiz

HCI GOMS quiz

University

15 Qs

ViewSonic LCD Training

ViewSonic LCD Training

12th Grade - University

15 Qs

komputasi awan

komputasi awan

University

15 Qs

İstifadəçi interfeysi

İstifadəçi interfeysi

University

15 Qs

Quiz 1 Normalisasi

Quiz 1 Normalisasi

University

10 Qs

QUIZ KEJAHATAN DUNIA MAYA

QUIZ KEJAHATAN DUNIA MAYA

University

12 Qs

Los 10 escalones

Los 10 escalones

University

10 Qs

Quiz 4

Quiz 4

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Hard

Created by

Wai Li

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 mins • 1 pt

Which keyword is used to define a function in Python?

func
function
def
define

2.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

What is the correct way to call this function?

def greet():

print("Hello!")

call greet()
greet()
print greet()
def greet()

3.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

What does the return keyword do in a function?

It exits the program
It prints a value
It sends a value back to the caller
It pauses the function

4.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

Media Image

23
5
a + b
Error

5.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

Media Image

test
Done
None
Error

6.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

Which of the following statements about function parameters is correct?

Functions never need parameters
Parameters are values returned by a function
Parameters allow functions to receive input values
Parameters are only used with the print() function

7.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

Which of the following is a parameter in this function definition? def double(x): return x * 2

def
double
x
None

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?