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
|
What is the return value of trunc()?
Solution |
2
Discuss
|
What will be the value of the following Python expression?
Solution |
3
Discuss
|
What data type is the object below?
Solution |
4
Discuss
|
What will be the output of the following Python code snippet?
Solution |
5
Discuss
|
Which one of the following has the same precedence level?
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
|
What is the return type of function id?
Solution |
9
Discuss
|
Given a function that does not return any value, What value is thrown by default when executed in shell.
Solution |
10
Discuss
|
Which of the following is the truncation division operator?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved