MCQOPTIONS
Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Testing Subject
General Aptitude
Logical and Verbal Reasoning
English Skills Ability
Technical Programming
Current Affairs
General Knowledge
Finance & Accounting
GATE (Mechanical Engineering)
Chemical Engineering
→
Computer Science Engineering (CSE)
→
Software Design Modeling
→
What is the output of the following program : prin...
1.
What is the output of the following program : print 'abcefd'.replace('cd', '12')
A.
ab1ef2
B.
abcefd
C.
ab1efd
D.
ab12ed2
Answer» C. ab1efd
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What is the output of the following program?D = {1 : 1, 2 : '2', '1' : 1, '2' : 3}D['1'] = 2print(D[D[D[str(D[1])]]])
What is the output of the following program? tday=datetime.date.today() print(tday.month())
Which of the following formatting options can be used in order to add n blank spaces after a given string S ?
What is the output of the following program?D = dict()for x in enumerate(range(2)):D[x[0]] = x[1]D[x[1]+7] = x[0]print(D)
What is the output of the following code : print 9//2
What is the output of the following program?import stringimport stringLine1 = "And Then There Were None"Line2 = "Famous In Love"Line3 = "Famous Were The Kol And Klaus"Line4 = Line1 + Line2 + Line3print(string.find(Line1, 'Were'), string.count((Line4), 'And'))
What is the output of the following program :i = 0while i < 3:print iprint i+1
What is the output of the following?elements = [0, 1, 2]def incr(x):return x+1print(list(map(elements, incr)))
What is the output of the following?def to_upper(k):return k.upper()x = ['ab', 'cd']print(list(map(to_upper, x)))
What is the output of the following?elements = [0, 1, 2]def incr(x):return x+1print(list(map(incr, elements)))
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies