What will be the output of the following Python code snippet?
def example(a):
a = a + '2'
a = a*2
return a
>>>example("hello")
indentation Error
cannot perform mathematical operation on strings
hello2
hello2hello2
Quiz Recommendation System API Link  https://fresherbellquizapi.herokuapp.com/fresherbell_quiz_api
#  Quiz 

1
Discuss

Which is the correct operator for power(x^{y})?
Solution 
2
Discuss

In order to store values in terms of key and value we use what core data type.
Solution 
3
Discuss

Mathematical operations can be performed on a string.
Solution 
4
Discuss

The expression Int(x) implies that the variable x is converted to integer.
Solution 
5
Discuss

Evaluate the expression given below if A = 16 and B = 15.
Solution 
6
Discuss

What will be the value of the following Python expression?
Solution 
7
Discuss

What is the value of the following expression?
Solution 
8
Discuss

The one’s complement of 110010101 is:
Solution 
9
Discuss

What is the answer to this expression, 22 % 3 is?
Solution 
10
Discuss

Which one of the following has the same precedence level?
Solution 
#  Quiz 
Copyright © 2020 Inovatik  All rights reserved