Strings in python -1

Strings in python -1

11th Grade

22 Qs

quiz-placeholder

Similar activities

Pokemon

Pokemon

1st Grade - Professional Development

19 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

Bài kiểm tra giữa kì 2

Bài kiểm tra giữa kì 2

9th - 12th Grade

20 Qs

Microsoft PPT. - Scavenger Hunt

Microsoft PPT. - Scavenger Hunt

6th - 12th Grade

20 Qs

ป.4 แบบทดสอบปลายภาคเรียนที่ 2/2567 ชุดที่ 1

ป.4 แบบทดสอบปลายภาคเรียนที่ 2/2567 ชุดที่ 1

4th Grade - University

20 Qs

Computer Program

Computer Program

10th - 12th Grade

21 Qs

System Computer : Al-Azhar

System Computer : Al-Azhar

9th - 12th Grade

20 Qs

SEMI - Unit 2

SEMI - Unit 2

9th - 12th Grade

19 Qs

Strings in python -1

Strings in python -1

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

Sangeetha John

Used 165+ times

FREE Resource

AI

Enhance your content in a minute

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

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

word = "amazing"

For the given string if we run word[2:5] what does it mean?

It will extract alphabets from index 2 to index 4

It will extract alphabets from index 2 to index 5

It will extract alphabets from position 2 to position 4

It will extract alphabets from position 2 to position 5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to convert a given string in Capital letters?

Capital

Upper

ConverttoUpper

Capitalize

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid string function?

isalphanumeric

isspace

islower

isalnum

4.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

string="HELlo"

What will be the result of string.isupper()?

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

s1="Hello"

n1=10

print(s1+n1)

What is the error in this code?

Print statement not written in quotes

Numeric value not written in quotes

colon not written after the print statement

string cannot be added to a number

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

In Python, strings are…

char arrays

changeable

immutable

str objects

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following mathematical operators can be used to concatenate strings:

*

/

-

+

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?