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
Similar Resources on Wayground
21 questions
Python 3

Quiz
•
University
23 questions
Flowcharts

Quiz
•
8th Grade - University
24 questions
Booleans and Comparison Statements

Quiz
•
9th - 12th Grade
25 questions
PAS_PWPB

Quiz
•
12th Grade
30 questions
Python conditionals Elidon Mema

Quiz
•
10th - 12th Grade
21 questions
Flow of Energy in an ecosystem

Quiz
•
9th - 12th Grade
25 questions
KEJURUAN MULTIMEDIA

Quiz
•
9th - 12th Grade
21 questions
DEC5114 Tutorial 08

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
26 questions
AP Biology Properties of Water

Quiz
•
12th Grade
38 questions
Water Cycle and Groundwater

Quiz
•
9th - 12th Grade
10 questions
Exploring the Four Types of Human Body Tissue

Interactive video
•
9th - 12th Grade
45 questions
Cell Unit review/remediation

Quiz
•
9th - 12th Grade
30 questions
Unit 2C Progress Check (Biosphere 3)

Quiz
•
9th - 12th Grade
51 questions
Unit 02 Biomolecules REVIEW

Quiz
•
12th Grade
10 questions
AP Biology Functional Groups Quiz

Quiz
•
11th - 12th Grade
30 questions
MCHS Common Science Assessment

Quiz
•
12th Grade