What is the output of the following code: def my_function(fname, lname): print(lname + " " + fname) my_function("Coco", "Sheth")

untitled

Quiz
•
Education
•
University
•
Hard
R.SAMPAVI Dept
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
Similar Resources on Wayground
30 questions
TCM GOOD RECEIVING NOTE (GRN)

Quiz
•
1st Grade - University
30 questions
Trial CU4

Quiz
•
University
30 questions
NEW LITERACIES

Quiz
•
University
25 questions
EED 2 - Grade 1 Gade Level Standard Practice Quiz

Quiz
•
University
25 questions
NSTP 2-3

Quiz
•
University
25 questions
Vegetable Knowledge Quiz

Quiz
•
University
31 questions
ICT Test One

Quiz
•
University
26 questions
CURRICULO II FINAL 5S

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade