
AEM 249 Lecture 16
Quiz
•
Computers
•
University
•
Practice Problem
•
Easy
Markeith Diamond
Used 2+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the alignment character for left-aligned values in string formatting?
/
^
>
<
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to check if all characters in a string are lowercase or uppercase letters, or the numbers 0-9?
isdigit()
islower()
isalnum()
isupper()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the replace() method do in Python?
Removes all spaces from the string
Replaces all occurrences of a substring with a new string
Counts the number of times a substring occurs in the string
Returns the index of the first occurrence of a substring
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the find() method return if the item is not found in the string?
Error
None
0
-1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the split() method do in Python?
Returns a copy of the string as a title with the first letters of words capitalized
Joins a list of strings together
Splits a string into a list of tokens
Returns a copy of the string with leading and trailing whitespace removed
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default separator for the split() function in Python?
Period (.)
Space
Semicolon (;)
Comma (,)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to join a list of strings together to create a single string?
merge()
combine()
concat()
join()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
DreamWeaver CS6
Quiz
•
University
10 questions
CHAPTER 1: COMPUTER SECURITY REVIEW
Quiz
•
University
13 questions
Chap 1: What is a program made of?
Quiz
•
University
10 questions
Introduction to AI - Healthcare & Business
Quiz
•
University - Professi...
19 questions
DSA Quest 1.0
Quiz
•
University
10 questions
Lourdes Amaranta Ayala Gracia
Quiz
•
8th Grade - University
16 questions
W6_BIS
Quiz
•
University
20 questions
C - Structures
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
