Answer the following questions (21 to 24) on the basis of ABOUT.txt file having the below content: |
What is the output of the statement? |
A) ['STUDY', TRIGGER','?']
B) ['STUDYTRIGGER1, '?]
C) ['STUDYTRIGGER?']
D) None of the above
Correct Answer: A
Solution :
[a] readline() reads the first line of the file i.e. "Study Trigger ?", but when you use split() function with it then split function split the line with spaces and make it as a list like ["Study" ."Trigger","?"].You need to login to perform this action.
You will be redirected in
3 sec