CPD Oct 23 Xiics
CPD Oct 23 Xiics
CPD Oct 23 Xiics
Section – A
Q01. State True or False (1)
“Tuple is datatype in Python which contain data in key-value pair.”
Which of the following will be correct output if the given expression is evaluated?
(A) True (B) False
(C) NONE (D) NULL
Q05. Select the correct output of the code: (1)
>>> s='[email protected]'
>>> s=s.split('kv')
>>> op = s[0] + "@kv" + s[2]
>>> print(op)
(A) mail2@kvsangathan (B) mail2@sangathan.
[Type here]
[Type here]
Q11. Write a program that replaces all “the” with “them” in a file data.txt
Q12. Write a program that replaces a given character by another given character in a file data.txt
[Type here]