www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

# CS304 Grand Quiz + Mid Term Quiz Fall 2020 Prepartion Material Due Date: 28-12-2020

CS304 Grand Quiz + Mid Term Quiz Fall 2020 Prepartion Material Due Date: 28-12-2020

Dear Students, please share your Current Midterm Paper (Grand Quiz) Fall 2020. This will be helpful for many students who are looking for help/assistance regarding there Grand Quiz.

Let's help each other in Grand Quiz and make vustudents into a better community for VU students.

Just copy text of each MCQ of your Grand Quiz and paste here or save in a MS Word/PDF file and upload in replies.

VU Students team will post here Grand quiz about this subject, to help VU Students. Let's discuss here abouth Grand QUIZ, clear your concepts, improve learning and help each other. Good luck

For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

 CS304 + View All Featured Discussions

Views: 1843

### Replies to This Discussion

 CS304 + View All Featured Discussions

#CS304GRANDQUIZ2020 #cs304grandquizdecember2020 #cs304grandquiz
CS304 Grand Quiz Dec.2020 || 60 MCQS || cs304 midterm Grand Quiz

CS304 Grand Quiz Correct Solution Fall 2020 By Maria Parveen || CS304 Grand Quiz 2020 By VU Learning

# CS304 Grand Quiz Midterm 2020

### This is CS304 Grand Quiz. You can easily download the file by clicking here

https://www.mediafire.com/file/bl7ielm6w04139v/CS304_Grand_Quiz_Vu_...

# CS304 grand quiz 100% solved 2020

CS304 Object Oriented Programming Grand Quiz (Current Midterm Papers) Spring 2020

CS304 Grand Quiz Solved Spring 2020

27-06-2020

1. In case when we define the function outside the class then we must use the keyword_______

2. How can we differentiate between constructors and destructor
Answer: Destructors cant be defined by the programmer , but construtors can be defined by the progrmer

3. Which of the following relationship shows the inheritance
Answer: Doctor is a person

4. Which of the following can be created without any object of a class?
Answer: Array of objects

5. In C++ subscript operator must be overloaded as ______ of the class with one parameter of ____ type
Answer: Member Function. Int

6. Which of the following represents the two-way association?
Answer: Employee works for the company

7. Which of the following is an advantage of inheritance?

8. What term is used for hiding the details of an object from the other parts of a program?

9. Which of the following is a tangible entity?

10. Which one Is not the main feature of OOP?

11. The Concept of derived classes is involved in

12. How can we identify classes from a given problem statement?
Answer: All of the given options

13. What is meant by multiple inheritance ?
Answer : Deriving a derived class from base class

14. Which of the following issue(s) can be caused by the use of friend functions?
Answer: All of the given

15. If you do not initialize static variable of int type then it is automatically initialized with _____

16. Which of the following is the correct syntax of declaring static variable ‘ count’ of type int?
Answer : static count int ( not sure )

17. Copy constructor is called when:
Answer: An object is created in term of pre existing object.

18. Specialization means that derived class is behaviorally _____ with the base class

19. Which of the following can be used as an alternative to static members?

20 . ______ is repested by a line with an unfilled diamond hear towards the container

20. Which of the following classes are used by Amphibious vehicle to inherit characteristics ?
Answer: Both Land & Water Vehicle

21. Suppose we have a class student. Which of the following statement is correctly declaring the pointer to the object of student
Answer: Student * obj:

22. Abstraction hies the ____ details

23. A child inherits characteristics from its____

24. In OOP we can achieve reusability through? ]

25. Suppose there is an object of type person, which of the following can be considered as one of its attributes

26. Which of the following is a strong relationship?

# CS304 Grand Quiz || Object Oriented Programming fall 2020

#CS304_Grand_Quiz #CS304_MIDTERM #vuhelp
CS304 ||GRAND QUIZ //MIDTERM ||Spring 2020||Virtual University

# cs304 grand quiz mcqs 2020

cs304 grand quiz mcqs|cs304 grand quiz mcqs|cs304 grand quiz mcqs

CS304 Object Oriented Programming Grand Quiz (Current Midterm Papers) Spring 2020

CS304 Grand Quiz Solved Spring 2020

27-06-2020

id: 1
Question: A C++ class is similar to --------------------.

1: Structure
3: Library File
4: None of the given

id: 2
Question: In object orientated programming, a class of objects cans _____ properties from another class of objects.

1: Utilize
2: Borrow
3: Inherit

id: 3
Question: The technique in which we visualize our programming problems according to real life’s problems is called

1: structured programming
2: object oriented Programming
3: procedural programming
4: none of the given

id: 4
Question: Which operator can not be overloaded?

1: The relation operator ( >= )
2: Assignment operator ( = )
3: Script operator ( [] )
4: Conditional operator (? : )

id: 5
Question: To convert from a user-defined class to a basic type, you would most likely use

1: a built-in conversion operator.
2: a one-argument constructor.
3: an overloaded = operator.
4: a conversion operator that’s a member of the class.

id: 6
Question: _____, which means if A declares B as its friend it does NOT mean that A can access private data of B. It only means that B can access all data of A.

1: Friendship is two way only
2: Friendship is one way only
3: NO Friendship between classes
4: Any kind of friendship

id: 7
Question: Identify which of the following overloaded operator function’s declaration is appropriate for the given call?
Rational_number_1 + 2.325
Where Rational_number_1 is an object of user defined class Rational_number.

1: Rational_number operator+( Rational_number & obj);
2: Rational_number operator+(double& obj);
3: Rational_number operator+(Rational_number &obj, double& num);
4: operator+(double& obj);

id: 8
Question: Which part of an object exhibits its state?

1: Data
2: Operations
3: Any public part
4: Any private part

id: 9
Question: Inheritance is a way to

1: organize data.
2: pass arguments to objects of classes.
3: add features to existing classes without rewriting them.
4: improve data-hiding and encapsulation.

id: 10
Question: Suppose you have been given the following design, "A person has a name, age, address and sex. You are designing a class to represent a type of person called a patient. This kind of person may be given a diagnosis, have a spouse and may be alive". Given that the person class has already been created, what of the following would be appropriate to include when you design the patient class?

1: age and sex
2: registration date and diagnosis
3: sex and diagnosis
4: diagnosis and age

id: 11
Question: What problem(s) may occur when we copy objects without using deep copy constructor?

1: Dangling pointer
2: Memory Leakage
3: All of the given
4: System crash

id: 12
Question: A static member function cannot be declared.

1: Static
2: Implicit
3: Explicit
4: Virtual

id: 13
Question: ___ remain in memory even when all objects of a class have been destroyed.

1: Static variables
2: Instance variable
3: Primitive variables
4: None of given

id: 14
Question: Friend functions are _____ functions of a class.

1: None of given
2: object member
3: non-member
4: data member

id: 15
Question: What problem(s) may occur when we copy objects without using deep copy constructor?

1: Dangling pointer
2: Memory Leakage
3: System crash
4: All of the given

id: 16
Question: Suppose that the Test class does not have an overloaded assignment operator. What happens when an assignment a=b; is given for two Test objects a and b?

1: The automatic assignment operator is used
2: The copy constructor is used
3: Compiler error
4: Run-time error

id: 17
Question: a’A static member function can be called, even when a class is not ____.

1: Declared
2: Define
3: Instantiated
4: Called

id: 18
Question: ____ provide the facility to access the data member.

1: private function
2: accesser function
3: inline function
4: None of the given

id: 19
Question: The ____ relationship indicates that an object contains other objects.

1: ‘has-a’
2: ‘is-a’
3: ‘be
4: None of given

id: 20
Question: Which one of the following features of OOP is used to derive a class from another?

1: Encapsulation
2: Polymorphism
3: Data hiding
4: Inheritance

1

2

3

4

5

## VIP Member Badge & Others

How to Get This Badge at Your Profile DP

------------------------------------

Management: Admins ::: Moderators

Other Awards Badges List

## Latest Activity

29 minutes ago
иαвєєℓ αнмє∂ posted a discussion

### !!!!!!!Dard ki shiddat!!!!!!!!!!!!

40 minutes ago
4 hours ago
++ACHJ-- added a discussion to the group MGT503 Principles of Management

### MGT 503 Assignment 1 solution \\ 100% ok solution with detailed discussion

4 hours ago
++ACHJ-- joined + M.Tariq Malik's group

### MGT503 Principles of Management

4 hours ago
5 hours ago
Dream♥Girl updated their profile
6 hours ago
Fratino and HAROON "DOLPHIN POLICE" joined + M.Tariq Malik's group

6 hours ago