Lesson 3 Recap

Lesson 3 Recap

University

6 Qs

quiz-placeholder

Similar activities

Python Unit 3

Python Unit 3

University

10 Qs

JavaScript Fundamentals

JavaScript Fundamentals

9th Grade - Professional Development

10 Qs

Python Turtle

Python Turtle

KG - Professional Development

11 Qs

Q8 - FundComp - Python Básico (En)

Q8 - FundComp - Python Básico (En)

University

10 Qs

Python Programming Quiz

Python Programming Quiz

University

10 Qs

Functions and Modules

Functions and Modules

University

10 Qs

Functions in Python

Functions in Python

University

10 Qs

kuis PAB1

kuis PAB1

University

10 Qs

Lesson 3 Recap

Lesson 3 Recap

Assessment

Quiz

Computers

University

Medium

Created by

P zet

Used 1+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to define a function in Python?

def

define

function

class

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is not a valid Python variable name?

my_var

myVar

my-var

myvar

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of the following code: 5 < 3 or 2 > 1?

True

False

SyntaxError

TypeError

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of the following code: for i in range(5): print(i)?

1, 2, 3, 4, 5

TypeError

0, 1, 2, 3, 4

0, 1, 2, 3, 4, 5

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of the following code:

x = 5

y = 3

print(x % y)

?

1

1.67

2

TypeError

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to return data from a function in python?

return

pass

data

def