
Sequences
Authored by LE202 VISHNUVARDHAN
Computers
Professional Development
Used 45+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What will be the output of the following Python statement?
>>>"a"+"bc"
a
bc
bca
abc
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following Python code?
>>> str1 = 'hello'
>>> str2 = ','
>>> str3 = 'world'
>>> str1[-1:]
olleh
hello
h
o
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Suppose listExample is [‘h’,’e’,’l’,’l’,’o’], what is len(listExample)?
5
4
None
Error
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following Python code?
>>>names = ['Amir', 'Bear', 'Charlton', 'Daman'] >>>print(names[-1][-1])
A
Daman
Error
n
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following Python code snippet?
print([i.lower() for i in "HELLO"])
[‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
‘hello’
[‘hello’]
hello
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What will be the output of the following Python code snippet?
>>> d = {"john":40, "peter":45}
>>> "john" in d
True
False
None
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code snippet?
>>> d1 = {"john":40, "peter":45}
>>> d2 = {"john":466, "peter":45}
>>> d1 > d2
True
False
Error
None
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?