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
25 questions
Cardiovascular System Lesson

Quiz
•
12th Grade - University
25 questions
Energizing Everything

Quiz
•
4th Grade - University
25 questions
Python-Loops-Iterables

Quiz
•
12th Grade - University
21 questions
Python QCM

Quiz
•
University
24 questions
LeetCode Club First Contest

Quiz
•
University
30 questions
CODE4KITSW

Quiz
•
University
25 questions
Java Quiz

Quiz
•
University
30 questions
Quiz PHP dan Tipe Data

Quiz
•
1st Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
24 questions
Epithelial Tissues

Quiz
•
12th Grade
12 questions
Genetic Variations: Nondisjunction and Crossing Over

Quiz
•
9th - 12th Grade
58 questions
Biomolecule Test Corrections

Quiz
•
9th - 12th Grade
20 questions
Unit 2: Cell Energy Review

Quiz
•
9th - 12th Grade
17 questions
Mitosis and Cell Cycle

Quiz
•
9th - 12th Grade
13 questions
Nuclear Division Review

Quiz
•
9th - 12th Grade
30 questions
Test 1 Review

Quiz
•
12th Grade
15 questions
Biomolecules and Enzyme Functions

Quiz
•
9th - 12th Grade