G10 CS String Manipulation

G10 CS String Manipulation

12th Grade

15 Qs

quiz-placeholder

Similar activities

Exploring Python: Input and Output Essentials

Exploring Python: Input and Output Essentials

9th Grade - University

10 Qs

Python Basics Review (TSK)

Python Basics Review (TSK)

9th - 12th Grade

20 Qs

Python programming

Python programming

6th - 12th Grade

16 Qs

String Manipulation (Python)

String Manipulation (Python)

9th - 12th Grade

17 Qs

Python Revision Tour - I

Python Revision Tour - I

12th Grade

15 Qs

CS 26_01_24

CS 26_01_24

9th - 12th Grade

20 Qs

Python Essentials 119

Python Essentials 119

9th - 12th Grade

20 Qs

Python - End of module assessment

Python - End of module assessment

12th Grade

20 Qs

G10 CS String Manipulation

G10 CS String Manipulation

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Fritz Bansag

Used 10+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python Program

If string_name=‘Programming techniques’.

What is the output of

print(string_name.length) ?

20

21

22

23

0

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python Program

If string_name=‘Programming techniques’.

What is the output of

print(string_name.substring(5,6)) ?

amming

ramming

rammin

gramm

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python Program

If string_name=‘Programming techniques’.

What is the output of

print(string_name.substring(5,6)) ?

gramming

ramming

rammin

gramm

None

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python Program

If string_name=‘Programming techniques’.

What is the output of

print(string_name.substring(12,4)) ?

tech

tec

echn

techn

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python Program

If string_name=‘Programming techniques’.

What is the output of

print(string_name.substring(12,6)) ?

techin

tec

echn

techn

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following represents the code that changes a variable string_name to uppercase characters?

string.upper()

string_name.upper()

string_name.uppercase()

None of the choices

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to find the length in Python program?

lenght( )

len( )

lengthof( )

None of the above

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?