Quiz Discussion

Which of the following is the truncation division operator?

Course Name: Python

  • 1]

    /

  • 2]

    %

  • 3]

    //

  • 4]

    |

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

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

Mathematical operations can be performed on a string.

  • 1]

    True

  • 2]

    False

Solution
5
Discuss

What is the value of the following expression?

8/4/2, 8/(4/2)

 

  • 1]

    (1.0, 4.0)

  • 2]

    (1.0, 1.0)

  • 3]

    (4.0. 1.0)

  • 4]

    (4.0, 4.0)

Solution
6
Discuss

What is the return value of trunc()?

  • 1]

    int

  • 2]

    bool

  • 3]

    float

  • 4]

    None

Solution
7
Discuss

Which is the correct operator for power(xy)?

  • 1]

    X^y

  • 2]

    X**y

  • 3]

    X^^y

  • 4]

    None of the mentioned

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

In order to store values in terms of key and value we use what core data type.

  • 1]

    tuple

  • 2]

    list

  • 3]

    class

  • 4]

    dictionary

Solution
10
Discuss

Which of the following results in a SyntaxError?

  • 1]

     ‘”Once upon a time…”, she said.’

  • 2]

    “He said, ‘Yes!'”

  • 3]

    ‘3\’

  • 4]

     ”’That’s okay”’

Solution
# Quiz