PrimeGyan
Home
O Level
M1-R5
M2-R5
M3-R5
M4-R5
CCC
Programming
Online Test
Hindi
Home
Online-test
Test
Python-practice-set-6
13
Python Practice Set 6
Python Practice Set 1
Python Practice Set 2
Python Practice Set 3
Python Practice Set 4
Python Practice Set 5
Python Practice Set 6
Python Practice Set 7
Python Practice Set 8
Python Practice Set 9
Python Practice Set 6
1.
Can two variables refer to the same object or not, with the ______ operator?
logical
Assignment
Identity
none of the above
2.
slice operator does not work on list and tuple
True
False
3.
The type of Python Variable and Expression ________ is decided?
Run Time
Compile Time
While writing the program
None
4.
In python, the in and not in operator is known as Membership Operator?
True
False
5.
a=[(1,1),(1,2),(1,3),(1,4)] What type of data is it?
array of tuples
list of tuples
invalid type
tuples of list
6.
Which keyword is used for function in Python?
assert
fun
def
function
7.
E stands for Entry in LEGB Rule.
True
False
8.
What is the above keyword to import module in python program?
include
use
import
addon
9.
________ tools that help in finding bugs or doing static analysis?
PyTypist
PyDows
PyChecker
None
10.
In Python, is Mutable built-in Data-type?
List, Sets & Dictionaries
List, Sets & Tuples
List, Sets & Numbers
String
11.
A Python documentation string is known as a docstring.
True
False
12.
What is Django, Pyramid and Flask in Python?
Framework
Markup language
Tags
None
13.
PEP Stands for .....................
Python Enclosed Proposal
Python Enherit Proposal
Python Enhancement Programming
Python Enhancement Proposal
14.
Python is a free, open source, statically typed, interpreted and portable language.
True
False
15.
and, or, not, if, elif, Else, for, while, break and as python are keywords, their total number is.
23
32
33
35
16.
What do the following symbols represent?
Decision
Initialization
Input/Output
None of Mentioned
17.
When an algorithm is written as a programming language, it becomes.
Flowchart
Program
Pseudo code
Syntax
18.
Which of the following is not a keyword of Python?
eval
pass
nonlocal
assert
19.
Which of the following expression has highest precedence?
Exponential
Addition
Multiplication
Parentheses
20.
Which of the following is true about python?
It supports automatic garbage collection.
It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java.
Both of the above.
None of the above.
21.
Which of the following environment variables tells the Python interpreter where to locate the module files imported into a program?
PYTHONPATH
PYTHONSTARTUP
PYTHONCASEOK
PYTHONHOME
22.
Which of the following data types is not supported in Python?
Numbers
String
Slice
List
23.
Which of the following dictionary functions returns all the keys of the dictionary?
getkeys()
key()
keys()
None of the mentioned
24.
Reserved keyword in python select() reserved keyword in python?
else
raise
import
All of the mentioned
25.
Which statement is correct ?
List is mutable & Tuple is immutable.
List is immutable & Tuple is mutable.
Both List and Tuple are Mutable.
Both List and Tuple are Immutable.
Submitting..
Welcome To PrimeGyan
Start test
Download