Quiz Discussion

Which of the following expressions is an example of type conversion?

Course Name: Python

  • 1]

    3 + 7

  • 2]

    5.0 + 3

  • 3]

    5.3 + 6.3

  • 4]

    4.0 + float(3)

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 code snippet?

not(10<20) and not(10>30)

 

  • 1]

    Error

  • 2]

    No output

  • 3]

    True

  • 4]

    False

Solution
2
Discuss

What will be the output of the following Python expression if x=15 and y=12?

x & y

 

  • 1]

    1101

  • 2]

    12

  • 3]

    0b1101

  • 4]

    b1101

Solution
3
Discuss

What is the value of the following Python expression?

bin(0x8)

 

  • 1]

    ‘0b1000’

  • 2]

    1000

  • 3]

    8

  • 4]

    ‘0bx1000’

Solution
4
Discuss

Which of the following represents the bitwise XOR operator?

  • 1]

    !

  • 2]

    |

  • 3]

    ^

  • 4]

    &

Solution
5
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
6
Discuss

What is the two’s complement of -44?

  • 1]

    10110011

  • 2]

    11101011

  • 3]

    11010100

  • 4]

    1011011

Solution
7
Discuss

What will be the output of the following Python expression?

~100?

 

  • 1]

    -100

  • 2]

    100

  • 3]

    -101

  • 4]

    101

Solution
8
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
9
Discuss

What will be the value of the following Python expression?

4+2**5//10

 

  • 1]

    0

  • 2]

    77

  • 3]

    7

  • 4]

    3

Solution
10
Discuss

What will be the output of the following Python expression?

0x35 | 0x75

 

  • 1]

    118

  • 2]

    117

  • 3]

    119

  • 4]

    116

Solution
# Quiz