Problem Solving using Python and R - UNIT I STRINGS MCQS

Quiz
•
Computers
•
12th Grade
•
Medium
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
Similar Resources on Wayground
15 questions
Mastering Java String Handling

Quiz
•
12th Grade
10 questions
L.8. STRINGS AND STRING MANIPULATION - 2

Quiz
•
12th Grade
15 questions
Строки python

Quiz
•
12th Grade
20 questions
3rd Qtr QUIZ1 COMPUTER PROGRAMMING-Strings in Java-2-22-2023

Quiz
•
12th Grade
11 questions
ქვიზმენ 2

Quiz
•
9th - 12th Grade
20 questions
Python -Iteration (loops)

Quiz
•
7th - 12th Grade
13 questions
Unit 4 AP CSA Review

Quiz
•
12th Grade
13 questions
APCSA Unit 3 Review

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade