Python Strings

Python Strings

11th Grade

21 Qs

quiz-placeholder

Similar activities

REMEDI JARINGAN KOMPUTER

REMEDI JARINGAN KOMPUTER

7th Grade

20 Qs

Practice Quiz QBASIC and Excel Functions

Practice Quiz QBASIC and Excel Functions

5th Grade

20 Qs

Quiz: Programming a Calculator. Part 1 and Part 2 Review

Quiz: Programming a Calculator. Part 1 and Part 2 Review

7th - 8th Grade

17 Qs

Python spr

Python spr

1st - 5th Grade

20 Qs

Uji Pemahaman Microsoft Word X TKJ 1

Uji Pemahaman Microsoft Word X TKJ 1

12th Grade

20 Qs

INTRODUCING PYHTON

INTRODUCING PYHTON

7th Grade

16 Qs

Security and Ethics

Security and Ethics

9th - 12th Grade

17 Qs

ICT Unit-2

ICT Unit-2

University

20 Qs

Python Strings

Python Strings

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Raksha Panjwani

Used 132+ times

FREE Resource

AI

Enhance your content in a minute

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

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A: Strings can be changed during execution

B. Strings can be enclosed within single, double or even triple quotes

C. Strings are immutable

A,B & C are True

A,B are True but C is False

B, C are True but A is False

A,C are True but B is False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the string membership operators of Python

in, not in

like, not like

as, not as

between, not between

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

MATCH THE FOLLOWING:

1. concatenation A) +=

2. Append B) [ ]

3. String Slicing C) *

4. Repeating D) +

1-B. 2-A, 3-C, 4-D

1-D. 2-A, 3-B, 4-C

1-A,2-B,3-C,4-D

1-A,2-D,3-C,4-B

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In the following code, "city" is an example of a what?

List
Loop
Variable
Array

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Each item in a string has an "address" or index. The first index in a Python string is what?

0

1

a

A

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Returning a range of characters (part of a string) is done using which syntax?

Slice

Splice

Cut

Select

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output from this code?

ell

llo

ello,

Hello

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

Already have an account?