Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
What is the output of the following code?
x = 5 y = 2 print(x > y)
1
0
Error
None of the above
What is the output of the following code snippet?
a = 10 b = 5 print(a>b and a/b==2)
Syntax Error
a = 2 b = 3 print(a ** b)
5
6
8
9
a = 10 b = 3 print(a // b)
3.33
3
10
x = 5 y = 2 print(x // y)
2.5
2
x = 5 y = 2 print(x / y)
2.25
a = 5 b = 2 print(a % b)
0.5
**
^
*
//
a = 3 b = 3 print(a is b)
a = 5 b = 2 print(a%b)
1.5