
zybooks unit 7- strings
Authored by Wayground Content
Computers
11th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output?
new_string = 'One giant leap for mankind'
print(new_string[0:6])
One gi
One giant
One leap
One giant leap
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output?
my_string = 'What is your name?'
print(my_string.split('?'))
['What is your name', '']
['What is your name?']
['What is', 'your name?']
['What is your name? ', '']
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Complete the following code to get 'Email me at abc@gmail.com or call at 333 222 1111' as output.
email = 'Email: abc@gmail.com'
phone = 'Ph: 333-222-1111'
print(f"Email me at {XXX} or call at {YYY}")
email.split(' ')[1], ' '.join((phone.split(': ')[1]).split('-'))
email.split(': ')[1], phone.split(': ')[1]
email[7:], phone.split(': ')[1].replace('-',' ')
email.split(' ')[1], phone.split(': ')[1].replace('-',' ')
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output?
Pyt
yt
t
Python
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be output for print(f'{1.6180339:.5f}')?
'1.61803'
'1.6180'
'1.618034'
'1.618'
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of new_title?
'Python for Beginners Chapter 1'
'Python for Beginners'
'Chapter 1 Python for Beginners'
'Beginners for Python Chapter 1'
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output?
my_string = 'The area postal code is 99501'
print(my_string[-5:].isdigit())
print(my_string[:3].isupper())
print(my_string[:3].islower())
True
False
None of the above
Error
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?