Oops Quiz With Answers
Oops Quiz With Answers
QUESTIONS MARKS CO
SECTION-A
a) Data
b) Functions
c) Attributes
d) None of the above
a) Unique identification
b) Set of attributes
c) Set of states
d) Set of operations (behavior)
e) All of the above
4 A class describes ——- 1 CO1
a) Line
b) The line labeled with its name
c) Arrow labeled with its name
d) None
a) object instances
b) Classes
c) Objects
d) None
SECTION-B
11 Which of the following is a name that uniquely identifies one end 1 CO2
of an association?
a) Hierarchical Inheritance
b) Hybrid inheritance
c) Containership
d) None
13 A set of ________ models are used to approach a 1 CO2 1 CO2
complex system. a. Dependent w"
b. Independent
c. Both dependent and independent
d. Different
a. Class
b. Interaction
c. Interface
d. Collaboration
SECTION-C
21 The Object Oriented Modeling for building systems takes the ———– 1 CO3
as the basis.
a) System Analysis
23 In which of the following phase, the class objects and the 1 CO3
interrelationships of these classes are translated and actually coded
by using an object-oriented programming language?
a) Analysis
b) Design
c) Development
d) Testing
a) Analysis
b) Design
c) Implementation
d) None
25 The OMT consists of three related but different viewpoints 1 CO3
each capturing important aspects of the system
a) static
b) structural
c) data aspects
d) Static, structural, and data aspects
a) temporal
b) behavioral
c) control
d) Temporal, behavioral, and control
a) Behavioral
b) transformational
c) functional
d) All of the above
a) unary
b) binary
c) ternary or n-ary
d) All of the above
a) Link attribute
b) Derived attribute
c) Multi-valued attribute
d) None
SECTION-D
31 Which of the following is the correct syntax to add the header file in 1 CO4
the C++ program?
a) #include<userdefined>
b) #include "userdefined.h"
c) <include> "userdefined.h"
d) Both A and B
32 Which of the following is the address operator? 1 CO4
a) @
b) #
c) &
d) %
33 Which of the following features must be supported by any 1 CO4
programming language to become a pure object-oriented
programming language?
a) Encapsulation
b) Inheritance
c) Polymorphism
34 1 CO4
d) All of the above
The programming language that has the ability to create new data types
is called___.
a) Overloaded
b) Encapsulated
c) Reprehensible
35 d) Extensible 1 CO4
Which of the following is the original creator of the C++ language?
a) Dennis Ritchie
b) Ken Thompson
c) Bjarne Stroustrup
d) Brian Kernighan
36 Which of the following is the correct syntax to read the single character 1 CO4
to console in the C++ language?
a) Read ch()
b) Getline vh()
c) get(ch)
d) Scanf(ch)
37 Which of the following statements is correct about the formal parameters 1 CO4
in C++?
a) //Comment
b) /Comment/
c) Comment//
d) None of the above
a) High-level Language
b) Low-level language
c) Middle-level language
d) None of the above
SECTION-E
41 For inserting a new line in C++ program, which one of the following
1 CO5
statements can be used?
a) \n
b) \r
c) \a
d) None of the above
43 If we stored five elements or data items in an array, what will be the 1 CO5
index address or the index number of the array's last data item?
a) 3
b) 5
c) 4
d) 88
44 Which of the following is the correct syntax for printing the address of 1 CO5
the first element?
a) array[0];
b) array[1];
c) array[2];
d) None of the above
a) Contiguous
b) None-contiguous
c) Both A and B
d) Not mentioned
47 How many types of the array are there in the C++ programming language? 1 CO5