WORKSHEET ON TEXT HANDLING IN PYTHON - 2

WORKSHEET ON TEXT HANDLING IN PYTHON - 2

11th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Python with DataScience

Python with DataScience

7th Grade - University

10 Qs

Desarrollo de Aplicaciones Modernas y Herramientas.

Desarrollo de Aplicaciones Modernas y Herramientas.

1st Grade - Professional Development

15 Qs

Podstawy Pythona

Podstawy Pythona

9th - 12th Grade

10 Qs

Control Panel Hosting

Control Panel Hosting

12th Grade

15 Qs

ITGS - IT Systems (Hardware)

ITGS - IT Systems (Hardware)

10th - 12th Grade

14 Qs

Một số khái niệm về lập trình và ngôn ngữ lập trình

Một số khái niệm về lập trình và ngôn ngữ lập trình

KG - 12th Grade

15 Qs

Desafio Santarenzinho

Desafio Santarenzinho

KG - University

11 Qs

Latihan Ujian TKJ - Bagian A1

Latihan Ujian TKJ - Bagian A1

7th Grade - University

10 Qs

WORKSHEET ON TEXT HANDLING IN PYTHON - 2

WORKSHEET ON TEXT HANDLING IN PYTHON - 2

Assessment

Quiz

Computers

11th - 12th Grade

Practice Problem

Hard

Created by

RANJITA SARKAR

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?print("ab\tcd\tef".expandtabs())

a) ab cd ef

b) abcdef

c) ab\tcd\tef

d) ab cd ef

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?print("ab\tcd\tef".expandtabs(4))

a) ab cd ef

b) abcdef

c) ab\tcd\tef

d) ab cd ef

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?print("ab\tcd\tef".expandtabs('+'))

a) ab+cd+ef

b) ab++++++++cd++++++++ef

c) ab cd ef

d) none of the mentioned

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?print("abcdef".find("cd") == "cd" in "abcdef")

a) True

b) False

c) Error

d) None of the mentioned

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?print("abcdef".find("cd"))

a) True

b) 2

c) 3

d) None of the mentioned

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?print("ccdcddcd".find("c"))

a) 4

b) 0

c) Error

d) True

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?print("Hello {0} and {1}".format('foo', 'bin'))

a) Hello foo and bin

b) Hello {0} and {1} foo bin

c) Error

d) Hello 0 and 1

Access all questions and much more by creating a free account

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?