PrimeGyan
Home
O Level
M1-R5
M2-R5
M3-R5
M4-R5
CCC
Programming
Online Test
Hindi
Home
Online-test
Test
Python-practice-set-1
13
Python Practice Set 1
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 1
1.
Which of the following is not part of the execution flow during debugging?
Step Up()
Step Over
Step Out
Non of the above
2.
Which symbol is used to test the condition in a flow chart?
Terminal
Decision
Process
Input/Output
3.
the function of a compiler.
Put together the file and functions that are required the program
Translate the instructions into a form suitable for execution by the program
Load the executable code into the memory and execute them
allow the user to type the program
4.
What will be the output of int(1011)?
11
14
1011
None
5.
What is the output of print(9//2)?
4.25
4.5
4
None of the above
6.
Which of the following is a python tuple?
[5]
{1,2,3}
(1,2,3,4)
None of the above
7.
Which of the following commands will form a list?
list=list()
list=[]
both A and B
None of the above
8.
Which of the following refers to a mathematical function?
sqrt
rhombus
add
Module
9.
If a function does not have a return statement, then which of the following functions returns?
int
null
None
An exception is thrown without the return statement
10.
By using functions, we can avoid writing the same code over and over again in a program.
True
False
11.
How do we install Numpy in the system?
.install numpy
pip install python numpy
pip install numpy python
pip install numpy
12.
Which of the following is not true about set ?
Mutable data type
Does not Allows duplicate values
Data type with unordered values
Immutable data type
13.
Which of the following is not a keyword?
eval
nonlocal
pass
assert
14.
A namespace is a dictionary of variable names (keys) and their corresponding objects (values).
True
False
15.
Which of the following are integer values-
3.145
41
"125"
None of the above
16.
The keyword used to transfer control from a function back to the calling function is
jump
else
return
go back
17.
Which of the following is wrong?
x = 0b101
x = 03964
x = 19023
x = 0x4f5
18.
Which of the following precedence order is correct in Python?
Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
Multiplication, Division, Addition, Subtraction, Parentheses, Exponential
Division, Multiplication, Addition, Subtraction, Parentheses, Exponential
Exponential, Parentheses, Multiplication, Division, Addition, Subtraction
19.
Assert statement is used for error checking.
True
False
20.
Who developed the Python Programming Language?
Wick van Rossum
Rasmus Lerdorf
Niene Stom
Guido van Rossum
21.
Which of the following is the correct extension of Python file?
.python
.pl
.p
.py
22.
Which keyword is used for function in Python language?
Function
def
Fun
Define
23.
Which of the following character is used to give single-line comments in Python?
!
/*
#
//
24.
Which of the following is a truncation division operator in Python?
//
/
%
*
25.
What is the output of min(max(False,-3,-4), 2,7)?
-4
-3
-2
False
Submitting..
Welcome To PrimeGyan
Start test
Download