Python Paper
Python Paper
Python
A. Local
B. Global
A. Yes
B. No
C. Only in the special case
3. ____ variables are the variables that can be used in the entire program.
A. Global
B. Local
A. Global
B. Local
C. No, it has no keyword
A. global
B. local
C. No, it has no keyword
A. Yes
B. No
A. 2
B. 1 C. 0 D. 3
PacketPrep Exam Paper
Python
8.Which of the following is/are advantages of using object oriented
programming
1.Code reusability
3.Platform independent
9. Which of the following is correct with respect to the OOP concept in Python?
10. How many objects and reference variables are there for the given Python code?
class A:
print(“Inside class”)
A()
A()
obj=A()
A.2and1
B.3and3
C.3and1
D. 3 and 2
PacketPrep Exam Paper
Python
A. 1 2 B. 2 1 c. 3 2 d. 4 2
PacketPrep Exam Paper
Python
A. 5
B. 6
C. 0
D. Error