
untitled
Quiz
•
Education
•
University
•
Practice Problem
•
Hard
R.SAMPAVI Dept
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code: def my_function(fname, lname): print(lname + " " + fname) my_function("Coco", "Sheth")
Coco Sheth
Sheth Coco
CocoSheth
ShethCoco
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the correct output for: def my_function(food): for x in food: print(x) fruits = ["apple", "banana", "cherry"] my_function(fruits)
banana apple cherry
apple banana cherry
banana cherry apple
cherry apple banana
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be in the blank space to print the second item: fruits = ["apple", "banana", "cherry"] print(______)
fruits[1]
fruits[3]
fruits[2]
fruits[0]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What do we use to remove banana from the list: lsi = ["apple", "banana", "cherry"]
lsi.delete("banana")
lsi.remove["banana"]
lsi.delete["banana"]
lsi.remove("banana")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Use the correct syntax to print the number of items in the fruits tuple. fruits = ("apple", "banana", "cherry")
print(length(fruits))
print(len(fruits))
print(len(tuple(fruits)))
print(totallength(fruits))
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Use negative indexing to print the last item in the tuple. fruits = ("apple", "banana", "cherry") print(fruits[___])
0
-1
-2
-3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can we print the value of the "model" key of the car dictionary. car = { "brand": "Ford", "model": "Mustang", "year": 1964 }
print(car.get["model"])
car.get("model")
print(car.get("model"))
print(car("model"))
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
25 questions
UTS Persiapan TOEFL - 03
Quiz
•
University
25 questions
Educ 3: Midterm Examination (BEED & BSIED-2nd year)
Quiz
•
University
25 questions
6th Theme quiz
Quiz
•
6th Grade - University
25 questions
FIREPLACE TERMINOLOGY
Quiz
•
9th Grade - University
25 questions
Stress-strain
Quiz
•
University
28 questions
Sustainability
Quiz
•
University
25 questions
Dharma Day 2
Quiz
•
10th Grade - University
25 questions
Ketiga tahun di universitas
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Education
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
