JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
XII COMPUTER SCIENCE EM TEST 10
10. PYTHON CLASSES AND OBJECTS
one mark questions :
Prepared by S. Saminathan, GHSS- MUKHASAPARUR, CUDDALORE DT
https://sites.google.com/view/tn-computer-science/home
Sign in to Google
to save your progress.
Learn more
* Indicates required question
Register No
*
Your answer
Name
*
Your answer
School
*
GHSS MUKHASAPARUR
OTHERS
1. Which of the following are the key features of an Object Oriented Programming language?
*
1 point
Constructor and Destructor
Classes and Objects
Constructor and Classes
Constructor and Object
2. Functions defined inside a class:
*
1 point
Functions
Module
Methods
section
3. Class members are accessed through which operator?
*
1 point
&
#
.
%
4. Which of the following method is automatically executed when an object is created?
*
1 point
__object__( )
__del__( )
__init__( )
__func__( )
5. A private class variable is prefixed with
*
1 point
**
__
&&
##
6. Which of the following method is used as destructor?
*
1 point
__init__( )
__dest__( )
__del__( )
__rem__( )
7. Which of the following class declaration is correct?
*
1 point
class class_name
class class_name:
class class_name<>
class class_name[ ]
8. Which of the following is the output of the following program?
class Student:
def __init__(self, name):
self.name=name
print (self.name)
S=Student(“Tamil”)
*
1 point
name
tamil
error
self
9. Which of the following is the private class variable?
*
1 point
__num
##num
$$num
&&num
10. The process of creating an object is called as:
*
1 point
Constructor
Destructor
Initialize
Instantiation
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google.
Report Abuse
-
Terms of Service
-
Privacy Policy
Forms