12th Computer Science Chapter- 10 Onemarks Online Test

Question 1: Which of the following ae the key features of an object oriented programming language?
A) Constructor and classes
B) Contructor and object
C) Classes and objects
D) Constructor and destructor
Question 2: Function defined inside a class
A) Function
B) Module
C) Methods
D) Section
Question 3: Class members are accessed through which operator?
A) &
B) .
C) #
D) %
Question 4: Which of the following method is automatically executed when an object is created?
A) __object__()
B) __del__()
C) __func__()
D) __init__()
Question 5: A private class variable is prefixed with
A) __
B) &&
C) ##
D) **
Question 6: Which of rhe following method is used as destructor?
A) __init__()
B) __dest__()
C) __rem__()
D) __del__()
Question 7: Which of the following class declaration is correct?
A) class class_name
B) class class_name<>
C) class class_name:
D) class class_name[]
Question 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")
A) Error
B) Tamil
C) name
D) self
Question 9: Which of the following is the private class variable?
A) __num
B) ##num
C) $$num
D) &&num
Question 10: The process of creating an object is called as
A) Constructor
B) Destructor
C) Initialize
D) Instantiation

Report Card

Total Questions Attempted: 0

Correct Answers: 0

Wrong Answers: 0

Percentage: 0%

Post a Comment

0 Comments