What will be the output of the following Python code?
>>>str="hello"
>>>str[:2]
>>>
he
olleh
lo
hello
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
In order to store values in terms of key and value we use what core data type.
Solution |
2
Discuss
|
What is the value of the following expression?
Solution |
3
Discuss
|
Operators with the same precedence are evaluated in which manner?
Solution |
4
Discuss
|
Which one of these is floor division?
Solution |
5
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 |
6
Discuss
|
What is the output of this expression, 3*1**3?
Solution |
7
Discuss
|
What error occurs when you execute the following Python code snippet?
Solution |
8
Discuss
|
Which one of the following has the highest precedence in the expression?
Solution |
9
Discuss
|
What is the return type of function id?
Solution |
10
Discuss
|
What is the average value of the following Python code snippet?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved