- Type
- Quiz
- Course
- CS201 Introduction to Programming
- Size
- PDF 529 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 9. Download the file for all 9 pages.
Assignments (All Subjects) Quizzes & GDBs (All Subjects) Lecture Views Assistance Online Book Shop Seminar Project Handling (All Types of Projects - CS, Management, English, Math, and more) Internship /Organizational Reports (All Fields) Web/App Development for Other Shops / Businesses
90% To 100% Marks
1. The friend function of a class can have access
o to the protected data members o to public, private and protected data members ✅ o to the public data members only o to the private data members
Q2. Why is malloc() discouraged in C++ for objects?
o It is slower than new. o It only works with primitive types. o It cannot allocate memory. o It does not call constructors/destructors ✅
3. With user data type variables (Objects) self assignment can produce
o Logical error ✅ o Syntax error o Link error o Run time error
- Identify the correct method of adding two strings, s1 and s2. o s1+s2 ✅ o s1, s2+ o strcat(s1, s2); o s1+s2 and strcat(s1,s2) ✅
Q5. Which of the following is the correct definition of streams?
o It is an unordered sequence of bytes o It is an unordered sequence of bits o It is an ordered sequence of bits o It is an ordered sequence of bytes ✅
- Choose the operator which cannot be overloaded in C++. o | | o ? ✅ o ~ o &
Related CS201 files
All CS201 files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.