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
|
What is the value of the following expression?
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 return value of trunc()?
Solution |
4
Discuss
|
Which of the following is the truncation division operator?
Solution |
5
Discuss
|
Given a function that does not return any value, What value is thrown by default when executed in shell.
Solution |
6
Discuss
|
Mathematical operations can be performed on a string.
Solution |
7
Discuss
|
Which one of these is floor division?
Solution |
8
Discuss
|
What is the output of this expression, 3*1**3?
Solution |
9
Discuss
|
What error occurs when you execute the following Python code snippet?
Solution |
10
Discuss
|
What will be the value of x in the following Python expression?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved