
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?
Similar Resources on Wayground
20 questions
PLC
Quiz
•
12th Grade - Professi...
20 questions
CETA'S Quizzard
Quiz
•
University
20 questions
PELATIHAN GIS
Quiz
•
University
20 questions
2.2.1 d Procedures and Functions
Quiz
•
University
20 questions
Data Science (Data Preparation & Visualitation)/Pandas Python
Quiz
•
University
20 questions
Gr11Boys-24-25-T2
Quiz
•
11th Grade - University
20 questions
Programming2
Quiz
•
University
20 questions
FRAMING,Bit Stuffing, PPP,HDLC,
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade