Quiz on String

Quiz
•
Computers
•
12th Grade
•
Hard
Karma Phuntsho
Used 23+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a string?
A type that represents whole numbers.
Sequences of characters enclosed in a quotation marks
A combination of variables, operators, and values
Int, float and complex
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following is NOT a string?
a = "12345"
b = Thimphu
c = "Bhutan"
d = 'Thimphu, Bhutan'
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Fill in the blank with correct operator to concatenate(join) two strings.
a = "Thimphu "
b = "Bhutan"
c = a _ b
print(c)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements contain valid Python string literals?
a = "1234"
b = Bhutan
c = 'We're #1!'
d = Hello, World
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What’s the value of z after this code snippet executes?
x = "YHSS"
y = "2021"
z = x+y
print(z)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Guess the correct output of the following String operations:
x = "Welcome"
print(x*2)
WelcomeWelcome
Welcome Welcome
Welcome * 2
Error
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the index of the last character?
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Python Strings

Quiz
•
12th Grade
20 questions
LETS PLAY QUIZ - PYTHON CBSE CLASS XII

Quiz
•
11th - 12th Grade
12 questions
Java Strings

Quiz
•
9th - 12th Grade
20 questions
Python String

Quiz
•
12th Grade
15 questions
Python Programming 1: print, strings, variables, casting

Quiz
•
9th Grade - University
20 questions
Python Basics Review (TSK)

Quiz
•
9th - 12th Grade
18 questions
AP CSA U1L01-03

Quiz
•
11th - 12th Grade
16 questions
Loops

Quiz
•
5th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade