Document Details

WieldyPhotorealism

Uploaded by WieldyPhotorealism

Al-Junaid Tech Institute

JUNAID MALIK

Tags

CS304 midterm solved MCQs OOP

Summary

This document features solved multiple choice questions (MCQs) from a CS304 midterm exam, covering object-oriented programming (OOP) concepts. The questions and answers are a good study resource for students taking similar exams.

Full Transcript

AL-JUNAID TECH INSTITUTE AL-JUNAID TECH INSTITUTE SR MCQS QUESTION ANSWER NO 1 In expression c1*c2+c3-c4 which of the C1*c2 following will be executed in first order 2 Inheritance is a way to Add features to exist...

AL-JUNAID TECH INSTITUTE AL-JUNAID TECH INSTITUTE SR MCQS QUESTION ANSWER NO 1 In expression c1*c2+c3-c4 which of the C1*c2 following will be executed in first order 2 Inheritance is a way to Add features to existing classes without rewriting them 3 --------------- represent “IS A ”relationship Inheritance 4 Constructor without any parameter is Default constructor called: 5 Which of the following stores the address Pointer of a variable? 6 A Post-fix unary operator is implemented 1 dummy int argument in C ++ using Member function with 7 minimum classes required in a program 3 for implementing multiple inheritance 8 Which of the following statement(s) All of the given option describe constant member functions? 9 composition is a strong relation Composed object cant relationship because exist independency 10 How many interactions are there in the 3 following scenario Imran has the car. he drive the car and car has four wheels and doors 11 if we extend our model ,and the rest of Flexibility the model is not affected then it is called- ----- 12 choose correct declaration of Complex and overload*=1 operator for class complex operator*=(const as Member function complex & c) 13 Consider the following class A{int a,b,c; A,b,c public: A():B(10),C(0)a(7) }; 14 Class is a blue print of Objects AL-JUNAID TECH INSTITUTE 15 Suppose we have a class student which Student*object of the following statement is correctly declaring the pointer to the object of student class? 16 In c++ composition is relationship Whole, part between -------and------objects 17 Which of the following Depicts the a class is description of proper definition of class? a kind of object 18 in class attributes are represented by ---- data member, Member and------ respectively function 19 which of the following represents the Employee works for the two Association company 20 Entities in OO model are represented by Rectangle 21 Which of the following features of OOP is Inheritance used to derive a class from another? 22 In C ++ which of the following is defined

Use Quizgecko on...
Browser
Browser