🔍
What is the output when following statement is executed ? >>>print('new' 'line')
a) Error
b) Output equivalent to print ‘new\nline’
Page No 22
c) newline
d) new line
0 like 0 dislike

1 Answer

c) newline
0 like 0 dislike

Related questions

hat is the output when following code is executed ? >>>print r"\nhello" The output is a) a new line and hello b) \nhello c) the letter r and then hello d) error
Answer : d) error...

View solution
0 like 0 dislike
1 answer

What is the output when following statement is executed ? >>> print(‘x\97\x98’) a) Error b) 97 98 c) x\97 d) \x97\x98
Answer : c) x\97...

View solution
0 like 0 dislike
1 answer

What is the output when following code is executed ? names1 = ['Amir', 'Bear', 'Charlton', 'Daman'] names2 = names1 names3 = names1[:] names2[0] = 'Alice' names3[1] = 'Bob' sum = 0 for ls in (names1, names2, names3): ... if ls[1] == 'Bob': sum += 10 print sum a) 11 b) 12 c) 21 d) 22
Answer : d) 22...

View solution
0 like 0 dislike
1 answer

What is the output of the following? print("xyyzxyzxzxyy".count('yy')) a) 2 b) 0 Page No 23 c) error d) none of the mentioned
Answer : a) 2...

View solution
0 like 0 dislike
1 answer

What is the output of the following? i = 0 while i < 3: Page No 15 print(i) i += 1 else: print(0) a) 0 1 2 3 0 b) 0 1 2 0 c) 0 1 2 d) error
Answer : b) 0 1 2 0...

View solution
0 like 0 dislike
1 answer

50.5k questions

47.1k answers

240 comments

7.0k users