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
|
The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same.
Solution |
2
Discuss
|
Mathematical operations can be performed on a string.
Solution |
3
Discuss
|
What will be the output of the following Python code snippet?
Solution |
4
Discuss
|
What is the average value of the following Python code snippet?
Solution |
5
Discuss
|
Operators with the same precedence are evaluated in which manner?
Solution |
6
Discuss
|
The following is displayed by a print function call. Select all of the function calls that result in this output.
Solution |
7
Discuss
|
Which of the following operators has its associativity from right to left?
Solution |
8
Discuss
|
What is the return value of trunc()?
Solution |
9
Discuss
|
Which of the following results in a SyntaxError?
Solution |
10
Discuss
|
The expression Int(x) implies that the variable x is converted to integer.
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved