Quiz Discussion

The expression 2**2**3 is evaluates as: (2**2)**3.

Course Name: Python

  • 1]

    True

  • 2]

    False

Solution
No Solution Present Yet

Top 5 Similar Quiz - Based On AI&ML

Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api

# Quiz
1
Discuss

What will be the output of the following Python expression?

24//6%3, 24//4//2

 

  • 1]

    (3,1)

  • 2]

    (1,0)

  • 3]

    (0,3)

  • 4]

    (1,3)

Solution
2
Discuss

Which of the following expressions involves coercion when evaluated in Python?

  • 1]

    3.4 + 4.6

  • 2]

    1.7 % 2

  • 3]

    7.9 * 6.3

  • 4]

    4.7 – 1.5

Solution
3
Discuss

What will be the value of X in the following Python expression?

X = 2+9*((3*12)-8)/10

 

  • 1]

    27.2

  • 2]

    28.4

  • 3]

    30.8

  • 4]

    30.0

Solution
4
Discuss

What will be the value of x in the following Python expression, if the result of that expression is 2?

x>>2

 

  • 1]

    1

  • 2]

    2

  • 3]

    4

  • 4]

    8

Solution
5
Discuss

What will be the output of the following Python code?

class Truth:
	pass
x=Truth()
bool(x)

 

  • 1]

    error

  • 2]

    false

  • 3]

    true

  • 4]

    pass

Solution
6
Discuss

What will be the output of the following Python expression?

int(1011)?

 

  • 1]

    1101

  • 2]

    13

  • 3]

    11

  • 4]

    1011

Solution
7
Discuss

What will be the output of the following Python code if a=10 and b =20?

a=10
b=20
a=a^b
b=a^b
a=a^b
print(a,b)

 

  • 1]

    20 20

  • 2]

    20 10

  • 3]

    10 10

  • 4]

    10 20

Solution
8
Discuss

Which of the following represents the bitwise XOR operator?

  • 1]

    !

  • 2]

    |

  • 3]

    ^

  • 4]

    &

Solution
9
Discuss

Which of the following expressions can be used to multiply a given number ‘a’ by 4?

  • 1]

    a>>4

  • 2]

    a>>2

  • 3]

    a<<4

  • 4]

    a<<2

Solution
10
Discuss

What will be the output of the following Python code snippet?

not(3>4)
not(1&1)

 

  • 1]
    True
    True
  • 2]
    True
    False
  • 3]
    False
    True
  • 4]
    False
    False
Solution
# Quiz