Which of the following is not non-primitive data type?

SAFE - Python Workshop

Quiz
•

bubu babu
•
Other
•
University
•
1 plays
•
Medium
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
List
Tuple
Dictionary
String
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the output of the following code snippet?
x = 5
y = 10
if x < y:
print("x is less than y")
elif x == y:
print("x is equal to y")
else:
print("x is greater than y")
x is less than y
x is equal to y
x is greater than y
Error: Invalid syntax
3.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
How many times will the following for loop iterate?
for i in range(3, 6):
print(i)
2
5
4
3
4.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What does the "break" statement do in a loop?
Terminates the loop and transfers control to the next iteration
Continues to the next iteration of the loop
Exits the entire program
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Which of the following is the correct syntax to define a function in Python?
def my_function():
function my_function():
define my_function():
function def my_function():
6.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What will be the output of the following function call?
def square(x):
return x * x
result = square(3) + square(4)
print(result)
12
21
49
25
7.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What is the output of the following code snippet?
x = 10
while x > 0:
print(x)
x -= 2
10 8 6 4 2
10 9 8 7 6 5 4 3 2 1
10 7 4 1
Infinite loop
Explore all questions with a free account
Similar Resources on Quizizz
10 questions
PYTHON set4

Quiz
•
University
12 questions
Brainy Bites: Python

Quiz
•
University
15 questions
Quiz-4: Function & Array

Quiz
•
University
10 questions
Array

Quiz
•
University
10 questions
Arduino ELESA

Quiz
•
University
15 questions
Arduin-KNOW Recap

Quiz
•
University
10 questions
ARCH ORG

Quiz
•
University
10 questions
Java set 1

Quiz
•
University
Popular Resources on Quizizz
39 questions
Respect and How to Show It

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
Discover more resources for Other
20 questions
Summer

Quiz
•
KG - University
19 questions
Minecraft

Quiz
•
6th Grade - Professio...
20 questions
3rd Grade Review

Quiz
•
KG - University
15 questions
Minecraft

Quiz
•
University
52 questions
Logos Trivia

Quiz
•
KG - University
7 questions
New national park celebrates Harriet Tubman's legacy

Interactive video
•
11th Grade - University
8 questions
2 Step Word Problems

Quiz
•
KG - University
20 questions
Disney characters

Quiz
•
KG - Professional Dev...