What will be the output of the following code snippet?
print(2**3 + (5 + 6)**(1 + 1))
Python Basics
Quiz
•
Computers
•
University
•
Medium
Jyothi Goddu
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
print(2**3 + (5 + 6)**(1 + 1))
121
127
129
None
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
print(type(5 / 2)) print(type(5 // 2))
int and int
int and float
float and int
float and float
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
All keywords in Python are in
Capitalized
UPPER CASE
lower case
None of the mentioned
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the order of precedence in python?
Exponential, Parentheses, Multiplication, Division, Addition, Subtraction
Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
Exponential, Parentheses, Division, Multiplication, Addition, Subtraction
Parentheses, Exponential, Multiplication, Division, Subtraction, Addition
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the values of the following Python expressions?
2**(3**2) (2**3)**2 2**3**2
512, 64, 512
64, 64, 64
512, 512, 512
64, 512, 64
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following is not a keyword in Python language?
pass
eval
assert
nonlocal
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What arithmetic operators cannot be used with strings in Python?
+
-
*
None of the above
10 questions
Python Quiz 1 : Python Basics
Quiz
•
University
13 questions
C programming-1
Quiz
•
University
12 questions
Array
Quiz
•
University
10 questions
Python Basics
Quiz
•
University
15 questions
Python Basics
Quiz
•
KG - University
10 questions
Bahasa Pemrograman Python
Quiz
•
University
11 questions
Kuizi 1 - Python
Quiz
•
10th Grade - University
10 questions
2021_DASPRO_PERTEMUAN2
Quiz
•
University
15 questions
Multiplication Facts
Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz
Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
15 questions
June Review Quiz
Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles
Quiz
•
8th Grade
25 questions
Triangle Inequalities
Quiz
•
10th - 12th Grade