Problem Solving using Python and R - UNIT I STRINGS MCQS

Problem Solving using Python and R - UNIT I STRINGS MCQS

12th Grade

15 Qs

quiz-placeholder

Similar activities

Code.org Boolean

Code.org Boolean

10th - 12th Grade

16 Qs

Python programming

Python programming

6th - 12th Grade

16 Qs

Python Basics

Python Basics

6th Grade - University

10 Qs

String Data Type(Python)

String Data Type(Python)

12th Grade

20 Qs

STRING

STRING

11th - 12th Grade

13 Qs

LETS PLAY QUIZ - PYTHON CBSE CLASS XII

LETS PLAY QUIZ - PYTHON CBSE CLASS XII

11th - 12th Grade

20 Qs

Assessment #2

Assessment #2

5th Grade - Professional Development

20 Qs

Unit 7 quiz on strings AP CSP

Unit 7 quiz on strings AP CSP

9th - 12th Grade

14 Qs

Problem Solving using Python and R - UNIT I STRINGS MCQS

Problem Solving using Python and R - UNIT I STRINGS MCQS

Assessment

Quiz

Computers

12th Grade

Medium

Created by

MS.SHYAMALADEVI C

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method would you use to convert all characters in a string to lowercase in Python?

lowercase()

toLower()

lower()

convertToLower()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods can be used to find the index of a substring in a string?

indexOf()

find()

search()

locate()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you format a string to include a variable in Python?

format("Hello, {name}")

"Hello, %s" % name

f"Hello, {name}"

All of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code: print("Hello"[1:4])?

Hel

llo

ell

Hello

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements about strings in Python is true?

Strings are mutable.

Strings can be changed after they are created.

Strings are immutable.

Strings can only contain letters.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following operation: "Hello" + " World"?

Hello World

HelloWorld

Hello + World

Hello, World

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method would you use to remove whitespace from the beginning and end of a string?

trim()

strip()

clean()

removeSpaces()

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?