Python Training Day-4 Quiz-4
Quiz
•
Computers
•
Professional Development
•
Hard
kamaljeet singh kalsi
Used 4+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will be the output of the following Python code?
>>>print (r"\nhello")
a new line and hello
\nhello
the letter r and then hello
error
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will be the output of the following Python statement?
>>>print('new' 'line')
Error
Output equivalent to print ‘new\nline’
newline
new line
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will be the output of the following Python code?
>>>str1="helloworld"
>>>str1[::-1]
dlrowolleh
hello
world
helloworld
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will be the output of the following Python code?
print(0xA + 0xB + 0xC)
0xA0xB0xC
Error
0x22
33
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will be the output of the following Python code?
>>>example = "snow world"
>>>example[3] = 's'
>>>print example
snow
snow world
Error
snos world
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What function do you use to read a string?
input(“Enter a string”)
eval(input(“Enter a string”))
enter(“Enter a string”)
eval(enter(“Enter a string”))
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What keyword would you use to add an alternative condition to an if statement?
else if
elseif
elif
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?
Similar Resources on Wayground
13 questions
Cycle 4: Lesson 11 Review.
Quiz
•
Professional Development
12 questions
Neural Networks Basic with Python
Quiz
•
University - Professi...
11 questions
computer
Quiz
•
KG - Professional Dev...
11 questions
Java Fundamentals
Quiz
•
Professional Development
15 questions
ECDL/ICDL Computer Essentials
Quiz
•
KG - Professional Dev...
10 questions
04 - Python - Lists
Quiz
•
University - Professi...
15 questions
BrightChamps Technical Round - C language
Quiz
•
Professional Development
10 questions
02 - Python - Introduction & Installation
Quiz
•
University - Professi...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development
