Quiz on String
Quiz
•
Computers
•
12th Grade
•
Hard
Karma Phuntsho
Used 23+ times
FREE Resource
Enhance your content in a minute
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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Keyboarding Terms
Quiz
•
9th - 12th Grade
10 questions
DA02: Sheet 1
Quiz
•
9th - 12th Grade
17 questions
Week #7 - Time Machine
Quiz
•
8th Grade - University
10 questions
PBO XII RPL
Quiz
•
9th - 12th Grade
10 questions
Kuis tipedata, flowchart informatima kelas X j4njang SMA
Quiz
•
9th - 12th Grade
15 questions
DM Online Advertising
Quiz
•
12th Grade
13 questions
AI-1
Quiz
•
KG - University
14 questions
Computing figures
Quiz
•
4th - 12th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
