Quiz
Python Basics
This quiz has a time limit, so it opens in the usual player.
Questions in this quiz (5)
1n = 7
m = 8
while n>0:
if m%2 != 0:
n = n-1
else:
m = m//2
print(m)
What is the value of m?- A1
- B0
- C2
- Dnone of the above
2arr = [2,3,4,9,8]
b = arr.sort()
print(b)
value of b is an array.- ATrue
- BFalse
3a = "Today is Quiz Day"
a = a.split()
print(str(a[4])+str(a[2]))
What will the output be?- AIndex Error
- BDayQuiz
- CQuizDay
- Deither of B and C
4There are [blank_start]8[blank_end] data types in Python
- A8
5What is used to define a block of code in Python?
- AIndentation
- BCurly Braces "{}"
- CParentheses "()"
- DQuotation " "" "
Information
- Description
- Primary 2 Python Quiz on Python Basics, created by Priya Nayak on 08/06/2018.
- Author
- Priya Nayak
- Language
- English
- Views
- 12
- Tags
- Rating
- No ratings yet Rate this quiz