Quiz on String

Quiz on String

12th Grade

15 Qs

quiz-placeholder

Similar activities

Python Basics Review (TSK)

Python Basics Review (TSK)

9th - 12th Grade

20 Qs

Python Basics

Python Basics

KG - University

16 Qs

Python Revision 1 RK

Python Revision 1 RK

12th Grade

20 Qs

Python_2R

Python_2R

KG - Professional Development

20 Qs

Loops

Loops

5th - 12th Grade

16 Qs

Python Strings

Python Strings

12th Grade

10 Qs

Java Strings

Java Strings

9th - 12th Grade

12 Qs

Python String

Python String

12th Grade

20 Qs

Quiz on String

Quiz on String

Assessment

Quiz

Computers

12th Grade

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?