Search Header Logo

Unit-4_PPS Test

Authored by Rahul Chinchore

Computers

University

Used 4+ times

Unit-4_PPS Test
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Strings are immutable objects in Python?

True

False

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Python does not support a character type; a single character is treated as strings of length one.

True

False

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

String is a sequence made up of one or more____________________________.

Alphabet

Characters

Digits

Whitespaces

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Individual characters in a string are accessed using the ___________________operator.

slicing

Range slicing

both

none of the given

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

If we access the string from the first character then we use a ________based index but when doing it backward the index starts with ­_______.

Positive, -1

negative , 0

slicing, 1

pointer, 1

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Strings are stored in memory in _______________memory locations.

Alternate

Randomly

Consecutive

None of the given

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Each character in string can be accessed by ________________.

Using format()

Positive Indexing

Negative Indexing

Positive Indexing & Negative Indexing both

Access all questions and much more by creating a free account

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?

Discover more resources for Computers