Which of the following expressions is an example of type conversion?
3 + 7
5.0 + 3
5.3 + 6.3
4.0 + float(3)
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
| # | Quiz |
|---|---|
|
1
Discuss
|
What will be the output of the following Python code?
Solution |
|
2
Discuss
|
Which among the following list of operators has the highest precedence?
Solution |
|
3
Discuss
|
Which of the following expressions involves coercion when evaluated in Python?
Solution |
|
4
Discuss
|
The expression 2**2**3 is evaluates as: (2**2)**3.
Solution |
|
5
Discuss
|
What will be the value of the following Python expression?
Solution |
|
6
Discuss
|
Which of the following expressions can be used to multiply a given number ‘a’ by 4?
Solution |
|
7
Discuss
|
What will be the output of the following Python code?
Solution |
|
8
Discuss
|
What is the value of the following Python expression?
Solution |
|
9
Discuss
|
What will be the output of the following Python code?
Solution |
|
10
Discuss
|
What will be the output of the following Python code if a=10 and b =20?
Solution |
| # | Quiz |
Copyright © 2020 Inovatik - All rights reserved