PrimeGyan
Home
O Level
M1-R5
M2-R5
M3-R5
M4-R5
CCC
Programming
Online Test
Hindi
Home
Online-test
Test
Python-practice-set-7
13
Python Practice Set 7
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 7
1.
In computer science, algorithm refers to a particular method used by a computer to solve a problem.
True
False
2.
Any algorithm is a program.
True
False
3.
Python is case sensitive when dealing with identifiers
True
False
4.
Can mathematical operations be performed on strings?
True
False
5.
The precedence level of addition and subtraction is the same.
True
False
6.
The expression int(x) means that the variable x is converted to an integer.
True
False
7.
values() is a function of dictionary that gets all the values ​​from dictionary?
True
False
8.
nested if-else is allowed in Python.
True
False
9.
The unichr(x) function in Python converts an octal string to an integer.
True
False
10.
In python, the frozenset(s)function converts a sequence of tuple into a dictionary.
True
False
11.
If t=(1,2,4,3) then which of the following option is wrong?
t[3]=45
print(t[3])
print(max(t))
print(len(t))
12.
Which is the correct operator for pow(x,y) ?
x^y
x^^y
x**y
None of the mentioned
13.
What is the return type of function id()?
int
float
bool
dict
14.
Which of the following cannot be used as an identifier?
Letters
Spaces
Underscores
Digits
15.
Which of the following is not a core data type?
Lists
Tuples
Class
Dictionary
16.
What is the return type of inf?
Boolean
Integer
Complex
Float
17.
Which of the following is a valid string constant in python?
“programmingâ€
“programming
programming"
$ programming $
18.
What will be the output of the following ‘python’ program? a=1 b=5 if(a==5 or b>10): print("I will certainly pass") else: print("I am not so sure about the result")
I will certainly pass
I am not so sure about the result
Error
None of the above
19.
The result of a relational operation is always
either True or False
is less than or is more than
is equal or less or more
All of the above
20.
If we want to store the values ​​in terms of key and value then which data type do we use.
list
dictionary
class
tuple
21.
What do we use to define a block of code in Python language?
Key
Brackets { }
Indentation
None of these
22.
Which of the following is wrong in Python programming language?
underscore can be used as variable names
Variable names can contain digits
Variable names can contain blank spaces
Capital letters can be used in variable names
23.
Can the value of a Tuple be changed?
True
False
24.
The items in the list are written inside curly braces { }?
True
False
25.
Duplicate items are entered in the set.
True
False
Submitting..
Welcome To PrimeGyan
Start test
Download