strings

strings

11th Grade

10 Qs

quiz-placeholder

Similar activities

Java while loops

Java while loops

10th - 12th Grade

6 Qs

TRẮC NGHIỆM PYTHON

TRẮC NGHIỆM PYTHON

9th - 12th Grade

10 Qs

Chapter 3 Review

Chapter 3 Review

9th - 12th Grade

15 Qs

[AP CSP] Unit 4 Review: Functions and Lists

[AP CSP] Unit 4 Review: Functions and Lists

9th - 12th Grade

10 Qs

Python

Python

7th - 12th Grade

15 Qs

python(strings)

python(strings)

11th Grade

10 Qs

Java Strings

Java Strings

9th - 12th Grade

12 Qs

Python Variables

Python Variables

7th - 12th Grade

10 Qs

strings

strings

Assessment

Quiz

Computers

11th Grade

Hard

Created by

Divya Ghalagi

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

predict the output:

str="computer student"

print(len(str)

13

14

15

16

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what is the output of the following?

print('abcefd'.replace('cd','12'))

ablef2

abcefd

ablefd

abl2ed2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

given a string str="Togetherwithpython" what is the output of str.count("t") ?

3

2

none

0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what is the output of the following code?

exam="rachana Sagar"

print("%s" %exam[4:8])

Sagar

anas

ana

Ra

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

suppose str="\t\tBookworld\n",what is str.strip()?

\t\tBookWorld\n

\t\tBookWorld

\t\tBookWORLD\n

BookWorld

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print('together with python 11',isalnum()). predict the output

True

False

None

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print('ccdcddcd'.find('c'))

4

0

Error

True

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?