Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
What is the output of the following code?
a = 2 b = 5 print(a * b ** 2)
50
35
20
10
a = 10 b = 3 print(a % b)
1
3
0
x = 5 y = 2 print(x / y)
2.5
2
2.25
**
^
%
//
What is the output of the following code snippet?
a = 2 b = 3 print(a**b)
6
8
9
27
a = 5 b = 2 print(a // b)
3.5
/
a = 2 b = 3 print(a ** b)
5
a = 5 b = 2 print(a//b)
a = 5 b = 2 print(a % b)
0.5