Cs 304 Midterm Online Quiz Cs 304 Midterm Important Repeated Mcqs Quiz Cs 304 MidTerm Important Repeated Mcqs Online Quiz Cs 304 quiz helps us to increase our knowledge 1 / 23 Keeping in view the principle of abstraction, which of the above information the company needs to saveas employee’s record? 2, 4 1, 3, 5 1, 2, 3 1, 2, 3, 4 2 / 23 Which operator can not be overloaded? The relation operator ( >= ) Assignment operator ( = ) Script operator ( [] ) Conditional operator (? : ) 3 / 23 Friend class and friend function can be used as an alternate to each other True False 4 / 23 C++ compiler does not allow to dynamically allocate memory for objects False True 5 / 23 this pointers are not accessible for static member functions. True False 6 / 23 Suppose there is an object of type Person, which of the following can be considered as one of itsattributes Name Age Work() Both Name and Age 7 / 23 In OOP a class is an example of _____ Data Type Abstract Type User Defined Type None of the given 8 / 23 A C++ class is similar to -------------------- Structure Header File Library File None of the given 9 / 23 A static member function cannot be declared. Static Implicit Explicit Virtual 10 / 23 Inheritance is a way to make general classes into more specific classes. pass arguments to objects of classes. improve data hiding and encapsulation providing class growth through natural selection. 11 / 23 The >= operator can be overloaded. True False 12 / 23 A member function having the same name as that of a class and a ~ sign with it is called, Constructor Getter Setter Destructor 13 / 23 In object orientated programming, a class of objects cans _____________ properties from another classof objects Utilize Borrow Inherit Adopt 14 / 23 We can get only one unique value which can be used by all the objects of that class by the use of, static variables dynamic variables instance variables data members 15 / 23 The technique in which we visualize our programming problems according to real life’s problems iscalled structured programming object oriented Programming procedural programming non of the given 16 / 23 Which operator can not be overloaded? The relation operator ( >= ) Assignment operator ( = ) Script operator ( [] ) Conditional operator (? : ) 17 / 23 The statement objA=objB; will cause a compiler error if the objects are of different classes. True False 18 / 23 Friend functions are _____________ functions of a class. None of given object member non-member data member 19 / 23 A static member function cannot be declared. Virtual Static Implicit Explicit 20 / 23 this pointers are not accessible for static member functions.True True False 21 / 23 What problem(s) may occur when we copy objects without using deep copy constructor? Dangling pointer Memory Leakage All of the given System crash 22 / 23 Inheritance is a way to organize data pass arguments to objects of classes. add features to existing classes without rewriting them. improve data-hiding and encapsulation. 23 / 23 Which part of an object exhibits its state? Operations Any public part Any private part Data Your score isThe average score is 0% 0% Restart quiz