Theory Practice Questions - Module 1
Theory Practice Questions - Module 1
Sc(Computer Science)
SEM-II
Introduction to OOP using C++
Theory Practice Questions on Module 1
Page 1 of 2
F.Y.B.Sc(Computer Science)
SEM-II
Introduction to OOP using C++
Theory Practice Questions on Module 1
Q38. Explain the components of a UML class diagram with an example.
Q39. How do you define a class in C++? Provide an example.
Q40. What is an object? How is an object created from a class?
Q41. Explain the concept of object-oriented programming with the help of classes
and objects.
Q42. What is the dot (.) operator in C++? How is it used?
Q43. How are member functions defined inside and outside a class? Provide
examples.
Q44. How can a member function access private data members of a class?
Q45. Explain the scope and visibility of local, global and static variables inside a
function in a class
Q46. Write a note on data members and member functions.
Q47. Explain the difference between private, public, and protected access specifiers
in C++.
Q48. What is a constructor in C++? Why is it used? Also give its characteristics.
Q49. What is a default constructor? Provide an example.
Q50. What is a constructor in C++? Explain its types with examples.
Q51. How does a parameterized constructor work? Provide an example.
Q52. What is a copy constructor? When is it called automatically?
Q53. What is a private constructor? Give its characteristics.
Q54. Define destructor in C++. What are its feature?. Give example.
Q55. What are accessor and mutator methods in C++? Why are they used?
Q56. What is a static data member in C++? How do you declare and initialize static
data members in a class? Provide an example.
Q57. Differentiate between static and non static members.
Q58. What is a static member function in C++? Explain
Q59. What are access specifiers in C++? Explain different types.
Q60. What is an array of objects in C++? How is it declared and initialized?
Page 2 of 2