Quiz Discussion

What is the answer to this expression, 22 % 3 is?

Course Name: Python

  • 1]

    8

  • 2]

    1

  • 3]

    0

  • 4]

    2

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

The following is displayed by a print function call. Select all of the function calls that result in this output.

tom
dick
harry

 

  • 1]

    print(”’tomdickharry”’)

  • 2]
    print('''tom
    \ndick
    \nharry''')
  • 3]
    print('tom
    dick
    harry')
  • 4]

    print(‘tom\ndick\nharry’)

Solution
2
Discuss

Which one of the following has the highest precedence in the expression?

  • 1]

    Exponential

  • 2]

    Addition

  • 3]

    Parentheses

  • 4]

    Multiplication

Solution
3
Discuss

Which of these in not a core data type?

  • 1]

    Lists

  • 2]

    Dictionary

  • 3]

    Tuples

  • 4]

    Class

Solution
4
Discuss

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

  • 1]

    23

  • 2]

    13

  • 3]

    1

  • 4]

    3

Solution
5
Discuss

The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same.

  • 1]

    True

  • 2]

    False

Solution
6
Discuss

Which of the following will run without errors?

  • 1]

    round(45.8)

  • 2]

    round(7463.123,2,1)

  • 3]

    round()

  • 4]

    round(6352.898,2,5)

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

What will be the output of the following Python code?

>>>str="hello"
>>>str[:2]
>>>

 

  • 1]

    he

  • 2]

    olleh

  • 3]

    lo

  • 4]

    hello

Solution
9
Discuss

What is the return value of trunc()?

  • 1]

    int

  • 2]

    bool

  • 3]

    float

  • 4]

    None

Solution
10
Discuss

What is the order of precedence in python?

i) Parentheses
ii) Exponential
iii) Multiplication
iv) Division
v) Addition
vi) Subtraction

  • 1]

    i,ii,iii,iv,v,vi

  • 2]

    ii,i,iii,iv,v,vi

  • 3]

    ii,i,iv,iii,v,vi

  • 4]

    i,ii,iii,iv,vi,v

Solution
# Quiz