
Advanced Python Quiz1
Authored by Himasai Polimetla
Specialty, Other, Computers
6th - 8th Grade
Used 92+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
1 min • 1 pt
To access mathematical functions in python, we need this line in our code.
import math functions
import math
from python import math
from py import mathematics
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the given function call?
9
num=9
print 9
return 9
3.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Which of the following prints all letters in alpha? (More than one answer)
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What Python command takes the answer from the user and assigns it to ur_name variable.
ur_name = val("Please enter your name")
ur_name = input("Please enter your name")
ur_name = print("Please enter your name")
ur_name = answer("Please enter your name")
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the given code?
['cat','dog','elephant','tiger']
['cat','dog','elephant']
['dog','elephant','tiger']
['dog','elephant','tiger','fox']
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the given code?
The car is awesome. The car wins the race
The car wins the race
The car is awesome
ERROR
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Given this class, how would you make McQueen win the race?
McQueen.win()
McQueen(win)
win.McQueen()
win(McQueen)
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?