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
15 questions
list in python

Quiz
•
10th - 12th Grade
12 questions
Project-Stem Unit 1 python coding

Quiz
•
9th - 12th Grade
10 questions
DATAFRAME AND SERIES

Quiz
•
12th Grade
12 questions
Основи Python

Quiz
•
7th - 12th Grade
15 questions
G8 Practice PC

Quiz
•
12th Grade
11 questions
Python Function

Quiz
•
11th - 12th Grade
12 questions
Python Εισαγωγή

Quiz
•
12th Grade
10 questions
Python Math

Quiz
•
1st - 12th Grade
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 Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade