BreakInterview

1. What is the output of print str if str = 'BreakInterview'?

BreakInterview
Error
str
None of the above

2. What is the output of print tuple[2:] if tuple = ( 'break', 123 , 1.23, 'interview', 12.3 )?

('break', 123 , 1.23, 'interview', 12.3 )
1.23
123
(1.23, 'interview', 12.3)

3. Which one of the following function returns item from the list with max value?

max(list)
cmp(list)
maximum(list)
maxVal(list)

4. Predict the output of following code snippet.
L[1:] if L = [1,2,3]

1
2
2,3
1,2,3

5. Select the function that removes all leading and trailing white space in string?

replace(old, new [, max])
strip([chars])
title()
swapcase()

6. Select the function that checks in a string that all characters are alphanumeric?

isalnum()
isalphanum()
checkalphanum()
checkalnum()

7. Select the function that converts an integer to a character in python?

chr(x)
char(x)
intochar(x)
intToChar(x)

8. Select the function that converts an object to a string in python?

objectToString(x)
str(x)
string(x)
objToStr(x)

9. Select the correct option about Python?

It can be used as a scripting language or can be compiled to byte-code for building large applications.
It supports functional and structured programming methods as well as OOP.
It provides very high-level dynamic data types and supports dynamic type checking.
All of the above.

10. Select the function that gives the total length of the list?

len(list)
length(list)
size(list)
sizeof(list)

11. Is Python object-oriented language?

Yes
No

12. Does python supports dynamic type checking?

Yes
No

13. Is Python strongly typed language?

Yes
No