Python Training Day-4 Quiz-4
Quiz
•
Computers
•
Professional Development
•
Hard
kamaljeet singh kalsi
Used 4+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
CS - Introduction to React Native
Quiz
•
Professional Development
10 questions
Computer Applications Technology
Quiz
•
Professional Development
15 questions
coding
Quiz
•
KG - Professional Dev...
15 questions
Code X Trade
Quiz
•
Professional Development
11 questions
JAVA QUIZ
Quiz
•
Professional Development
7 questions
Flutter_Q2 G4
Quiz
•
Professional Development
15 questions
DOT NET-SET1
Quiz
•
Professional Development
10 questions
pemrograman dasar
Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
