Skip to content
VUBuddy

CS201 Quiz by MM

Introduction to Programming PDF 2.5 MBUpdated 23 Oct 2026
Quiz CS201 Quiz by MM PDF 2.5 MB
vubuddy.com
Type
Quiz
Course
CS201 Introduction to Programming
Size
PDF 2.5 MB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 2.5 MB

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 642. Download the file for all 642 pages.

Following code segmentThe name of the destructor is the same as that of a class proceding with a ~ sign

A pointer is variable for storing address

Constructor is a special function, called whenever we instantiate an object of a class

Symbolic constant PI can be defined as #define Pi 3.14

Object code is machine code but it is not and relocatable , executable

You can not overload operator

The default visibility for the data members of the class is private

What will be the output of the given code

inline int max( int a. int b )

if ( a>b ) return a; x=23 y=45

Constructor is a special type of function which has no return type

What will be the output of the given code #include<conio.h> void display( int = 1. float = 2.3. char = ' ' ): first = 1. second = 2.3. third = first = 5. second = 2.3. third = first = 6. second = 7.8. third =

< . <= . > . >are called operators Realtional

In C/C++ variable's name can start with symbol

  • Underscore

if (a>b && a>c) then the condition will be true only if Both a>b and a>c are true

+= . *= /= . etc are called Assignment operators

what will be the output of the following code, if the first case is true

switch (var)

case 'a' cout <<"apple"<<endl; case 'b' cout <<"banana"<<endl; case 'm' coun t <<"mango"<<endl; default cout<<"any fruit"<<endl; apple banana mango

" = " operator is used for Assigning value

A variable of character data type occupies bytes in memory

If we pass more than one arguments to a function then they are seprated by Comma ,

Which of the following is a reserve word for data types in C/C++ integer

What will be the result of arithmetic expression 6+48/4*3

In an n dimensional array, we use for loop(s) to populate the array n

In three dimensional array, we use for loop(s) to populate the array

A file is a group of related Related records

contains functions for manipulations of character data ctype.h

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.