python programming quiz
Quiz
•
Other, Science, Professional Development
•
12th Grade - University
•
Hard
Md Miah
Used 16+ times
FREE Resource
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Write the output of the following code:
x=2
x=5
x=x+x
print(x)
7
10
4
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Write the output of the following code :
x=2
y=3
x+y+5
print(x+y)
8
6
10
5
3.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
What is a keyword?
Reserved Word
Predefined Word
Keywords are part of the syntax and they cannot be used as an identifier.
All of them
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which statement will display square of number (n)
print(n * n)
print(math.pow(n,2)) # math module is already imported
All of the above
Only First
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following data types is not supported in python?
String
Number
List
Slice
6.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
Select the reserved keyword in python-
else
raise
import
All of them
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this string operation s[2:5] , if s="hello world" -
lo
llo
llow
ell
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
22 questions
BSHM 2F - Quiz #2
Quiz
•
University
22 questions
Gananda Aides
Quiz
•
12th Grade
25 questions
English Grammar Quiz
Quiz
•
5th - 12th Grade
21 questions
2p-CPTPP & RCEP-Int.Org._2024
Quiz
•
University
21 questions
PHS: Edexcel cP7/cP8-F
Quiz
•
9th - 12th Grade
21 questions
Financial documents and Tariff systems
Quiz
•
12th Grade
21 questions
Refresher Quiz
Quiz
•
1st Grade - University
23 questions
Internet of Things
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Other
7 questions
Halloween - Myths & Legends
Interactive video
•
10th - 12th Grade
7 questions
Explore Magnetic and Electric Forces
Quiz
•
8th - 12th Grade
34 questions
Quiz Week 11 Review(Cell Cycle and DNA)
Quiz
•
9th - 12th Grade
14 questions
Nutrition
Quiz
•
9th - 12th Grade
25 questions
r vs K selected species
Quiz
•
9th - 12th Grade
12 questions
Identify Functions of Cell Organelles
Quiz
•
9th - 12th Grade
9 questions
Explore Magnetism and Magnetic Interactions
Quiz
•
8th - 12th Grade
32 questions
Bloodborne Pathogens (BBP) Review
Quiz
•
9th - 12th Grade
