Quiz Discussion

Mathematical operations can be performed on a string.

Course Name: Python

  • 1]

    True

  • 2]

    False

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 one of these is floor division?

  • 1]

    /

  • 2]

    %

  • 3]

    //

  • 4]

    None of the mentioned

Solution
2
Discuss

What is the return type of function id?

  • 1]

    int

  • 2]

    float

  • 3]

    dict

  • 4]

    bool

Solution
3
Discuss

 Evaluate the expression given below if A = 16 and B = 15.

A % B // A

 

  • 1]
    0.0
  • 2]

    0

  • 3]

    1.0

  • 4]

    1

Solution
4
Discuss

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

  • 1]

    Exponential

  • 2]

    Addition

  • 3]

    Parentheses

  • 4]

    Multiplication

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

What are the values of the following Python expressions?

 2**(3**2)
 (2**3)**2
 2**3**2

 

  • 1]

    64, 512, 64

  • 2]

    512, 512, 512

  • 3]

    512, 64, 512

  • 4]

    64, 64, 64

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

Which of these in not a core data type?

  • 1]

    Lists

  • 2]

    Dictionary

  • 3]

    Tuples

  • 4]

    Class

Solution
9
Discuss

What is the return value of trunc()?

  • 1]

    int

  • 2]

    bool

  • 3]

    float

  • 4]

    None

Solution
10
Discuss

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

  • 1]

    True

  • 2]

    False

Solution
# Quiz