Quiz Discussion

To find the decimal value of 1111, that is 15, we can use the function:

Course Name: Python

  • 1]

    int(‘1111’,2)

  • 2]

    int(1111,2)

  • 3]

    int(‘1111’,10)

  • 4]

    int(1111,10)

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

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
2
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
3
Discuss

What is the two’s complement of -44?

  • 1]

    10110011

  • 2]

    11101011

  • 3]

    11010100

  • 4]

    1011011

Solution
4
Discuss

What will be the output of the following Python expression?

4^12

 

  • 1]

    2

  • 2]

    4

  • 3]

    8

  • 4]

    12

Solution
5
Discuss

What will be the output of the following Python expression?

bin(29)

 

  • 1]

    ‘0b11011’

  • 2]

    ‘0b11111’

  • 3]

    ‘0b11101’

  • 4]

    ‘0b10111’

Solution
6
Discuss

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

bool(‘False’)
bool()

 

  • 1]
    True
    True
  • 2]

    False
    True

  • 3]

    True
    False

  • 4]

    False
    False

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

What will be the output of the following Python expression?

int(1011)?

 

  • 1]

    1101

  • 2]

    13

  • 3]

    11

  • 4]

    1011

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

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

  • 1]

    True

  • 2]

    False

Solution
# Quiz