Question 11
EasyWhat is the output of this program?
print(2 ** 3 ** 2)
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Programming Languages
What is the output of this program?
print(2 ** 3 ** 2)
64
12
36
512
Sign up free to see the answer and a step-by-step explanation.
What is the output of this program?
print("5" + "5")
5 5
Error
55
10
Sign up free to see the answer and a step-by-step explanation.
What is the output of this program?
print(int("5") + 5)
55
5
Error
10
Sign up free to see the answer and a step-by-step explanation.
What is the output of this program?
print([1, 2, 3] * 2)
[2, 4, 6]
Error
[1, 2, 3, 2]
[1, 2, 3, 1, 2, 3]
Sign up free to see the answer and a step-by-step explanation.
What is the output of this program?
print(len({"a": 1, "b": 2}))
2
4
Sign up free to see the answer and a step-by-step explanation.
What is the output of this program?
print(list(range(2, 10, 3)))
[2, 5, 8, 11]
[2, 3, 4]
Sign up free to see the answer and a step-by-step explanation.
What is the output of this program?
t = (1, 2, 3)
print(t[-1])
3
Error
1
-1
Sign up free to see the answer and a step-by-step explanation.
What is the output of this program?
print(bool(""), bool("0"))
True False
True True
False True
False False
Sign up free to see the answer and a step-by-step explanation.
What is the output of this program?
print([i * i for i in range(4)])
[1, 4, 9, 16]
[0, 1, 4, 9]
[0, 2, 4, 6]
[0, 1, 2, 3]
Sign up free to see the answer and a step-by-step explanation.
What is the output of this program?
print("hello".find("l"))
3
2
1
-1
Sign up free to see the answer and a step-by-step explanation.
Error
1
[2, 5, 8]
[3, 6, 9]