Quiz Discussion

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

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

 

Course Name: Python

  • 1]

    27.2

  • 2]

    28.4

  • 3]

    30.8

  • 4]

    30.0

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

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

  • 1]

    int(‘1111’,2)

  • 2]

    int(1111,2)

  • 3]

    int(‘1111’,10)

  • 4]

    int(1111,10)

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

What will be the value of the following Python expression?

4+2**5//10

 

  • 1]

    0

  • 2]

    77

  • 3]

    7

  • 4]

    3

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

What will be the output of the following Python expression?

4^12

 

  • 1]

    2

  • 2]

    4

  • 3]

    8

  • 4]

    12

Solution
6
Discuss

What will be the value of the following Python expression?

float(4+int(2.39)%2)

 

  • 1]

    4

  • 2]

    4.0

  • 3]

    5

  • 4]

    5.0

Solution
7
Discuss

What will be the value of the following Python expression?

 bin(10-2)+bin(12^4)

 

  • 1]

    0b10000b1000

  • 2]

    0b1000b1000

  • 3]

    0b10001000

  • 4]

    0b10000

Solution
8
Discuss

What is the two’s complement of -44?

  • 1]

    10110011

  • 2]

    11101011

  • 3]

    11010100

  • 4]

    1011011

Solution
9
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
10
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
# Quiz