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 answer to this expression, 22 % 3 is?
Solution |
2
Discuss
|
What error occurs when you execute the following Python code snippet?
Solution |
3
Discuss
|
What is the value of the following expression?
Solution |
4
Discuss
|
What will be the value of x in the following Python expression?
Solution |
5
Discuss
|
What data type is the object below?
Solution |
6
Discuss
|
What will be the value of the following Python expression?
Solution |
7
Discuss
|
Which of the following operators has its associativity from right to left?
Solution |
8
Discuss
|
What is the order of precedence in python? i) Parentheses |
9
Discuss
|
Which of the following is the truncation division operator?
Solution |
10
Discuss
|
Which of the following results in a SyntaxError?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved