Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
13 views
2 pages
Unit4 QB US03CBCA23 CPP
Unit 4 Qb
Uploaded by
andrerussel968
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save Unit4_QB_US03CBCA23_CPP For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
13 views
2 pages
Unit4 QB US03CBCA23 CPP
Unit 4 Qb
Uploaded by
andrerussel968
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Unit4_QB_US03CBCA23_CPP For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save Unit4_QB_US03CBCA23_CPP For Later
You are on page 1
/ 2
Search
Fullscreen
SYBCA- Sem-ITT US03CBC. “A23 - CPP QUESTION B: ANK - UNIT -4 MCQ 1. The correct function name for overloadin, the addition (+) operator is ‘A. operalor+ B, toperator C. operator( +) D. operator: 2. Which statement about operator overload: jing is false? ‘A. New operators can never be created. C. The precedence of an operator cannot be changed by overloading. B. Certain overloaded operators can change the number of arguments they take. D. Overloading cannot change how an operator works on builtin types. 3. To overload the += operator A. Only the + operator needs to be B. Only the + and = operators need to overloaded. be overloaded. C. The += operator must be explicitly | D. The + and = operators need to be overloaded. overloaded implicitly. 4. Which one of the following operators can be overloaded? At B. New é D. Sizeof 5, Which one of the following operators cannot be overloaded? ‘A. the function call () B+ Cc. >> D. 6. Which of the following statements is NOT valid about operator overloading? ‘A. Only existing operators can be overloaded. B. Overloaded operator must have at least one operand of its class type. © The overloaded operators follow the syntax rules of the original operalor. D. none of the above. 7. A pointer is ‘A. A keyword used to create variables B. A variable that stores address of an instruction C. A variable that stores address of other variable D. Allof the above 8. Which of the following declarations are illegal? A. void *ptr B. char *strl = “xyz” C. char str2 = “abe” D. const “int pL ‘ANS. 1(A) 2.8) 310) 46) 5.0) 6.0) 7.0 8.0)SHORT QUESTIONS 1, What is Operator Overloading? 2, What is an operator function? Describe the syntax of an operator function, 3. How many arguments are required in the definition of an overloaded unary operator? 4, Can we overload destructor? Explain your answer. 5, List some of the rules for overloading operator. 6, List out five operators to he overloaded in C++. 7. List the operators that can’t be overloaded? 8, Explain the multiple meanings of the operators << & >> in C++. 9. How will you overload Unary & Binary operator using, member functions? 10. How will you overload Unary and Binary operator using Friend functions? 111. List out the operators that cannot be overloaded using Friend function. 12. What is this pointer? 13. Whats stream? 14, What are input and output stream? 15. What is the difference between opening, a file with constructor function and with open()? LONG QUESTION 1. Explain binary operator overloading with example. 2. Explain unary operator overloading with example. 3. Explain binary operator overloading, using, friend function. Give example. 4. Explain the restriction and limitations in overloading operator. 5. Describe the various classes available for file operations. 6. What is file mode? Describe the various file mode operations available. 7. Explain opening file using, open () 8. Explain read (), write(),seek(),close()
You might also like
Operatoroverloading
PDF
No ratings yet
Operatoroverloading
28 pages
Operator Overloading
PDF
No ratings yet
Operator Overloading
27 pages
05 A Operatoroverloading
PDF
No ratings yet
05 A Operatoroverloading
29 pages
Lecture 22 - Operator Overloading
PDF
No ratings yet
Lecture 22 - Operator Overloading
26 pages
SDF Operator Overloading
PDF
No ratings yet
SDF Operator Overloading
70 pages
Operator Overloading
PDF
No ratings yet
Operator Overloading
6 pages
Operator Overloading
PDF
No ratings yet
Operator Overloading
9 pages
Unit 3 RXO
PDF
No ratings yet
Unit 3 RXO
14 pages
Friend Function and Operator Overloading
PDF
No ratings yet
Friend Function and Operator Overloading
54 pages
Operators Overloading & Type Conversion
PDF
No ratings yet
Operators Overloading & Type Conversion
5 pages
Unit 02
PDF
No ratings yet
Unit 02
13 pages
Operatoroverloading
PDF
No ratings yet
Operatoroverloading
29 pages
A1 Complex Class Final
PDF
No ratings yet
A1 Complex Class Final
5 pages
Polymorphism in Inheritance and Operator Overloading
PDF
No ratings yet
Polymorphism in Inheritance and Operator Overloading
14 pages
C Unit 3
PDF
100% (1)
C Unit 3
27 pages
16 Operator Overloading
PDF
No ratings yet
16 Operator Overloading
18 pages
Type Conversions - No
PDF
No ratings yet
Type Conversions - No
10 pages
CSE1002 M6 2 Operator Overloading 20-05-23
PDF
No ratings yet
CSE1002 M6 2 Operator Overloading 20-05-23
62 pages
Chapter 5 Operator Overloading
PDF
No ratings yet
Chapter 5 Operator Overloading
9 pages
Lecture12 13 CPP
PDF
No ratings yet
Lecture12 13 CPP
46 pages
Operators Overloading With Example-2
PDF
No ratings yet
Operators Overloading With Example-2
10 pages
OOP Unit 3 Notes
PDF
No ratings yet
OOP Unit 3 Notes
28 pages
Compile Time Polymorphism - Operator Overloading - Operator Overloading
PDF
No ratings yet
Compile Time Polymorphism - Operator Overloading - Operator Overloading
12 pages
Title: C++ & Oops
PDF
No ratings yet
Title: C++ & Oops
13 pages
OOP Experiment No 1-1
PDF
No ratings yet
OOP Experiment No 1-1
4 pages
C++ How To Program Early Objects Version 9th Edition Deitel Test Bank Download
PDF
100% (24)
C++ How To Program Early Objects Version 9th Edition Deitel Test Bank Download
7 pages
Unit 4 Operator Overloading
PDF
No ratings yet
Unit 4 Operator Overloading
13 pages
Operator Overloading 1
PDF
No ratings yet
Operator Overloading 1
52 pages
Operator Overloadng
PDF
No ratings yet
Operator Overloadng
11 pages
Operator Overloading
PDF
No ratings yet
Operator Overloading
7 pages
Wee2 A
PDF
No ratings yet
Wee2 A
111 pages
Operator Overloading I: by Jitendra Singh Chauhan (Project Engineer) CDAC Noida
PDF
No ratings yet
Operator Overloading I: by Jitendra Singh Chauhan (Project Engineer) CDAC Noida
39 pages
Presentation 1
PDF
No ratings yet
Presentation 1
42 pages
Operator Overloading
PDF
No ratings yet
Operator Overloading
7 pages
CSE1002 Operator Overloading CPP
PDF
No ratings yet
CSE1002 Operator Overloading CPP
69 pages
OOP Super 30
PDF
No ratings yet
OOP Super 30
70 pages
Operator Overloading
PDF
No ratings yet
Operator Overloading
18 pages
Object Oriented Programming
PDF
No ratings yet
Object Oriented Programming
17 pages
Operator Overloading & Type Conversion
PDF
No ratings yet
Operator Overloading & Type Conversion
31 pages
Default Function Arguments, Ambiguity in Function Overloading and Operator Overloading
PDF
No ratings yet
Default Function Arguments, Ambiguity in Function Overloading and Operator Overloading
31 pages
Overloading Binary and Unary Operator
PDF
100% (1)
Overloading Binary and Unary Operator
10 pages
Operators Overloading in C++
PDF
No ratings yet
Operators Overloading in C++
3 pages
CHAPTER4
PDF
No ratings yet
CHAPTER4
15 pages
Unit2 MCQS
PDF
No ratings yet
Unit2 MCQS
19 pages
OOP Unit 3
PDF
No ratings yet
OOP Unit 3
59 pages
C++ MCQ
PDF
No ratings yet
C++ MCQ
2 pages
Oop - Manual - Practical 5 - New
PDF
No ratings yet
Oop - Manual - Practical 5 - New
9 pages
7) Operator Overloading and Type Conversions
PDF
No ratings yet
7) Operator Overloading and Type Conversions
45 pages
Unit 4
PDF
No ratings yet
Unit 4
76 pages
Unit 3
PDF
No ratings yet
Unit 3
108 pages
COMPBBE39312rObjrBh - OOP Unit 3 Polymorphism
PDF
No ratings yet
COMPBBE39312rObjrBh - OOP Unit 3 Polymorphism
69 pages
Constructors MCQS
PDF
No ratings yet
Constructors MCQS
7 pages
C++ Operators Overloading: Operator That Cannot Be Overloaded Are As Follows
PDF
No ratings yet
C++ Operators Overloading: Operator That Cannot Be Overloaded Are As Follows
6 pages
Polymorphism in C++
PDF
No ratings yet
Polymorphism in C++
20 pages
Module 3-1 Oops
PDF
No ratings yet
Module 3-1 Oops
61 pages
Overloading and Inline Function in C++
PDF
No ratings yet
Overloading and Inline Function in C++
19 pages
Unit 2 OperatorOverloading
PDF
No ratings yet
Unit 2 OperatorOverloading
17 pages
Cahpter 5 Operator Overloading
PDF
No ratings yet
Cahpter 5 Operator Overloading
36 pages
Lecture 17A Operator Overloading Spring 2025 Cs1004
PDF
No ratings yet
Lecture 17A Operator Overloading Spring 2025 Cs1004
28 pages