Question 1 :
Select the real world Applications of Python:
Options :
a. Machine Learning
b. Python makes Robotics possible
c. All of the above
d. Scientific and Numeric Computing
Answers :
c. All of the above
Question 2 :
Which of these are Python IDE’s?
Options :
a. IDLE
b. Code Blocks
c. Spyder
d. Jupyter Notebooks
Answers :
b. Code Blocks
Question 3 :
Which is not a key feature of Python?
Options :
a. Interpreted Language
b. Used in Many Spheres
c. OOPS
d. Speed Fast Execution
Answers :
d. Speed Fast Execution
Question 4 :
The variable which notifies the Python Interpreter where to locate module
Options :
a. PYTHONSTARTUP
b. PYTHONPATH
c. PYTHONCASEOK
d. PYTHONHOMME
Answers :
b. PYTHONPATH
Question 5 :
Which is the famous Python Library used for GUI Applications?
Options :
a. Turtledemo
b. Textwrap
c. Tkinter
d. .n spect
Answers :
c. Tkinter
Question 6 :
Which is used to provide the Model, view and maps it to serve it to a URL and does the magic to serve it to the user.
Options :
a. Django
b. All of the above
c. Pyramid
d. Flast
Answers :
a. Django
Question 7 :
Which is not a namespace in Python?
Options :
a. Module
b. Local
c. Global
d. List
Answers :
d. List
Question 8 :
ldentify the Valid Statement
Options :
a. abc = 1000 2000 3000
b. abc = 1000 2000 4000
c. None of the Above
d. a_b_c = 1,000,000
Answers :
d. a_b_c = 1,000,000
Question 9 :
“//” in Python is a :
Options :
a. Floor Division Operator
b. Multi-quoted Lines
c. Comment
d. New line
Answers :
a. Floor Division Operator
Question 10 :
Which of the following
Code gives you the Integer as output ?
Options :
a. print(“1+2-3*2=”, 1+2-3*2)
b. print(“1 +2-3* 2 = “,1 +2-3)* 2)
c. print(“1 +2 -3* 2 =”, 1+(2-3)* 2)
d. print(“1+2- 3* 2 = “,(1+2)-3*2)
Answers :
d. print("1+2- 3* 2 = ",(1+2)-3*2)
Question 11 :
Python identifiers has maximum possible length. TRUE or FALSE?
Options :
a. False
b. True
Answers :
a. False
Question 12 :
Write the output of the below code:
print(“6**3=”,6**3)
Options :
a. 216
b. 2
c. 18
d. 0
Answers :
a. 216
Question 13 :
Write the output of the following Code :
sentence = “\”Always remember you are unique”
multi_Sentence = “‘Just everyone else”‘
print(“%s %s %s %(‘I like the quote’, sentence
multi_Sentence))
Options :
a. \”Always remember you are unique” Just everyone else
b. I like the quote “Always remember you are unique” Just everyone else
c. I like the quote Always remember you are unique Just everyone else
d. I like the quote \”Always remember you are unique” Just everyone else
Answers :
b. I like the quote "Always remember you are unique" Just everyone else
Question 14 :
Which of the code will give the output as “These are 7 pink roses”?
Options :
a. “These are %g %d roses” %7 %pink
b. “These are %d %s roses” 7, pink
c. “These are %d %s roses” %(7, pink)
d. “These are %d %s roses” 6[7, pink]
Answers :
c. "These are %d %s roses" %(7, pink)
Question 15 :
‘%x %d’ %(255, 255)
Options :
a. ‘255, 255’
b.’ff, 255′
c. ’15f, 15f’
d. Error
Answers :
b.'ff, 255'
Nice content
Thanks, we are glad that you liked our content!!
Pingback: Practice Pseudo code for Capgemini - CSE Things