Sequences

Quiz
•
Computers
•
Professional Development
•
Hard
LE202 VISHNUVARDHAN
Used 45+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
JavaScript

Quiz
•
Professional Development
15 questions
Code X Trade

Quiz
•
Professional Development
10 questions
Senz AIoT Savants - ML & C++

Quiz
•
Professional Development
15 questions
coding

Quiz
•
KG - Professional Dev...
15 questions
DOT NET-SET1

Quiz
•
Professional Development
10 questions
Java Increment & Decrement Operators

Quiz
•
Professional Development
10 questions
Batch 1

Quiz
•
Professional Development
10 questions
Basic Python

Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade