Basic Python
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
Faiz keezhattil
Used 21+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output of 33 == 33.0
False
True
33
None of the Above
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How can we swap two numbers
a = 10
b = 20
in python without using third variable?
a = b
b = a
a,b = b,a
a=20,b=10
b = a
a = b
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following are valid ways to specify the string literal foo'bar in Python?
'foo''bar'
'foo'bar'
"foo'bar"
'foo'+'bar'
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
>>> print(r'foo\\bar\nbaz')
Which of the following is the correct output?
foo\\bar\nbaz
foo\bar\nbaz
foo\\barnbaz
foo\bar
baz
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is not a Python built-in function:
diff()
round()
isinstance()
map()
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is false statement in python
int(144)==144
int('144')==144
int(144.0)==144
None of the above
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output for −
'Hello world' [1:2]
Hello
e
world
Syntax error
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
11 questions
Technology Morning Tea Quiz
Quiz
•
KG - Professional Dev...
10 questions
SQL Commands - SELECT Statements
Quiz
•
Professional Development
10 questions
Day 3 C Programming quiz
Quiz
•
Professional Development
10 questions
Fun and Interesting Facts about Technology
Quiz
•
University - Professi...
10 questions
1 - Introducing SCRUM in SAFe
Quiz
•
Professional Development
7 questions
Thin & Light
Quiz
•
Professional Development
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
10 questions
Friday Fun
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
