Quiz Discussion

Which of the following will run without errors?

Course Name: Python

  • 1]

    round(45.8)

  • 2]

    round(7463.123,2,1)

  • 3]

    round()

  • 4]

    round(6352.898,2,5)

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

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

Which of these in not a core data type?

  • 1]

    Lists

  • 2]

    Dictionary

  • 3]

    Tuples

  • 4]

    Class

Solution
3
Discuss

Which of the following operators has its associativity from right to left?

  • 1]

    +

  • 2]

    //

  • 3]

    %

  • 4]

    **

Solution
4
Discuss

What is the value of the following expression?

2+4.00, 2**4.0

 

  • 1]

    (6.0, 16.0)

  • 2]

    (6.00, 16.00)

  • 3]

    (6, 16)

  • 4]

    (6.00, 16.0)

Solution
5
Discuss

The one’s complement of 110010101 is:

  • 1]

    001101010

  • 2]

    110010100

  • 3]

    110010101

  • 4]

    001101011

Solution
6
Discuss

The expression Int(x) implies that the variable x is converted to integer.

  • 1]

    True

  • 2]

    False

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

In python we do not specify types, it is directly interpreted by the compiler, so consider the following operation to be performed.

>>>x = 13 ? 2

the objective is to make sure x has an integer value, select all that apply

  • 1]

    x = 13 // 2

  • 2]

    x = int(13 / 2)

  • 3]

    x = 13 % 2

  • 4]

    All of the mentioned

Solution
9
Discuss

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

  • 1]

    Exponential

  • 2]

    Addition

  • 3]

    Parentheses

  • 4]

    Multiplication

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