python programming quiz
Quiz
•
Other, Science, Professional Development
•
12th Grade - University
•
Practice Problem
•
Hard
Md Miah
Used 16+ times
FREE Resource
Enhance your content in a minute
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
21 questions
UAE Switch Gathering
Quiz
•
1st Grade - Professio...
21 questions
Space Lesson - Black Holes
Quiz
•
9th - 12th Grade
22 questions
untitled
Quiz
•
6th Grade - University
22 questions
Transport documents abbreviations
Quiz
•
10th Grade - Professi...
22 questions
Data Centre Professional
Quiz
•
12th Grade
22 questions
Quiz 5 Review
Quiz
•
University
21 questions
S6C Revision
Quiz
•
10th - 12th Grade
21 questions
Plastic Pollution: How Humans...
Quiz
•
University - Professi...
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
Discover more resources for Other
10 questions
Unit 2: LS.Bio.1.5-LS.Bio.2.2 Power Vocab
Quiz
•
9th - 12th Grade
32 questions
Explore Mixtures and Solutions
Quiz
•
9th - 12th Grade
15 questions
Patterns of Evolution MCQ Reading
Passage
•
9th - 12th Grade
20 questions
F25 Taxonomy Review
Quiz
•
9th - 12th Grade
5 questions
Exploring Gene and Chromosome Mutations
Interactive video
•
9th - 12th Grade
10 questions
What is photosynthesis?
Lesson
•
10th - 12th Grade
17 questions
Explore Forces and Motion
Quiz
•
9th - 12th Grade
23 questions
APES Unit 3 Test Review
Quiz
•
11th - 12th Grade
