What is the average value of the following Python code snippet?
>>>grade1 = 80
>>>grade2 = 90
>>>average = (grade1 + grade2) / 2
85.0
85.1
95.0
95.1
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
Operators with the same precedence are evaluated in which manner?
Solution |
2
Discuss
|
What will be the output of the following Python code snippet?
Solution |
3
Discuss
|
It is not possible for the two’s complement value to be equal to the original value in any case.
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
|
What are the values of the following Python expressions?
Solution |
6
Discuss
|
What is the value of the following expression?
Solution |
7
Discuss
|
In order to store values in terms of key and value we use what core data type.
Solution |
8
Discuss
|
What is the value of the following expression?
Solution |
9
Discuss
|
What is the return type of function id?
Solution |
10
Discuss
|
Which of the following operators has its associativity from right to left?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved