
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
Digital and Analog transmission
Quiz
•
University
20 questions
Soal AIJ bulan Agustus 2019 kls xii
Quiz
•
University
20 questions
Alles über YouTube
Quiz
•
5th Grade - University
20 questions
DBMS Quiz
Quiz
•
University
20 questions
Mid Uts IMK
Quiz
•
University
20 questions
Algoritma Pemrograman
Quiz
•
University
20 questions
BAB 4 INFORMATIKA
Quiz
•
7th Grade - University
20 questions
คอมพิวเตอร์และสารสนเทศการงานอาชีพ 1
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