🔍
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
0 like 0 dislike

1 Answer

d) error
0 like 0 dislike

Related questions

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
Answer : c) newline...

View solution
0 like 0 dislike
1 answer

What is the output when following code is executed ? >>>names = ['Amir', 'Bear', 'Charlton', 'Daman'] >>>print(names[-1][-1]) a) A b) Daman c) Error d) n
Answer : b) Daman...

View solution
0 like 0 dislike
1 answer

What is the output when following code is executed ? >>>str1="helloworld" >>>str1[::-1] a) dlrowolleh b) hello c) world d) helloworld
Answer : a) dlrowolleh...

View solution
0 like 0 dislike
1 answer

What is the output when following code is executed ? >>> str1 = 'hello' >>> str2 = ',' >>> str3 = 'world' >>> str1[-1:] a) olleh b) hello c) h d) o
Answer : b) hello...

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

50.5k questions

47.1k answers

240 comments

7.0k users