G10 CS String Manipulation

G10 CS String Manipulation

12th Grade

15 Qs

quiz-placeholder

Similar activities

GCSE Computer Science - Programming Keywords

GCSE Computer Science - Programming Keywords

9th - 12th Grade

15 Qs

String Manipulation (Python)

String Manipulation (Python)

9th - 12th Grade

17 Qs

Python Revision Tour - I

Python Revision Tour - I

12th Grade

15 Qs

AQA Computer Science GCSE - 3.1 Fundamentals of algorithms

AQA Computer Science GCSE - 3.1 Fundamentals of algorithms

10th - 12th Grade

15 Qs

Python variables and Data types

Python variables and Data types

10th - 12th Grade

10 Qs

Python Basics Review (TSK)

Python Basics Review (TSK)

9th - 12th Grade

20 Qs

Python_2R

Python_2R

KG - Professional Development

20 Qs

Mastering Python String Techniques

Mastering Python String Techniques

9th - 12th Grade

10 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?