Quiz
Untitled
Questions in this quiz (5)
1By convention python scripts are stored as text files with extension?
- A.py
- B.p
- C.python
- D.pyt
2Python is considered an ________ language
- Ainterpreted
- Bcompiled
- Cinteractive
- Dcomposed
3At python language interpreter's prompt, consider>>> 3 + 2 if above input is given and enter is hit then output should be ?
- A2
- B3
- C3 + 2
- D32
- E5
- Fcompiling...
4What is the output?
number = 99
def check_x():
if False:
print(“number is greater")
elif False:
print("number is less ")
else:
print("number is equal to")
check_x()- Anumber is greater
- Bnumber is less
- Cnumber is equal to
- Dno output will be printed
5What is the output:
x =49
if x >= 49:
print(“XLIX")
elif x!=0:
print("exclamation")
else:
print("no exclamation")- Aexclamation
- Bno exclamation
- CXLIX
- Ddoesn't print anything
Information
- Description
- Quiz on Untitled, created by Kaitlin Troska on 12/02/2016.
- Author
- Kaitlin Troska
- Language
- English
- Views
- 0
- Rating
- No ratings yet Rate this quiz