Quiz Discussion

The one’s complement of 110010101 is:

Course Name: Python

  • 1]

    001101010

  • 2]

    110010100

  • 3]

    110010101

  • 4]

    001101011

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 operators has its associativity from right to left?

  • 1]

    +

  • 2]

    //

  • 3]

    %

  • 4]

    **

Solution
2
Discuss

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

def example(a):
    a = a + '2'
     a = a*2
    return a
>>>example("hello")

 

  • 1]

    indentation Error

  • 2]

    cannot perform mathematical operation on strings

  • 3]

    hello2

  • 4]

    hello2hello2

Solution
3
Discuss

Which of the following is the truncation division operator?

  • 1]

    /

  • 2]

    %

  • 3]

    //

  • 4]

    |

Solution
4
Discuss

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

x = int(43.55+2/2)

 

  • 1]

    43

  • 2]

    44

  • 3]

    22

  • 4]

    23

Solution
5
Discuss

What data type is the object below?

L = [1, 23, 'hello', 1]

 

  • 1]

    list

  • 2]

    dictionary

  • 3]

    array

  • 4]

    tuple

Solution
6
Discuss

It is not possible for the two’s complement value to be equal to the original value in any case.

  • 1]

    True

  • 2]

    False

Solution
7
Discuss

What error occurs when you execute the following Python code snippet?

apple = mango

 

  • 1]

    SyntaxError

  • 2]

    NameError

  • 3]

    ValueError

  • 4]

    TypeError

Solution
8
Discuss

What is the output of this expression, 3*1**3?

  • 1]

    23

  • 2]

    13

  • 3]

    1

  • 4]

    3

Solution
9
Discuss

What is the value of the following expression?

float(22//3+3/3)

 

  • 1]

    8

  • 2]

    8.0

  • 3]

    8.3

  • 4]

    8.33

Solution
10
Discuss

Which one of the following has the same precedence level?

  • 1]

    Addition and Subtraction

  • 2]

    Multiplication, Division and Addition

  • 3]

    Multiplication, Division, Addition and Subtraction

  • 4]

    Addition and Multiplication

Solution
# Quiz