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 data type is the object below?
Solution |
2
Discuss
|
What is the order of precedence in python? i) Parentheses |
3
Discuss
|
What is the return value of trunc()?
Solution |
4
Discuss
|
The one’s complement of 110010101 is:
Solution |
5
Discuss
|
Which one of the following has the same precedence level?
Solution |
6
Discuss
|
What is the return type of function id?
Solution |
7
Discuss
|
The following is displayed by a print function call. Select all of the function calls that result in this output.
Solution |
8
Discuss
|
Which of these in not a core data type?
Solution |
9
Discuss
|
What is the value of the following expression?
Solution |
10
Discuss
|
Which of the following operators has its associativity from right to left?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved