Quiz on String

Quiz on String

12th Grade

15 Qs

quiz-placeholder

Similar activities

1.1 Computer Systems Essential Knowledge

1.1 Computer Systems Essential Knowledge

9th - 12th Grade

15 Qs

Arduino_Quiz

Arduino_Quiz

12th Grade

20 Qs

Network Topologies & Malware

Network Topologies & Malware

6th - 12th Grade

17 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

ICT as Social Change

ICT as Social Change

12th Grade

10 Qs

History of the computer

History of the computer

12th Grade

20 Qs

Django-quiz

Django-quiz

5th Grade - University

20 Qs

HTML & Google Site Seatwork

HTML & Google Site Seatwork

12th Grade

10 Qs

Quiz on String

Quiz on String

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Karma Phuntsho

Used 23+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?