0% found this document useful (0 votes)
4 views

C++ UQ

The document outlines examination details for an M.Sc. degree in Mathematics with a focus on C++ programming, including various sections with multiple-choice questions, short answer questions, and detailed essay prompts. It covers topics such as object-oriented programming, inheritance, constructors, operator overloading, and file handling in C++. The exam is structured into three parts, with varying marks allocated for different types of questions.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
4 views

C++ UQ

The document outlines examination details for an M.Sc. degree in Mathematics with a focus on C++ programming, including various sections with multiple-choice questions, short answer questions, and detailed essay prompts. It covers topics such as object-oriented programming, inheritance, constructors, operator overloading, and file handling in C++. The exam is structured into three parts, with varying marks allocated for different types of questions.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 37
Reg. NO, & vsesscssssnneneneennenernenen 6021 Q.P. Code : [21 21 26] (For the candidates admitted during 2021 onwards) M.Sc. DEGREE EXAMINATION, MAY 2024 e@ Fourth Semester Mathematics COMPUTER PROGRAMMING (C++ THEORY) Time : Three hours Maximum : 50 marks PART A — (10 x 1 = 10 marks) Answer ALL questions. le C++ provides various types of ——____— that include keywords, identifiers, constants, strings and operators (a) expression (b) tokens (c) structures (d) none @ —_____——— are widely used in C++ for memory management and to achieve polymorphism (a) Pointers (b) Array (c) Function (d) Class © Aniline function is expended during ———_ (=) compile-time (0) run-time (@ neverexpended (@)_endof the program Constant function in C++ ean be declared as (o) Void display () (b) Void display () const e (© Const void display () (@ Void const display () Which one is member function (a) Outside the class definition () Get data (©) Classes and objects (@) Putdata Constructor is executed when (a) Object goes out of scope () class is declared e (©) Anobject is created (@) An object is used 2 6021 header file used for manipulators, (a) (b) (@ A class can be derived from another derived class which is known as (a) Indirect base class (b) Inheritance path (© Multilevel inheritance (@) None ‘The ————— is used for writing to a given file location. (a) Input pointer (@)_ Open. (©) Output pointer (@)_ None Which header file is required to use to file /O operations? (a) (b) @ 3 6021 uw 12 13, 4, 16. (a) &) (@) (b) (a) &) (a) ) (a) (b) PART B— (6 x 3= 15 marke) ‘Answer ALL questions. Explain with examples, the uses of enumeration data types. Or Write in detail about the application of oop: e Explain default arguments in oop. Or Explain basic data types with figure. List some of the special properties of the constructor functions, Or Explain the main function with an examples. What does inheritance mean in C++. Or ‘What is virtual base class? Explain data conversion with a suitabl example Or Write a program overloading unary minus with output 4 6021 16. (@) ew i. (@) ) 18. (@) b) @° ) PART C — (6 x 5 = 25 marks) Answer ALL questions, Write detailed notes on basic concepts of oop, Or Discuss object oriented languages. What is the most significant advantage that you see in using references instead of pointers? Or Explain control statements in C++ with syntax example, Explain the function of default constructor. Or Explain math library function. Write the program hybrid inheritance. Or Describe how an object of a class that contains objects of other classes created. 5 6021 (a isc sses in oops. ) scuss virtual base classi 20 Jiscuss virt 1b la 8 i (b) xplain openin, les us col b) Explain o} ing fil g sing con: struc’ ‘tor, ———— 6021 Reg. NO. © crevccescesnsen 5502 Q.P. Code : [21 21 26] | (For the candidates admitted from 2021 onwards) M.Sc. DEGREE EXAMINATION, NOVEMBER 2023. Fourth Semester Mathematics COMPUTER PROGRAMMING (C++ THEORY) Time : Three hours * Maximum : 50 marks Answer ALL questions. PART A — (10 x 1 = 10 marks) Choose the correct answer : C++ permits initialization of the variables at run time which is referred to as’ initialization (a) static (b) dynamic (©) variable (d) runtime The ———— just like variables except that their values cannot be changed (@) basicconstant (>) number constant (© symbolic constant (@) named constant Which of the following is the default return value of functions in C++? @ (@) int (b) char (© float @ wid Where should default parameters appears in a funetion prototype? (a) To the rightmost side of the parameters list (b) To the leftmost side of the parameters list (©) Anywhere inside the parameter list, (@ Middle of the parameter list The declaration is similar to a struct declaration @ (a) class (b) private © data (d@)_ objects 2 5502 e ‘The keywords private and public used in C++ are known as (a) keyword labels (b) visibility labels (©) declaration labels (4) display labels ‘A derived class with only one base class, is called (@) Single inheritance (®) Multilevel inheritance (© Reusability (@ None overloaded by means of a member function, take no explicit arguments and return no explicit values (@) binary operators (&) unary operators (©) arithmetic operators (@ function operator is return type of is - open () function (@) int (b) bool © float @ char* 3 5502 10. uL 12. 13. 14, AA file can be opened in two ways by using the constructor function of the class and using the 1 member function oftheclass (a) open () (b) clear () (©) write () @ get () (b) PART B—(5 x 3= 15 marks) v.e (0) What are the applications of void datatypes Or 16. (a) @) Brolain polymorphism in OOP with (@) Explain the main function in OOP. ° o 17. @) (©) What is significance of an empty parenthesis in a funetion declaration? (@) How is a member function of a class defined? . Or © é @) (©) Explain multiple constructors in a class. b) (©) Explain operator overloading in OOP. ® Or What does inheritance mean in C++? : 5502 Write a syntax of the counting objects in a file. Or What are the input and output streams? Explain with an example. PART C — (6 x 5 = 25 marks) Describe inheritance as applied to OOP. Or Discuss object - oriented languages, Write a syntax function overloading in OOP. Or What is the main advantages of passing arguments by reference? Explain creating objects. Or Explain the function of default constructor. 5502 19. 20. (a) (b) (a) (b) Describe the syntax of the single inheritance in OOP. Or How many arguments are required in the definition of an over loaded unary operator? What is file mode? Describe the various fil) ( mode options available. Or Explain opening files using constructor. ———___ o « 5502 Ree. NO, & essesssssnsesseeeneeeneeentetenee 5023 Q.P. Code : [20 21 42] (For the candidates admitted during 2020 only) M.Sc. DEGREE EXAMINATION, NOVEMBER 2023. e Fourth Semester Mathematics COMPUTER PROGRAMMING (C++ THEORY) Time : Three hours Maximum : 75 marks SECTION A — (10 x 1 = 10 marks) Answer ALL the questions. Choose the correct answer. 1. The feature of which one object can interact another object is (a) Message reading (b) Message passing (c). Data transfer (d) Data binding 2@ Signed long int typical range equal to (a) Signed short int (b) Unsigned short int (c) Long int | (d) Double What is the scope of the variable declared in the user defined function? (@ Whole program (b) Only inside the {} block (©The main function (a) None of the above Unary scope resolution operator is denoted by @ @ $8 © %% @ Which of the following can be overloaded? (a) Object (b) Operators (© Both(a)and(b) (a) None How many types of constructors all thee in C++? @ 1 © 2 © 3 @ 4 While overloading binary operators using number function, it requires argument. f@) 2 ) 0 ol @ 3 2 5023 ce c6e 10. What are the things are inherited from a the base (a) Constructor and its destructor (b) Friends (©) Operator = () members (@ Allofthe above Which stream class is to only write on files? (@) ofstream © (@) fstream ifstream (©) iostream Which operator is used to insert the data into file? @ << © < (d) None of the above (@) >> SECTION B — (6 x 5 = 25 marks) Answer ALL the questions. (a) What kind of things can become objects in oop? Or (6) Why is an array called a derived datatype? 3 5023 12, 13. uu. 16. (a) ) (a) (bo) (a) () (a) ) When will you make an function inline? Why? Or 16. What is the main advantage of passing ®e What is a class? How does it accomplish in data hiding? arguments by reference? Or List some of the special properties of the | constructor functions. 7 Name the operators that can not be overloaded in C++. Or When do we make a class virtual? How do the U0 facilities in C++ aitter fr @ that in C2 Or What are the input and output streams? 4 5023 (a) (o) (a) (b) (a) (b) SECTION C — (5 x 8 = 40 marks) Answer ALL the questions, What is object-oriented programming? How is it different from the procedure oriented programming? Or Enumerate the rules of naming variables in cH, What is the most significant advantage that you see in using references instead of printers? Or Describe overloading of a function. Explain with an example, Distinguish between the merits and demerits of using friend functions. Or Explain the function of default constructor. 5 5023 19. 20. (a) (b) (a) (b) Define operator function? Describe the syntax of an operator function. Or Describe the syntax of multiple inheritance, Explain briefly the features of I/O syste) supported by C++. e Or Describe the various classes available for file operations. p@ Reg. Non & ceesscssesssssssssssnsseensssess 4242 Q.P. Code : [202142] (For the candidates admitted from 2020 onwards) @ M.Sc. DEGREE EXAMINATION, JUNE 2022. Fourth Semester Mathematics COMPUTER PROGRAMMING (C++ THEORY) Time : Three hours Maximum : 75 marks SECTION A — (10 x 1 = 10 marks) Answer ALL questions. Ls In C++, we can give several meanings to an operator, depending upon the types of arguments used, which was known as ——_ (a) Operator variable (b) Operator overloading (c) Operator loading @ (d) Operator manipulation 2. Which of the following are the pointer to member operator used in C++ @ oo: Gi) o:* Gi) —>* (iv) * (a) (i) and Gi) only (b) (ii) and (iii) only (c) @)and (iv) only =) (iii) and (iv) only many minimum numbers of functions How are need to be presented in C+ 1 (@ 0 ) @ 2 @ 3 Unary scope resolution operator is denoted by @ t (b) %% 0 @ Like constructors, can there be more than one destructors in a class? (@® yes ) no (© maybe (@ can't say When virtual Table is created? (a) Every class has V Table (b) Class inherited from other class (©) Class has at least one virtual function (@) When a class overrides the function of base class C++ provides for which allows @ derived class to inherit from many base classes. even if the base classes are unrelated. (@) Multilevel inheritance ©) Single level inheritance © Multiple inheritance (@) Hierarchical inheritance 2 4242 10. WL What is meant by multiple inheritance? (@) Deriving a base class from derived class (b) Deriving a derived class from base class (©) Deriving a derived class from more than one base class (@) None of the mentioned ‘The class fstream is used for (@) High level stream processing (b) Low level stream processing (©) Fill stream processing (@Allofthem ‘The 1/0 library provides how many stream base classes? (@) only one (b) two © three @ four SECTION B — (6 x 5 = 25 marks) Answer ALL questions. (@) What is procedure oriented programming? What are its main characteristics? Or () Describe, with examples the uses of, enumeration data types, 3 4242, 12. 1B. 4, 15, @) b) @ ) (@) ) @ (b) What is the most significant advantage that Wr te in using references instead of pointers? : | ie. Wat ie the sizicance of an empty |) sis in a function declaration? parenthesis ina fun eie What are objects? How are they created? Or Can we use the same function name for a member function of a class and an outside function in the same program file? If yes, how are they distinguished? If no, give reasons, A friend function can not be used to overload the assignment operator = Explain why? Or When do wee use the protected visibility specifier to a class member? ‘What is the role of file( ) function? When do 18. we use this function? Or What are the adi ing data in Tinaeyi the advantages of saving da 4 4242 1. (a) ) @ ) (@) SECTION C— (6 x 8 = 40 marks) Answer ALL questions Distinguish between the following terms: @ Objects and classes Gi) Data abstraction and data encapsulation Gii) Inheritance and polymorphism (iv) Dynamic binding ard message passing. Or Ilustrate with an examples, how the skew manipulator works What do we mean by overloading of a function? Explain with an example when do wwe use this concept. Or Describe the different styles of writing prototypes. What is a friend function? what are the merits and demerits of using friend functions? Or 5 4242 19. 20. (b) (a) (b) (@) (b) Describe the mechanism of accegsin, members and member functions following cases: (i) Inside the main program S data in the (ii) Inside a member function of the same , class (ii) Inside a member function of anothe:® class How many arguments are required in the definition of an overloaded unary operator? Or Describe the syntax of multiple inheritance. When do we use such an inheritance? What is the basic difference between manipulators and ios member functions in implementation? Give examples. : Or Describe how would you determine number of objects in a file. When do you need suchgy information? 6 4242 Reg. NO. f cecsssseessssssseenneeneennennn 4329 Q.P. Code : [17 21 16] (For the candidates admitted from 2018 onwards) @.5.. DEGREE EXAMINATION, NOVEMBER 2019. Fourth Semester Mathematics COMPUTER PROGRAMMING (C++ THEORY) Time : Three hours Maximum : 75 marks Answer ALL questions SECTION A — (10 x 1= 10 marks) 1. In OOP, a problem is considered as a collection of number of entities called (a) objects (b) functions @ (c) comments (d) none 2. The double slash comment basically is ———— line comment (a) Compiler (b) Semicolon (c) Asingle (dq) Multi #4 provides an additional use of —— declaration of generic pointers, (a) int (b) const (©) void (@) none ‘The C++ 1/0 system contains a hierachy of stream classes used for input and output operatio These clauses are declared in the header file (a) ostream (b) iostream (© iomanip (d) none A data member of a class can be declared as a and is normally used to maintain values common to the entire class (a) static (b) friend (©) const (@)_ none C++ provides a special member function constructor which enables an object to initialize itself when it is created, is known as ———— of objects, e (@) automatic initialization (b) constructor overloading (©) default argument (@ none 2 4329 10. ‘The computer does not support automatic type conversions for the user defined data types. We can use — to achieve this. (a) casting operator functions () friend function (©) operator function (@ none A class can be derived from another derived class which is known as (a) indirect base class (b)” inheritance path (©) multievel inheritance @ none A file can be opened in two ways by using the constructor function of the class and using the member function of the class. (a) open () (b) clear () (© write @ get ‘The class — supports many member functions for managing errors that may occur during file operations. (a) ios o) (© cof @ filebuf none 4329 2, 1B, M4 (a) o) @ ob) @) o) @) w) (a) w) SECTION B — (6 x 5 = 25 marks) How are data and functions organized in an / object ~ oriented program? 6 Or : the uses e { Describe, with examples, enumeration data types. What is the main advantage of passing arguments by reference? Or 7 How is cout able to display various types of, data without any special instructions? How is a member function of a class defined? or List some of the special properties of the constructor functions. What is type conversion? 1 . 18, e/@ Describe the various classes available for the operations. What is a virtual base class? Or What does the “current position” mean when applied to files? 4 4329 fa) (b) fa) (b) (@) &) ECTION C — (5 « 8 = 40 marks) Discuss an approach to the development of procedure ~ oriented programs, Or What do you mean by dynamic initialization of a variable? Give an example What is the most significant advantage that you see in using references instead of pointers? Or What is the basic difference between manipulators and ios member functions in implementation? Give examples, Can we pass class objects as’ function arguments? Explain with the help of an example, or Explain the function of default constructor. 5 4329 19. (a) (b) (a) (b) How many arguments are required in the definition of an over loaded unary operator? Or Describe how an object of a class that contains objects of other classes created? ® What is a file mode? Describe the various file mode options available? Or Describe the various approaches by which we can detect successfully. the end-of-file condition Reg. NO. & cusses: 1518 Q.P. Code : [17 21 16] (For the candidates admitted from 2017 onwards) e@ M.Sc. DEGREE EXAMINATION, APRIL 2019. Fourth Semester Mathematics COMPUTER PROGRAMMING (C++ THEORY) Time : Three hours Maximum : 75 marks Answer ALL questions. SECTION A — (10 x 1= 10 marks) Choose the correct answer : 1. The C++ program is a collection of (a) features (b) functions e@ (c) comments (ad) none 2. The double slash comment basically . is line comment (a) asingle (b) multi (c) compiler (d) semicolon ig one of the major improvements added to C++ functions, (a) main function (b) return type (@) _ function proto-typing (@) none e. Which one is include to use math library functions. (a) # include () #include (c) #include < math.h > (a) none ‘The —_—— declaration is similar to a struct declaration (@) class (b) private (© data (@) objects Which one is member function e (a) outside the class definition (b) classes and objects © get data @) putdata 1518 2 The — ‘operator must have atleast on operand that is of user-defined type : (a) friend (b) overloaded (©) membership operator (@ none ‘A derived class with only one base class, is called (@) Single inheritance (>) Multilevel inheritance (©) Reusability (@ None ‘The data transfer between ———— and (a) The console unit, the program (b) Error handling, memory (©) Floppy disk, hard disk (@) None : 1518 10. u 12, 13. 14. ‘The ————is used for writting to a given file location (@) input pointer (b)__ output pointer (© open (@)_ none @) b) fa) b) @ b) @ ) SECTION B — (6 x 5 = 25 marks) Explain polymorphism in OOP 2 illustrates. Or Explain cascading of insertion operators in oop. Explain default arguments in OOP. Or Discuss the main function in OOP. Explain limitations of ‘C’ structure Or Explain multiple constructors in a class. Explain operator overloading in OOP. @ Or Explain manipulating of strings usin operators, 4 1538 16. 16: 1, 18. 19. @ ) (@) ©) @)" ) @) b) @ (b) Write a syntax of the counting objects a 18 objects in a Or Describe an syntax operations on characters, SECTION input and output (6 8= 40 marks) Discuss object-oriented languages, Or Describe inheritance as applied to OOP. Write the syntax function overloading in oop. Or ‘The effect of a default argument can be alternatively achieved by overloading, Discuss with an example. Explain creating objects. or Write the program class implementation Explain the multiple inheritance. Or Write the program hybrid inheritance, 5 1518 20. (a) Explain opening files using constructor. Or (b) Write the program random access. Reg. No. :....... 4177 Q.P. Code : [04 21 16] (For the candidates admitted from 2004 onwards) M.Sc. DEGREE EXAMINATION, NOVEMBER 2018. @ Fourth Semester Mathematics COMPUTER PROGRAMMING (C++THEORY) Time : Three hours Maximum : 75 marks SECTION A — (10 x 1 = 10 marks) Answer ALL questions. ae What is meant by Procedure-Oriented Programming (POP)? 2. Define Dynamic binding. 3. What is the use of pointers in C++? @ What are the most commonly used manipulators in C++? 5. What is meant by function overloading? 6. List out the member functions, which contains the ios class to format the output. 10, UL 12, 13, Define static. What is a constructor? Is it mandatory to use constructors in a class? What is operator overloading? When is a friend funetion compulsory? (a) ) (@) (b) (@) ) SECTION B — (6 x 5 = 25 marks) Answer ALL questions. What is procedure-oriented programming? What are its main characteristics? Or What are the unique advantages of an object- oriented programming paradigm? What are the applications of void data type in C+? Or What do you mean by dynamic initialization of a variable? Give an example. e Describe the different styles of writing Prototypes, Or What is the role of file( ) function? When do We use this function? 4lm7 14. 16. (a) b) (a) ®) @ b) ) How is a member function of a class defined? or How do we invoke a constructor function? Name the operators overloaded in C++. Or When do we use the protected visibility specifier to a class member? that can not be SECTION C — (6x 8= 40 Marks) Answer ALL questions. Describe how data are shared by functions in a procedure-oriented program. Or Distinguish between the following terms: (Objects and classes (ii) Data abstraction and data encapsulation (ii) Inheritance and polymorphism (iv) Dynamic binding and message passing. Mlustrate with an example, how the setue manipulator works. or Describe the differences in _ the implementation of enum data type in ANSI Cand C++. 3 4177 18. 19. 20. (a) (b) (a) (b) (a) (b) What is the most significant advantage that you see in using references instead of pointers? Or How do are achieve function overloading? On what basis, the complier distinguishes between a set of overloaded functions havi the same name? What is a friend function? What are the merits and demerits of using friend functions? . Or Explain the function of default constructor. When in a friend function compulsory? Give an example. Or Describe -how an object of a class that contains objects of other classes created. 4 4177 Reg. No. : sessesseesensceensesssaseegeessnee 5353 Q.P. Code: [04 21 16] r (For the candidates admitted from 2004 onwards) M.Sc. DEGREE EXAMINATION, APRIL 2018. Fourth Semester Mathematics COMPUTER PROGRAMMING (C++ THEORY) 'Time : Three hours Maximum : 75 marks | PART A — (10 x 1 = 10 marks) Answer ALL questions. 1. What is meant by ADA? } Define polymorphism. Why is an array called a derived data types? What is the use of bitwise operation? What role does the iomanip file play? 10, ML. 13, What is the main advantage of passing argumen, 1 by references? When do we declare a member of a class static? What is destructor? 15. Write the use of casting operator. . Define abstract class, PART B— (5x 5 = 25 marks) Answer ALL questions. (a) Discuss on object oriented languages. 16. Or (©) Explain data abstraction and encapsulation (@) Discuss on manipulation. 1 Or (b) Describe about type cast operators. (@) Explain C++ stream classes, 18. Or ©) Define default arguments. What are th advantages of default argument? 2 535 @) () (a) (b) (@) ) (a) b) fa) ) Write detailed notes on friend function, Or Discuss on copy constructor, Define over loading binary operator and write the system of binary operator. Or Explain Ambiguity resolution in inheritance. PART C — (5 x 8=40 marks) Answer ALL questions. Describe the inheritance as applied to Oops with examples. Or Explain the benefits of Oops. Describe the expressions and their types. Or Explain control structures in C++. Discuss on the formatted —_ console 1/O operations in C++. Or Write a C++ program to read a matrix of size m xn from keyboard. 3 5353 Ce 19. (a) (b) 20. (a) (b) What is a constructor? Explain with sample C++ program. Or Explain the following : @) Arrays of objects. (ii) Objects as function arguments. Explain overloading binary operators wr friend function. Or Explain type conversion in detail. 2209 Q.P. Code : [04 21 16] (or the candidates admitted from 2004 onwards) M.Sc. DEGREE EXAMINATION, APRIL 2016. Fourth Semester Mathematics COMPUTER PROGRAMMING II/ COMPUTER PROGRAMMING (C++ THEORY) Time : Three hours Maximum : 75 marks PART A — (10 x 1= 10 marks) Answer ALL questions. 1. What is procedure oriented programming? w What do you mean by dynamic binding? 3. The size of a char array that is declared to store a string should be one larger than the number of characters in the string. Why? What are free store operators? When do we need to use default arguments in a function? 10. 1. 12, 13. Define inline function. How to use invoke a constructor function? Define constructor. Write any two rules for overloading operatorg 6. Define multilevel inheritance. PART B — (5 x 5 = 25 marks) Answer ALL questions. (a) Discuss on software evolution. Or ©) Discuss the main characteristics Procedure -oriented programming. (@) Explain the looping constructs in C++. Or 5 (b) Discuss the derived data types. 1. (@) Explain C++ stream classes, Or ©) Discuss the various forme of get () functiot supported by the i sed? y the input stream. How are they @ @) @ ) @ ) (@) () Write a short note on nesting of member functions. Or How to create objects in C++? Explain it. Explain data conversion with a suitable example. Or Explain the concept of operator overloading in detail. PART C — (6 x 8 = 40 marks) Answer ALL questions. Write detailed notes on basic concepts of oop. Or Describe the inheritance as applied to OOP. Describe the differences inthe implementation of enum data type in ANSI Cand C++. Or Explain control structures in C++. 2209 18. 19. 20. (b) (a) (b) Explain in detail on formatted 1/9 a Per, f al in C++. \ Or Describe the different styles of wi prototypes. What is a friend function? What ar merits and demerits of using friend func; Or Explain the following: @ ~~ Arrays of objects. Gi) | Objects as function arguments. How will you overload an unary oper? Explain it with a sample code. Or Describe the eae syntax of multi inheritance. When do we use such inheritance? ‘ Reg. No.: . 503 Q.P. Code : [04 21 16] (or the candidates admitted from 2004 onwards) » M.Sc. DEGREE EXAMINATION, APRIL 2014. Fourth Semester Mathematics COMPUTER PROGRAMMING (C++ THEORY) ‘ime : Three hours Maximum : 75 marks SECTION A — (10 x 1 = 10 marks) Answer ALL questions. All questions carry equal marks. Which of the following is true on object oriented programming? (a) Emphasis is on data rather than procedure —_ (b) Follows bottom up approach is program design (©) Data is hidden and cannot be aecessed by external functions (d)—All of the above ‘The insulation of the data from direct Acco 6. the program is called (a) Hiding (6) Encapsulation (@ Information hiding (@) All the above In C++ the initialization of the variables a 3 time is referred to as r @) (t) Dynamic initialization Active initialization (© Inactive initialization (@ Fixing initialization Which of the following operator is left to Rig. associative? ey © += (b) Unary @) Size of C++ also permits overloading of functions. Thi! known as —__ in Oop. ® Depolymorphism (6) Morphism © Polymorphism (4) Epimorphism describes the function interface to the compiler by giving details such as the number of type of arguments and the type of return value (a) Function definition (b) Function — prototype (©) Function call (@)_ None of the above Many operating systems test the return value called (a) Expert value (b) Exit value (© Export value (@ Simple value ‘The default member of the class are (a) Private (b) Public (© Protected (@) None Which of the following operator cannot be overloaded? (a) Unary (b) Binary operator ©: (@)_ None of the above 3 3503 10. Ll. 12, 13, ‘Acclass can inherit the attributes of two o, classes is known as 14 (a) Single inheritance (b) Multiple heritany (© More inheritance @) Class inheritanc, SECTION B — (6 x 5 = 25 marks) Ds. Answer ALL questions. if All questions carry equal marks. (a) Explain software evolution. Or (©) Discuss on object oriented languages. |, () Explain the user defined data types in C++ Or (>) Explain the reference variables with example, ! 7. (@) Write a short note on main function in C+ Or ©) Explai xplain any two 1 functions of ios class- 4 aol @ ) (a) ) (a) (b) (a) () Explain the nesting of Bol member functions in Or How will you create an array of objects to class? Explain with syntax. Write briefly the rules for overloading operators. Or Write a note on Hybrid inheritance. SECTION C — (5 x 8 = 40 marks) Answer ALL questions. Discuss the object-oriented language and applications of OOP. Or Explain the benefits of OOPS. Explain the memory management operations in detail. Or Write a C++ function to read a matrix of size im x n from keyboard. 3 5 350: 18. 19. 20. (a) (b) (a) (b) (a) (b) Explain inline functions in C++, Or Detail on formatted I/O operations in CH. Briefly explain the arrays within ch, in C++. Or 4 What is a constructor? Explain it with” sample programming code. Explain type conversion in detail. Or How will you overload an unary operat Explain it with a sample code. See

You might also like