1. ............ is a simple but incomplete version of a function.

Stub
Function
A function developed using bottom-up approach
A function developed using top-down approach

2. Given a string s = “Welcome”, which of the following code is incorrect?

print s[0]
print s.lower()
s[1] = ‘f’
print s.strip()

3. What does ~~~~~~5 evaluate to?

+5
-5
11
-11

4. Predict the output of the following program :

True
False
Machine Dependent
Error

5. Which module in Python supports regular expressions?

re
regex
pyregex
None of the above

6. Given a function that does not return any value, what value is shown when executed at the shell?

int
bool
void
None

7. Which of these is not a core data type?

Lists
Dictionary
Tuples
Class

8. Which of the following function convert a string to a float in python?

int(x [,base])
long(x [,base] )
float(x)
float(x [,base])

9. What data type is the object below ?

List
Dictionary
Tuple
Array

10. Predict the output of the following segment :

A
B
a
Error