What is printed by the following statement?
print("P" not in "APCSP")
Strings in python
Quiz
•
Engineering
•
University
•
Medium
Dr. 2538
Used 4+ 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.
' '
" "
''' '''
{ }
15 questions
ETS Pemrograman Berorientasi Obyek
Quiz
•
University
15 questions
FSD DAY -3 102
Quiz
•
University
15 questions
Operadores en C++
Quiz
•
University
10 questions
Q4 - Kurvilinier
Quiz
•
University
12 questions
LinkedLists
Quiz
•
University
11 questions
Equilibrium & Truss
Quiz
•
University
10 questions
Latihan 3 : Array dan grafik, multiple plot dan XY Graph
Quiz
•
University
10 questions
FDM 3D PRINTING AZLAN
Quiz
•
University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade