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
|
Which one of the following has the same precedence level?
Solution |
3
Discuss
|
The following is displayed by a print function call. Select all of the function calls that result in this output.
Solution |
4
Discuss
|
Evaluate the expression given below if A = 16 and B = 15.
Solution |
5
Discuss
|
The expression Int(x) implies that the variable x is converted to integer.
Solution |
6
Discuss
|
What error occurs when you execute the following Python code snippet?
Solution |
7
Discuss
|
What is the answer to this expression, 22 % 3 is?
Solution |
8
Discuss
|
Which of the following operators has its associativity from right to left?
Solution |
9
Discuss
|
Mathematical operations can be performed on a string.
Solution |
10
Discuss
|
Which of the following will run without errors?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved