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
|
Mathematical operations can be performed on a string.
Solution |
2
Discuss
|
Which one of the following has the same precedence level?
Solution |
3
Discuss
|
What is the value of the following expression?
Solution |
4
Discuss
|
Which of the following will run without errors?
Solution |
5
Discuss
|
What is the value of the following expression?
Solution |
6
Discuss
|
What is the order of precedence in python? i) Parentheses |
7
Discuss
|
Which one of these is floor division?
Solution |
8
Discuss
|
Operators with the same precedence are evaluated in which manner?
Solution |
9
Discuss
|
Evaluate the expression given below if A = 16 and B = 15.
Solution |
10
Discuss
|
It is not possible for the two’s complement value to be equal to the original value in any case.
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved