Page 104 - 2611_SmartGPT Pro V(5.0) C-8
P. 104
c. Mark the built-in function from the given list.
(i) show() (ii) print()
(iii) myname() (iv) display()
d. Output of print(“Hello” + “How are you “) statement is _______________.
(i) Hello How are you (ii) HelloHowareyou
(iii) HelloHow are you (iv) HELLO HOW ARE YOU
e. Visiting each element and processing it as required by the program is called _______________.
(i) functions (ii) strings
(iii) traversing (iv) indexing
2. Fill in the blanks using the words from the help box.
Double, \t, arguments, single,\n, positive, upper(), three
a. The inputs given to the functions are referred to as _______________.
b. A string is enclosed or surrounded by _______________ or _______________ quotes.
c. A multiline string in Python begins and ends with _______________ single quotes.
d. _______________ is an escape sequence for adding a new line and _______________ is an escape
sequence for adding a tab.
e. Index with _______________ integers starts from 0.
f. _______________ function converts all lowercase letters to uppercase.
3. Think and answer.
a. How can you define a function in Python?
______________________________________________________________________________
______________________________________________________________________________
b. How does a built-in function differ from a user defined function? Explain with example.
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
c. If name= “RAKESH Mishra”, use it with len(), lower(), upper() and capitalize() and write the output.
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
d. How do you pass arguments to a Python function? Explain with an example.
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
102 Computer Science (V5.0)-VIII

