Python Functions

Python Functions

2nd Grade - University

17 Qs

quiz-placeholder

Similar activities

AP Psychology Unit 9: Biological Bases of Behavior

AP Psychology Unit 9: Biological Bases of Behavior

10th Grade - University

20 Qs

respirasi

respirasi

5th - 7th Grade

18 Qs

Earth Motions and the Seasons

Earth Motions and the Seasons

8th - 9th Grade

14 Qs

ciencias naturales

ciencias naturales

4th Grade

15 Qs

STAAR Party!!!

STAAR Party!!!

6th - 8th Grade

13 Qs

Spring Semester Final (Review)

Spring Semester Final (Review)

7th - 8th Grade

20 Qs

Important Earth Science Skills Review

Important Earth Science Skills Review

9th Grade

15 Qs

6th Grade Review Guide Part 3

6th Grade Review Guide Part 3

KG - University

13 Qs

Python Functions

Python Functions

Assessment

Quiz

Other Sciences

2nd Grade - University

Practice Problem

Medium

Created by

Charles Martinez

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

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

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output
def greeting(name):
      print ('hello ' + name)
print (greeting('Daddy'))
answer

name
Daddy 
hello Daddy
hello name

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output
def adder(x, y):
      print x + y
print (adder(1, 2))
answer

y + x
x + y
3
4

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output
def adder(x, y):
      print x + y
print (adder("1","2"))
answer

y + x
12
3
4

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output
x = 67
if x != 67:
     print "x is not equal to 67"
else:
      print 'x is equal to 67'
answer

x is not equal to 67
x is equal to 67
print "x is equal to 67"
print 'x is not equal to 67'

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output
def hello():
     print ('hello')
def start():
     print("start")
start()
   

l = lambda x: 'hello'
l = lambda x: hello
hello
start

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output?
x = "This is a string"
def hello():
     x = "hello"
     print x
print hello()

x in hello and x out side hello

hello
"hello" and "This is a string"
"This is a string" and "Hello"
hello and this This is a string

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output
x = 'asa '
print x*3
answer

asa asa asa 3
3 asa asa asa 
None of the above
asa asa asa

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?