
Quiz - Python Programming - Rajendra

Quiz
•
Other
•
Professional Development
•
Hard

Thinkwright Learning
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code :
L = ['a','b','c','d']
print "".join(L)
Error
None
abcd
[‘a’,’b’,’c’,’d’]
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.pop(1)?
[3, 4, 5, 20, 5, 25, 1, 3]
[1, 3, 3, 4, 5, 5, 20, 25]
[3, 5, 20, 5, 25, 1, 3]
[1, 3, 4, 5, 20, 5, 25]
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code :
print "Hello World"[::-1]
dlroW olleH
Hello Worl
d
Error
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Given a string s = “Welcome”, which of the following code is incorrect?
print(s[0])
print(s.lower())
s[1] = ‘r’
print(s.strip())
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following program :
print("Hello World"[::-1])
dlroW olleH
Hello Worl
d
Error
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code :
x = ['ab', 'cd']
for i in x:
i.upper()
print(x)
['ab', 'cd']
Error
No output
None of above
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code :
for i in [1, 2, 3, 4][::-1]:
print(i)
1 2 3 4
4 3 2 1
Error
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
9 questions
Python Functions

Quiz
•
Professional Development
10 questions
Web development 1

Quiz
•
Professional Development
15 questions
Python & SQL

Quiz
•
Professional Development
15 questions
Javascript Basics-2

Quiz
•
Professional Development
8 questions
Python BAsics

Quiz
•
Professional Development
15 questions
Programming and Data Structures Quiz

Quiz
•
Professional Development
15 questions
Lists and operators

Quiz
•
Professional Development
10 questions
Python Loop Statements

Quiz
•
Professional Development
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade