Lesson 3 Recap

Lesson 3 Recap

University

6 Qs

quiz-placeholder

Similar activities

DevNet Express

DevNet Express

10th Grade - Professional Development

11 Qs

Scientific Computing with Python-Basics

Scientific Computing with Python-Basics

University

10 Qs

Basic python

Basic python

University

10 Qs

PP Quiz1

PP Quiz1

University

11 Qs

Python Quiz 1 : Python Basics

Python Quiz 1 : Python Basics

University

10 Qs

Functions and Modules

Functions and Modules

University

10 Qs

python cseB

python cseB

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

Discover more resources for Computers