PYTHON FUNCTION

PYTHON FUNCTION

University

20 Qs

quiz-placeholder

Similar activities

Micro Arch - CPUs & Fetch-Execute

Micro Arch - CPUs & Fetch-Execute

University

20 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

Pra UPS 2

Pra UPS 2

University

20 Qs

STM 2013 : FORMATIF T3-FORM & REPORT

STM 2013 : FORMATIF T3-FORM & REPORT

University

20 Qs

IGH Test de Entrada

IGH Test de Entrada

University

20 Qs

Relational Algebra and Calculus

Relational Algebra and Calculus

University

20 Qs

Artificial Intelligence CT-1

Artificial Intelligence CT-1

University

20 Qs

Computational Thinking in Python[Quiz 3]

Computational Thinking in Python[Quiz 3]

University

15 Qs

PYTHON FUNCTION

PYTHON FUNCTION

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Darwin Vargas

Used 12+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to define a function in Python?

function myFunction():

def myFunction:

def myFunction():

define myFunction():

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

Hello, World!

Error

my_function

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to call a function named myFunction?

call myFunction()

myFunction()

myFunction(call)

call myFunction

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following code output?

2

3

5

error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you return multiple values from a function?

By separating them with a comma

By using a list

By using a dictionary

All of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

8

12

16

error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following code output?

5

10

15

error

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?

Discover more resources for Computers