11.
Which of the following expressions results in an error?
(a) float(’12’)
(b) int(’12’)
(c) float(‘12.5’)
(d) int(‘12.5’)
12.
Which of the following statement prints the shown output below?
hello\example\test.txt
(a) print(“hello\example\test.txt”)
(b) print(“hello\\example\\test.txt”)
(c) print(“hello\”example\”test.txt”)
(d) print(“hello”\example”\test.txt”)
13.
Which value type does input() return ?
(a) Boolean
(b) String
(c) Int
(d) Float
14.
Which two operators can be used on numeric values in Python?
(a) @
(b) %
(c) +
(d) #
15.
Which of the following four code fragments will yield following output?
Eina
Mina
Dika
Select all of the function calls that result in this output
(a) print(”’Eina
\nMina
\nDika”’)
(b) print(”’EinaMinaDika”’)
(c) print(‘Eina\nMina\nDika’)
(d) print(‘Eina
Mina
Dika’)