What are the values of the following Python expressions?
2**(3**2)
(2**3)**2
2**3**2
64, 512, 64
512, 512, 512
512, 64, 512
64, 64, 64
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
What is the return type of function id?
Solution |
2
Discuss
|
Given a function that does not return any value, What value is thrown by default when executed in shell.
Solution |
3
Discuss
|
Which one of the following has the highest precedence in the expression?
Solution |
4
Discuss
|
In python we do not specify types, it is directly interpreted by the compiler, so consider the following operation to be performed.
the objective is to make sure x has an integer value, select all that apply
Solution |
5
Discuss
|
The following is displayed by a print function call. Select all of the function calls that result in this output.
Solution |
6
Discuss
|
What is the value of the following expression?
Solution |
7
Discuss
|
Mathematical operations can be performed on a string.
Solution |
8
Discuss
|
The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same.
Solution |
9
Discuss
|
Which of the following results in a SyntaxError?
Solution |
10
Discuss
|
What will be the output of the following Python code?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved