
Strings in python

Quiz
•
Engineering
•
University
•
Medium
Dr. 2538
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed by the following statement?
print("P" not in "APCSP")
True
False
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Evaluate the following expression:
"dog" < "Dog"
They are the same word
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For strings, the + operator represents
Concatenation
Addition
Appending
Recantation
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
s1="Hello"
n1=10
print(s1+n1)
What is the error in this code?
Print statement not written in quotes
Numeric value not written in quotes
colon not written after the print statement
string cannot be added to a number
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
str1='101'
x=int(str1)
z=x+400
print(z)
101400
x400
501
none of above
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
index of a string begins with
1
0
a
-1
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
________ is used to represent multi line strings.
' '
" "
''' '''
{ }
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Module01_C_M_M&A

Quiz
•
University
15 questions
Variables y constantes

Quiz
•
University
10 questions
Quiz 2

Quiz
•
University
10 questions
Test Your Python and C Knowledge

Quiz
•
University
10 questions
Alpro 2 Mg 1 - Understanding C++ Basics

Quiz
•
University
10 questions
FileSystem Node JS

Quiz
•
University
10 questions
Latihan 4 : Cluster dan Error cluster, File Input/Output

Quiz
•
University
10 questions
NumPy & Matplotlib Basics

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Engineering
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University