
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
Repaso teórico

Quiz
•
University
5 questions
Quiz Lógica de programación

Quiz
•
University
10 questions
Examen corto 1 análisis de datos y simulación

Quiz
•
University
10 questions
Geometrical Constructions in Engineering

Quiz
•
University
13 questions
Oops moment/1

Quiz
•
University
15 questions
ETS Pemrograman Berorientasi Obyek

Quiz
•
University
10 questions
Infix to Postfix Conversion Quiz

Quiz
•
University
11 questions
Conceptos de Orientación a Objetos en Python

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Engineering
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University