Skip to content
VUBuddy

CS201 Quiz 4 2026 by Iqra Azhar

Introduction to Programming PDF 529 KBUpdated 23 Oct 2026
Quiz CS201 Quiz 4 2026 by Iqra Azhar PDF 529 KB
vubuddy.com
Type
Quiz
Course
CS201 Introduction to Programming
Size
PDF 529 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 529 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 1, 2, 3 of 9. Download the file for all 9 pages.

CS201 · Quiz No.4 Jan 2026 · VU Zone | Iqra Azhar Official · Our Services

 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

  1. 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 ✅

  1. Choose the operator which cannot be overloaded in C++. o | | o ? ✅ o ~ o &
All CS201 files →
CS201 Introduction to Programming All CS201 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.