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
x = 13 // 2
x = int(13 / 2)
x = 13 % 2
All of the mentioned
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
The expression Int(x) implies that the variable x is converted to integer.
Solution |
2
Discuss
|
In order to store values in terms of key and value we use what core data type.
Solution |
3
Discuss
|
What is the order of precedence in python? i) Parentheses |
4
Discuss
|
What will be the output of the following Python code snippet?
Solution |
5
Discuss
|
What is the value of the following expression?
Solution |
6
Discuss
|
What are the values of the following Python expressions?
Solution |
7
Discuss
|
It is not possible for the two’s complement value to be equal to the original value in any case.
Solution |
8
Discuss
|
What is the value of the following expression?
Solution |
9
Discuss
|
What is the answer to this expression, 22 % 3 is?
Solution |
10
Discuss
|
Which of the following will run without errors?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved