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
|
What will be the output of the following Python code?
Solution |
2
Discuss
|
It is not possible for the two’s complement value to be equal to the original value in any case.
Solution |
3
Discuss
|
What is the average value of the following Python code snippet?
Solution |
4
Discuss
|
Which of the following operators has its associativity from right to left?
Solution |
5
Discuss
|
Which of the following results in a SyntaxError?
Solution |
6
Discuss
|
What is the output of this expression, 3*1**3?
Solution |
7
Discuss
|
What is the return type of function id?
Solution |
8
Discuss
|
The one’s complement of 110010101 is:
Solution |
9
Discuss
|
Evaluate the expression given below if A = 16 and B = 15.
Solution |
10
Discuss
|
The expression Int(x) implies that the variable x is converted to integer.
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved