
Tuples 8

Quiz
•
Other
•
12th Grade
•
Hard
Amy Austin
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to print the first item in the fruits tuple?
print(fruits.first)
print(fruits[1])
print(first(fruits))
print(fruits[0])
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to add an item to a set in Python?
.push()
.insert()
.add()
.append()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you start writing a for loop in Python?
for i in range(5):
for(i=0; i<5; i++)
for i < 5:
foreach i in range(5):
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to get user input in Python?
getUserInput()
readLine()
input()
scanf()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable with the numeric value 5?
x = 5
x = int(5)
int x = 5
x := 5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to create a new list?
<>
[]
{}
()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you insert 'tomato' at the beginning of a list named 'fruits'?
fruits.insert(1, 'tomato')
fruits.add('tomato')
fruits.insert(0, 'tomato')
fruits.append('tomato', 0)
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
MyPlate Information

Quiz
•
9th - 12th Grade
13 questions
Fingerprints

Quiz
•
12th Grade
10 questions
Foods around the world

Quiz
•
KG - University
15 questions
Extreme Mexican Street Food Quiz

Quiz
•
12th Grade
10 questions
Do You Know Your Hetalia Characters?

Quiz
•
KG - University
12 questions
Discussion Boards

Quiz
•
KG - Professional Dev...
10 questions
Arduino Basics

Quiz
•
12th Grade
13 questions
Python Fundamentals and Programming

Quiz
•
11th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade
25 questions
ServSafe Foodhandler Part 3 Quiz

Quiz
•
9th - 12th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie

Quiz
•
5th - 12th Grade
20 questions
Macromolecules

Quiz
•
9th - 12th Grade