Python Questions
5.33K subscribers
1 photo
7 links
Tasks for Beginners, Interview Questions, Regular expressions, simple coding problems, Quiz etc.

Useful Resources — »»» @python_resources_iGnani
Projects for Practice — »»» @python_projects_repository
Discussion Forum — »»» @python_programmers_club
Download Telegram
Which of the following are Python reserved words (keywords). Select all that is correct.
Anonymous Poll
50%
default
57%
None
68%
class
58%
and
32%
goto
February 19, 2020
employeenumber = 4398
EmployeeNumber = 4398
employeeNumber = 4398 # You are reading Python code, and these statements appear scattered in different locations throughout the code:
Anonymous Quiz
34%
These statements refer to the same variable.
66%
These statements refer to different variables.
February 20, 2020
What type of value will result from evaluating the following expression:
(' ', )
Anonymous Quiz
29%
str (string)
37%
tuple
7%
dict
16%
syntax error
11%
unicode (unicode string)
February 20, 2020
Which of the following function convert a string to a float in python?
Anonymous Quiz
17%
toFloat(x)
74%
float(x)
5%
decimal(x)
3%
long(x [,base] )
February 20, 2020
February 20, 2020
February 20, 2020
February 21, 2020
What is the output of the following program :
print('{0:.2}'.format(1.0 / 3))
Anonymous Quiz
21%
0.333333
36%
0.33
11%
0.333333:-2
32%
Syntax error
February 22, 2020
What is the output of this statement

print ((1,2,3) <(1,2,4))
Anonymous Quiz
53%
True
25%
False
4%
None
14%
Error
4%
None of the above
February 24, 2020
February 24, 2020
February 24, 2020
Which is faster in performance while searching around a million records plus?
Anonymous Quiz
23%
List
10%
Set
24%
Dict
20%
Tuple
13%
All have the same performance
9%
See the answer
February 25, 2020
February 25, 2020
What is the output of this statement?

16//3+16//-3
Anonymous Quiz
6%
1
51%
0
13%
-1
7%
True
13%
Invalid Statement
9%
Show the answer
February 26, 2020
February 26, 2020
y, z = 10, 15;
b = c = 0;
b = y - y + z; y -= (y + z); #What is the value of b & y respectively? Please Explain?
Anonymous Quiz
18%
15, 15
47%
15, -15
10%
-15, 15
14%
Error
10%
Show me the answer
February 27, 2020
February 27, 2020
x = 2,3

What is the value of x
Anonymous Quiz
22%
2
8%
3
41%
2, 3
23%
Error
7%
Show me the answer
February 27, 2020
What is the output of the following code (Python 3x). Explain why?

print (type (1/2))
Anonymous Quiz
13%
class int
5%
class number
62%
class float
9%
class decimal
4%
none of the above
6%
Show me the answer
February 28, 2020