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
|
Evaluate the expression given below if A = 16 and B = 15.
Solution |
2
Discuss
|
What will be the value of x in the following Python expression?
Solution |
3
Discuss
|
Which one of the following has the same precedence level?
Solution |
4
Discuss
|
What is the output of this expression, 3*1**3?
Solution |
5
Discuss
|
What will be the output of the following Python code snippet?
Solution |
6
Discuss
|
Which of the following is the truncation division operator?
Solution |
7
Discuss
|
Which of the following operators has its associativity from right to left?
Solution |
8
Discuss
|
In order to store values in terms of key and value we use what core data type.
Solution |
9
Discuss
|
Which of these in not a core data type?
Solution |
10
Discuss
|
What is the order of precedence in python? i) Parentheses |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved