WORKSHEET ON TEXT HANDLING IN PYTHON - 2

WORKSHEET ON TEXT HANDLING IN PYTHON - 2

11th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Administrasi Sistem Jaringan

Administrasi Sistem Jaringan

12th Grade

10 Qs

python-BTxâu

python-BTxâu

9th - 12th Grade

10 Qs

สอบเก็บคะแนน ไพทอน ม.4

สอบเก็บคะแนน ไพทอน ม.4

9th - 12th Grade

10 Qs

python basics

python basics

11th Grade - University

15 Qs

Unit 1: Computer parts

Unit 1: Computer parts

9th - 12th Grade

13 Qs

พื้นฐาน ภาษา Visual Basic

พื้นฐาน ภาษา Visual Basic

11th Grade

10 Qs

Code Combat Curso Junior

Code Combat Curso Junior

9th - 12th Grade

15 Qs

básico de Code

básico de Code

10th - 12th Grade

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