SKT SOFTWARE
PYTHON TEST 1
[Link] developed Python Programming Language?
a) Wick van Rossum
b) Rasmus Lerdorf
c) Guido van Rossum
d) Niene Stom
2. Which type of Programming does Python support?
a) object-oriented programming
b) structured programming
c) functional programming
d) all of the mentioned
3. Is Python case sensitive when dealing with variables?
a) no
b) yes
c) machine dependent
d) none of the mentioned
View Answer
4. Which of the following is the correct extension of the Python file?
a).yp
b) .pl
c) .py
d) .[Link]
5. All keywords in Python are in _________
a) Capitalized
b) lower case
c) UPPER CASE
d) None of the mentioned
[Link] of python?
7. Python Indentation?
8.
a = 37
b = 270
if b > a:
print("B is greater than a")
output of the programme?
a. ("b is greater than a")
b. ("a is greater than b")
c. Error
d. ("B is greater than a")
9. Which of the following character is used to give single-line comments in Python?
a) //
b) #
c) !
d) /*
10. Which of the following is an invalid statement?
a) abc = 1,000,000
b) a b c = 1000 2000 3000
c) a,b,c = 1000, 2000, 3000
d) a_b_c = 1,000,000
11. programming language?
12. Which one of the following is not a keyword in Python language?
a) pass
b) eval
c) assert
d) nonlocal
13.. What arithmetic operators cannot be used with strings in Python?
a) *
b) –
c) +
d) All of the mentioned
14. Conditional statement syntax?
15. What will be the output of the following Python program?
i=0
while i < 5:
print(i)
i += 1
if i == 3:
break
else:
print(0)
a) error
b) 0 1 2 0
c) 0 1 2
d) none of the mentioned
16. working modes in python?
17. Which of the following is a Python tuple?
a) {1, 2, 3}
b) {}
c) [1, 2, 3]
d) (1, 2, 3)
18. python frame work give one example?
19. Which is the correct operator for power(xy)?
a) X^y
b) X**y
c) X^^y
d) None of the mentioned
20. Which one of these is floor division?
a) /
b) //
c) %
d) None of the mentioned
21 . Which of the following cannot be a variable?
a) __init__
b) in
c) it
d) on
22. Mathematical operations can be performed on a string.
a) True
b) False
23. Machine language?
24. The expression int(x) implies that the variable x is converted to integer.
a) True
b) False
25. Which of these in not a core data type?
a) Lists
b) Dictionary
c) Tuples
d) Class
26. Which of the following is not a complex number?
a)k = 2 + 3j
b) k = complex(2, 3)
c) k = 2 + 3l
d) k = 2 + 3J
27.
a = 37
b = 270
if b > a:
print("b is greater than a")
output of the programme?
e. ("b is greater than a")
f. ("a is greater than b")
g. Error
h. ("b is smaller than a")
28. What will be the output of the following Python statement?
1. >>>"a"+"bc"
a) a
b) bc
c) bca
d) abc
29. What will be the output of the following Python statement?
1. >>>print('new' 'line')
a) Error
b) Output equivalent to print ‘new\nline’
c) newline
d) new line
30. comments in python explain.
[Link] variable .
[Link] name rules?.
[Link] types in python explain.
[Link] list ,tuple, set, dictionary& give examples
[Link]& immutable? .
35. Python 61% 4 =?
36. Python Exponentiation symbol?
37.
Floor division with examples
38. Membership operators?
[Link] operator with example.
40. Identity operators with examples.
[Link],elif ,else define.
[Link] loop and for loop define.
[Link] Statement?
44. continue statement?
45.
What will be the output of the following Python code?
i=0
while i < 5:
print(i)
i += 1
if i == 3:
break
else:
print(0)
a) 0 1 2 0
b) 0 1 2
c) error
d) none of the mentioned
[Link] will be the output of the following Python code?
i=0
while i < 3:
print(i)
i += 1
else:
print(0)
a) 0 1 2 3 0
b) 0 1 2 0
c) 012
d) Error
[Link] level language? Give some examples
48. Interpreter explain?
[Link] code?
50. from which website we can get download python?