0% found this document useful (0 votes)
31 views

STD 12 Chapter 6 Object Oriented Concepts Removed

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

STD 12 Chapter 6 Object Oriented Concepts Removed

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Chapter 6

Weightage
Object Oriented Concepts
8 marks
Answer Key - Previous Years’ Board Paper
Textual Exercise
(1) In object oriented methodology, the focus is on which of the following entities?
(A) Data (B) Functions (C) Objects (D) All of the above
(2)Which of the following best suits to java?
(A) A procedure Programming language (B) An object oriented Programming
(C) a Query language (D) All of the above
(3)Which of the following is used to distinguish objects from each other?
(A) Attributes (B) State (C) Behavior (D) All of these
(4)Which of the following is used to define common features of similar objects ?
(A) class (B) object (C) methods (D) All of the above
(5)Which of the following is not a visibility symbol?
(A) ~ (B) * (C) # (D) -
(6)Which of the following is provided using encapsulation?
(A) Data protection (B) Data sharing
(C) separation of data & methods (D) All of these
(7)Which of the following is enabled by data abstraction?
(A) Data protection (B) Data hiding
(C) To hide implementation details of method (D) All of these
(8) With which of the following options polymorphism cannot be achieved?
(A) Method overloading (B) Operator overloading
(C) Data hiding (D) All of these
(9) An aggregation model refers to which of the following relationships?
(A) ‘is-a’ relationship (B) ‘is-like’ relationship
(C)’ a-part-of’ relationship (D) All of these
(10) An inheritance model refers to which of the following relationships?
(A) ‘is-a’ relationship (B) ‘has-a’ relationship
(C)’ a-part-of’ relationship (D) All of these
(11) In class diagram, composition is represented using which of the following symbols?
(A) Empty diamond (B) Filled diamond (C) Empty triangle (D) All of these

Std. 12 (Science) | Oct. – 2014


(12) Which of the following is a way of programming ?
(A) Structure/Procedure Programming (B) Object oriented Programming
(C) both (A) and (B) (D) None of these
(13)How many specific properties must be supported by an object oriented computer language?
(A) 2 (B) 3 (C) 4 (D) 5
(14)In object oriented concept, the behavior is known as which of the following?
(A) Attribute (B) State (C) Method (D) All of these
(15) In object oriented programming, which of the following attribute describes the object?
(A) method (B) behavior (C) state (D) data field
(16) What is the full form of UML ?
(A) Unified Modern Language (B) Unified Model Language
(C) Unified Modelling Language (D) Unified Modern Language
(17)In class diagram, which of the following icon is not used to represent a class?
(A) name (B) value (C) attribute (D) behaviour
(18) In UML rotation, using which of the following syntax an attribute is declared ?
(A) [(visibility)]<attribute name>[:<attribute datatype>[=initial value]]
(B) [<visibility>]<attribute name>[:<attribute datatype>[=initial value]]
(C) [{visibility}]<attribute name>[:<attribute datatype>[=initial value]]
(D) [visibility]<attribute name>[:<attribute datatype>[=initial value]]
(19) In object oriented concept, which symbol is used to represent aggregation?
(A) Empty diamond (B) Filled diamond (C) Rectangle (D) Square
(20)Which of the following enables to represent data in which the implementation details are hidden?
(A) Encapsulation (B) Abstraction (C) Both (A) and (B) (D) Inheritance
(21)What is known as feature in object oriented programming allows defining more than one method having same name
but different signature in single class?
(A) Function or Method overloading (B) Messaging
(C) Encapsulation (D) Polymorphism

Compiled by Nuzhat Ibrahim Memon 7


(22)Polymorphism is achieved using how many types of overloading?
(A) 2 (B) 3 (C) 4 (D) 5
(23)Aggregation represents which type of relationship between two classes?
(A) Non exclusive (B) Exclusive (C) is-a-kind-of (D) None of these
(24)The class that is contained in owner class is known as ?
(A) Subject class (B) Part class (C) Aggregated class (D) All of these
(25) In object oriented terminology, which of the following statement is true for class?
(i) New class is called sub class or child class or derived class
(ii) Existing class is called super class or parent class or base class
(A) only (i) (B) only (ii) (C) Both (i) and (ii) (D) None of these
(26)Which of the following is not a visibility symbol ?
(A) ~ (B) # (C) * (D) +

Std. 12 (Science) | Mar – 2015


(27)Which of the following is not a visibility sign in class diagram?
(A) ~ (B) * (C) # (D) -
(28)Which of the following is the part of object oriented class diagram?
(A) Data encapsulation (B) Data abstraction (C) polymorphism (D) All of these
(29) In object oriented methodology, the focus is on which of the following entity ?
(A) data (B) functions (C) object (D) All of these
(30) An inheritance model refers to which of the following relationships?
(A) is-a relationship (B) has-a relationship
(C) a-part-of relationship (D) All of these
(31)What enables to represent and protect data in which the implementation details are hidden?
(A) Data encapsulation (B) Data abstraction (C) both (a) and(B) (D) Polymorphism
(32)What is called new class in object oriented terminology?
(A) sub class (B) child class (C) derived class (D) All of these
(33)What can be used to create models of object oriented software to help with design of an application?
(A) Unified Modelling Language (B) Unified Modelling Linux
(C) Unified Manufacturing Linux (D) Unified Manufacturing Language
(34)What object oriented program, attribute that describe the object are known?
(A) Behavior (B) Method (C) Data field (D) State

Std. 12 (Science) | Oct. – 2015


(35)Which of the following programming language does not support object-oriented programming?
(A) asp.net (B) java (C) PHP (D) C
(36)The way of programming can be divided into how many categories?
(A) 2 (B) 3 (C) 4 (D) 5
(37)Which of the following is used to define common feature of similar objects ?
(A) class (B) method (C) object (D) messaging
(38)In class diagram, a class is represented using which of the following symbols?
(A) name (B) behavior (C) attributes (D) All of these
(39)In UML, visibility can be represented using which of the following symbols?
(A) +, / , ~ ,* (B) - , # , + , _ (C) - , # , * , $ (D) ~, # , + , -
(40)In object oriented programming, which of the following property keeps the data safe from unintended actions and
inadvertent access by outside objects?
(A) Messaging (B) Polymorphism (C) Encapsulation (D) Data abstraction
(41) In object oriented programming, which of the following property enables to represent data in which the
implementation details are hidden ?
(A) composition (B) aggregation (C) abstraction (D) Messaging
(42)Which features of object oriented programming allows defining more than one method having same name but
different signature in single class?
(A) Messaging (B) Method overloading
(C) Aggregation (D) Encapsulation
(43)Polymorphism is achieved using how many types of overloading?
(A) 6 (B) 3 (C) 4 (D) 2
(44)When objects of one class are composed of objects of other class is called what ?
(A) aggregation (B) Encapsulation (C) Inheritance (D) Polymorphism
(45)Aggregation represents which type of relationship between two classes?
(A) exclusive (B) non-exclusive (C) same (D) None of these
(46) What is known as the class that is contained in owner class?
(A) Subject class (B) Part class (C) Aggregated class (D) All of these
(47)In object oriented terminology, sub class or child class or derived class indicated what for inheritance?
(A) base class (B) existing class (C) super class (D) new class
(48) In class diagram, which symbol is used to represent inheritance?
(A) Empty diamond (B) Filled diamond (C) Arrow symbol (D) Empty triangle

Compiled by Nuzhat Ibrahim Memon 8


(49)In inheritance, which type of relationship exists between super class and sub class?
(A) a kind of (B) exclusive (C) is-like (D) non-exclusive

Std. 12 (General) | Mar. – 2016


(50)When did object-oriented programming start?
(A) 1950 (B) 1960 (C) 1970 (D) 1980
(51)From the following what is best suited for java?
(A) Procedure Programming language (B) Query language
(C) Object oriented Programming (D) Structured Programming language
(52)From the following what is a template for multiple objects with similar features?
(A) Attribute (B) Behavior (C) class (D) Method
(53)Unified Modellinglanguage(UML) defined and maintained by whom?
(A) IMG (B) PMG (C) OMG (D) CMG
(54)Which of the following is enabled by data abstraction?
(A) Data protection (B) Data hiding (C) To hide implementation details of method (D) All of these
(55)In object oriented programming, data and methods that manipulate data are guarded against modification or
misuse by other components of program are known as what?
(A) Abstraction (B) Encapsulation (C) Messaging (D) Polymorphism
(56) In class diagram, aggregation is represented using which of the following symbols?
(A) Empty diamond (B) Filled diamond (C) Empty triangle (D) All of these
(57)In object oriented terminology, existing class is also known as which class in inheritance?
(A) super class (B) parent class (C) sub class (D)Both(A) or (B)

Std. 12 (Science) | Oct. – 2016


(58)In which year, object-oriented programming concepts started originating?
(A) 1960 (B) 1970 (C) 1980 (D) 1990
(59)The way of programming can be divided into how many categories?
(A) 2 (B) 3 (C) 4 (D) 5
(60) A computer language is object oriented, if they support which of the following object properties?
(A) abstract, extract, concept, inheritance (B) abstraction, encapsulation, polymorphism, inheritance
(C)abstraction, extract, polymorphism, inheritance (D) abstraction, capsulation, polymorphism, inheritance
(61)Which of the following presents a collection of classes, constraints and relationship among classes?
(A) object diagram (B) group diagram (C) model diagram (D) class diagram
(62)In UML notation, visibility can be private, protected, public and package, where protected is represented using
which symbol?
(A) + (B) - (C) # (D) ~
(63)Which of the following members of the class are not available directly to outside world?
(A) public (B) private (C) protected (D) package
(64)Which of the following is the mechanism of providing protection of data and methods of a program?
(A) Abstraction (B) Messaging (C) Encapsulation (D) Polymorphism
(65)Which of the following is a concept that hides the complexity, it says what is does, but not how it is done?
(A) Abstraction (B) Messaging (C) Encapsulation (D) Polymorphism
(66)Which of the following feature of object oriented programming allows defining more than one method having same
name but different signature in single class?
(A) Method underloading(B) Method overloading (C) Method uploading (D) Method downloading
(67)Which of the following represents non-exclusive relationship between two classes?
(A) Aggregation (B) Composition (C) Encapsulation (D) Messaging
(68)Aggregation represents which type of relationship between classes?
(A) is-a (B) is-a-kind-of (C) have-a (D) has-a
(69)In object oriented terminology, new class is called sub class or child class or derived class, whereas the existing class
is called as what?
(A) user class (B) top class (C) upper class (D) super class
(70) Which of the following refers to the capability of defining a new class of objects that inherits the characteristics of
another existing class?
(A) Encapsulation (B) Inheritance (C) Messaging (D) Abstract
(71)What is the full form of ADT?
(A) Absolute Data Type (B) Above Data Types (C) Abstract Data Types (D) Abstract Data Transfer
(72)Which of the following power of programming language who enables the programmer to create modular, reusable
and extendable code?
(A) Procedure language Programming (B) Object oriented Programming
(C) Object Open Programming (D) Procedure Programming

Std. 12 (General) | Mar. – 2017


(73)Java programing language uses which type of methodology to analysis, design and implementation of software?
(A) Structure/Procedure Programming (B) Object oriented Programming
(C) both (A) and (B) (D) System oriented programming language

Compiled by Nuzhat Ibrahim Memon 9


(74)A computer language is object oriented if it supports which type of object properties?
(A) Abstraction, inheritance (B) Polymorphism, Encapsulation
(C) Both (A) and (B) (D) None of these
(75)Unified Modelling language is defined by whom?
(A) IMG (B) PMG (C) OMG (D) CMG
(76)What is to be represented on the top section of class diagram, which is a representation of class?
(A) Name of the class (B) Attributes or properties of class
(C) Behaviour or operations or methods of class (D) All of these
(77)Which of the following is enabled by data abstraction?
(A) Data protection (B) Data hiding
(C) To hide implementation details of method (D) All of these
(78)What is the mechanism of providing protection to data and methods of a program in object oriented programming
language?
(A) Data Abstraction (B) Encapsulation (C)Messaging (D) Both (A) and (B)
(79) Inheritance is generally referred as which type of following relationships between two classes?
(A) Partial relationship (B) Full relationship
(C) Exclusive relationship (D) is-a kind of relationship
(80)In object oriented terminology, the existing class is known as what?
(A) super class (B) parent class (C) sub class (D) Both (A) or (B)

Std. 12 (Science) | Mar. – 2018


(81)Which of the following statement is true for object oriented programming language?
(i) it uses object as its fundamental building block
(ii) similar objects are classified using a concept of class
(iii) Abstraction, Encapsulation, Polymorphism and Inheritance is its basic properties
(A) only (i) & (ii) (B) only (ii) & (iii) (C) only (i) & (iii) (D) (i), (ii) & (iii)
(82)Which of the following best suits to java?
(A) A procedure Programming language (B) An object oriented Programming
(C) A query language (D)An editor
(83)Which of the following is not a section of the icon that is used to represent a class in class diagram?
(A) Name (B) Attribute (C) Behavior (D) Data type
(84)In a class diagram, which symbol is used for public visibility?
(A) - (B) # (C) + (D) ~
(85)Which of the following refers to representation of data in which the implementation details are hidden?
(A) Encapsulation (B) Abstraction (C) polymorphism (D) composition
(86)Polymorphism is achieved using how many types of overloading?
(A) four (B) three (C) one (D) two
(87)Which of the following represents non-exclusive relationship between two classes?
(A) Polymorphism (B) Composition (C) Inheritance (D) Aggregation
(88) In inheritance, what is called an existing class?
(A) derived class (B) super class (C) child class (D) sub class

Std. 12 (General) | Mar. – 2018


(89)In which way of programming, the focus is on writing function or procedures which operate on data?
(A) Object oriented Programming (B) Procedure Programming
(C) a Query language (D) All of the given options
(90) in object oriented programming, attributes that describe the object are known as what?
(A) Behavior (B) Method (C) Data field (D) object
(91)What is the middle section of class diagram?
(A) Name of the class (B) Behaviour or operation of class
(C) Attributes or properties of the class (D) Methods of class
(92)Which sign is used for ‘package’ visibility?
(A) - (B) # (C) + (D) ~
(93) In which feature, object oriented programming allows defining more than one method having same name but
different signature in single class?
(A) Encapsulation (B) Function or Method overloading
(C) Data abstraction (D) Aggregation
(94) Inheritance is generally referred to which kind of relationships between two classes?
(A) ‘is-a’ relationship (B) ‘is-like’ relationship
(C) ‘a-part-of’ relationship (D) ‘not-is-a’ relationship
(95) Composition model refers to which of the following relationships?
(A) Non exclusive (B) Exclusive
(C) ‘a-kind-of’ relationship (D) None of the given options
(96)From the following which mechanism providing protection to data and methods of a program?
(A) Encapsulation (B) Polymorphism (C) Composition D) Aggregation

Compiled by Nuzhat Ibrahim Memon 10


Std. 12 (Science) | Mar. – 2019
(97) Object oriented programming allows defining more than one method having same name but different signature in
single class is known as which of the following?
(A) Messaging (B) Method overloading
(C) Aggregation (D) Composition
(98)Which of the following is known as objects of one class are composed of objects of other classes?
(A) Message (B) Method overloading
(C) Aggregation or composition (D) Abstraction
(99)Which of the following represent non-exclusive relationship between two classes?
(A) Composition (B) Comparison (C) Aggregation (D) Abstraction
(100) An inheritance model refers to which of the following relationships?
(A) ‘has-a’ (B) ‘is-a-kind-of’ (C)’ a-part-of’ (D) ‘of-a’
(101) In class diagram, composition is represented using which of the following symbols?
(A) Empty diamond (B) Filled diamond (C) Empty triangle (D) All of these
(102)Which of the following can be used to create models of object oriented software to help with design of an
application?
(A) Unified Markup Language (B) Unified Modelling Language
(C) Unified Maseup Language (D) Unified Morphing Language
(103)Which of the following is not a visibility symbol ?
(A) *(star) (B) ~(tilde) (C) #(has) (D) –(dash)
(104)Which of the following is a concept that hides the complexity, it says what is does, but not how it is done?
(A)Polymorphism (B) Message (C) Abstraction (D) Data

Std. 12 (General) | Mar. – 2019


(105)In class diagram, a class is represented with an icon using a rectangle is splitted into how many sections?
(A) 2 (B) 3 (C) 4 (D) 6
(106) In java, what keeps the data safe from unintended actions and inadvertent access by outside objects?
(A) Data abstraction (B) Polymorphism (C) Encapsulation (D) Aggregation
(107)In UML, which of the following is used as visibility symbol?
(A) * (B) # (C) < (D) >
(108)Polymorphism is achieved using how many types of overloading?
(A) 2 (B) 3 (C) 4 (D) 6
(109) Which of the following is used to define common features of similar objects?
(A) class (B) object (C) methods (D) variable
(110)In UML, which symbol is used for private visibility?
(A) - (B) + (C) ~ (D) *
(111) Which of the following stands for UML ?
(A) United Main LAN (B) Unified Model Language
(C) Unified Modelling Language (D) Union Model Language
(112)Aggregation represents which type of relationship between two classes?
(A) Non exclusive (B) Exclusive (C) same (D) None of above

Std. 12 (Science) | Mar. – 2020


(113) Which of the following is provided using encapsulation?
(A) Data Protection (B) Data Sharing
(C) Separation of data and method (D) All of the above
(114) With which of the following options polymorphism cannot be achieved?
(A) Method Overloading (B) Operator Overloading
(C) Data hiding (D) All of the above
(115) An inheritance model refers to which of the following relationships?
(A) ‘is a’ (B) ‘has-a’ (C) ‘a-part-of’ (D) all of these
(116) Which of the following describes a group of objects with similar attributes and common behavior?
(A) Class (B) Object (C) Program (D) Diagram
(117) Which of the following is a mechanism of providing protection to data and methods of a program?
(A) Data abstraction (B) Encapsulation (C) Polymorphism (D) Aggregation
(118) Which of the following represents non-exclusive relationship between two classes?
(A) Aggregation (B) Composition (C) Inheritance (D) All of the above
(119) Which of the following is used to distinguish objects from each other?
(A) Attributes (B) State (C) Behavior (D) All of the above
(120) In Object-oriented terminology, with reference to Inheritance, existing class is also called which of the following?
(A) super class (B) parent class (C) base class (D) all of the above

Std. 12 (General) | Mar. – 2020


(121) Which kind of relationship is established between classes by composition and aggregation?
(A) A-kind-of (B) has-a (C) A-part-of (D) is-a
Compiled by Nuzhat Ibrahim Memon 11
(122) Which of the following is a general concept used to embody all the common features of a particular set of objects?
(A) procedures (B) polymorphism (C) Data field (D) Class
(123) In which of the following, the class that forms part of the owner class can exist independently and the life of an
object of the part class is not determined by the owner class?
(A) Inheritance (B) Aggregation (C) Polymorphism (D) Data-Abstraction
(124) By using which kind of programming language, flexibility is gained by being able to change or replace modules
without disturbing other parts of code?
(A) Procedural programming (B) Higher level programming language
(C) Object-Oriented programming language (D) ‘C’ Programming language
(125) Which are the two core elements for any computer program?
(A) Function and Method (B) Data and Layout
(C) Layout and Method (D) Data and Function
(126) ‘Teacher is a kind of person’ is an example of which of the following options?
(A) Aggregation (B) Inheritance (C) Data Abstraction (D) Encapsulation
(127) To identify the objects, we use the values of these attributes, these values are called what?
(A) Data field (B) Layout (C) State (D) Method
(128) In the syntax of attribute declaration in UML notation, which pair bracket values, users are supposed to specify?
(A) { } (B) [ ] (C) < > (D) ( )

Compiled by Nuzhat Ibrahim Memon 12

You might also like