Quiz Discussion

What will be the output of the following Python expression?

0x35 | 0x75

 

Course Name: Python

  • 1]

    118

  • 2]

    117

  • 3]

    119

  • 4]

    116

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

Any odd number on being AND-ed with ________ always gives 1. Hint: Any even number on being AND-ed with this value always gives 0.

  • 1]

    10

  • 2]

    2

  • 3]

    1

  • 4]

    0

Solution
2
Discuss

What will be the output of the following Python expression?

int(1011)?

 

  • 1]

    1101

  • 2]

    13

  • 3]

    11

  • 4]

    1011

Solution
3
Discuss

What will be the output of the following Python code?

['f', 't'][bool('spam')]

 

  • 1]

    Error

  • 2]

    No output

  • 3]

    f

  • 4]

    t

Solution
4
Discuss

What is the value of the following Python expression?

bin(0x8)

 

  • 1]

    ‘0b1000’

  • 2]

    1000

  • 3]

    8

  • 4]

    ‘0bx1000’

Solution
5
Discuss

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

  • 1]

    3 + 7

  • 2]

    5.0 + 3

  • 3]

    5.3 + 6.3

  • 4]

    4.0 + float(3)

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

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

  • 1]

    True

  • 2]

    False

Solution
8
Discuss

Bitwise _________ gives 1 if either of the bits is 1 and 0 when both of the bits are 1.

  • 1]

    OR

  • 2]

    AND

  • 3]

    XOR

  • 4]

    NOT

Solution
9
Discuss

What will be the output of the following Python expression?

print(4.00/(2.0+2.0))

 

  • 1]

    1

  • 2]

    1.00

  • 3]

    1.0

  • 4]

    Error

Solution
10
Discuss

Which of the following expressions results in an error?

  • 1]

    int(‘1011’)

  • 2]

    int(1011,2)

  • 3]

    int(‘1011’,23)

  • 4]

    int(1011)

Solution
# Quiz