Q.1.
What is it called where child object gets killed if parent object is killed?
Q.2.
Which of the following is associated with objects?
Q.3.
Choose the behaviour of Class: time
Q.4.
Which Feature of OOP illustrated the code reusability?
Q.5.
Pure OOP can be implemented without using class in a program. (True or False)
Q.6.
Which of the following best defines a class?
Q.7.
How do you rename a file?
Q.8.
What is the use of tell() method in python?
Q.9.
The readlines() method returns ____________
Q.10.
If a function doesn’t have a return statement, which of the following does the function return?
Q.11.
What is the type of each element in sys.argv?
Q.12.
How many keyword arguments can be passed to a function in a single function call?
Q.13.
What is the value stored in sys.argv[0]?
Q.14.
Which of the following statements is false about recursion?
Q.15.
To read two characters from a file object infile, we use ____________
Q.16.
To read the next line of the file from a file object infile, we use ____________
Q.17.
What is the type of sys.argv?
Q.18.
Where is function defined?
Q.19.
Which are the advantages of functions in python?
Q.20.
Java uses both compiler and interpreter