Introduction to Python
Quiz
•
University
•
Practice Problem
•
Hard
Arkadeep Ghosh
Used 531+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct syntax to return the first character in a string?
x="Hello".sub(0,1)
x="Hello"[0]
x=sub("Hello",0,1)
x=substring("Hello",0,1)
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Identify the below expressions which would result in False?
a) False and True b) 1==1 or 2==1
c) 1==1 and 2!=1 d) True and 1==1 e) False or 1>2
c, d
a, e
b, c, d
a, c
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the output of the below code snippet?
num1=10
num2=7//2
num2*=num1
print(num2)
10
35.0
30
30.0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
y = 4
z = lambda x : x ** y
print z(3)
81
12
64
None of the above
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the below code snippet?
P 9
Q 10
R 2
S 6
Tuple is immutable, so it will throw an error
P 9
Q 10
R 2
S 6
T 6
None of the above
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the below code?
num_list = [10.5,30.5,-1.20,10.10]
num_list.insert(-3, -10.5)
num_list.pop(0)
print(num_list[0])
30.5
-10.5
10.1
-1.2
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the code given below?
got it
lcome to Hyd
come to Hyd
come to Hyde
Create a free account and access millions of resources
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
0 questions
python quiz
Quiz
•
0 questions
Introduction to Python Programming
Quiz
•
0 questions
Python Strings
Quiz
•
0 questions
Chapter 8 - cs1
Quiz
•
0 questions
Python Test
Quiz
•
0 questions
String Quiz
Quiz
•
0 questions
Mastering Python String Techniques
Quiz
•
0 questions
String Manipulation
Quiz
•
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
