G10 CS String Manipulation

G10 CS String Manipulation

12th Grade

15 Qs

quiz-placeholder

Similar activities

JAVA string

JAVA string

12th Grade

20 Qs

Python Review KS3

Python Review KS3

9th - 12th Grade

17 Qs

python intro

python intro

4th - 12th Grade

17 Qs

CWA Java

CWA Java

10th - 12th Grade

13 Qs

Variables and Data Types Knowledge Check

Variables and Data Types Knowledge Check

9th - 12th Grade

16 Qs

Python Basics - yr 9

Python Basics - yr 9

9th - 12th Grade

18 Qs

ASK F2 -KOD ARAHAN (PYTHON)

ASK F2 -KOD ARAHAN (PYTHON)

1st Grade - University

15 Qs

String Methods

String Methods

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?