
InfyTq - String 1
Authored by KarunaiMuthu SriRam
Geography, Computers
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Python statement?
"a"+"bc"
a
bc
bca
abc
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Python statement?
"abcd"[2:]
a
ab
cd
dc
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The output of executing string.ascii_letters can also be achieved by:
string.ascii_lowercase_string.digits
string.ascii_lowercase+string.ascii_uppercase
string.letters
string.lowercase_string.uppercase
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
olleh
hello
h
o
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What arithmetic operators cannot be used with strings?
+
*
–
All of the mentioned
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Python code?
print (r"\nhello")
a new line and hello
\nhello
the letter r and then hello
error
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Python statement?
print('new' 'line')
Error
Output equivalent to print ‘new\nline’
newline
new line
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?