- Type
- Quiz
- Course
- CS201 Introduction to Programming
- Size
- PDF 2.5 MB
- 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 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
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.