We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

 CS201 Current Final Papers at One Place From March 01 to March 12, 2014

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 615

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

today was my cs201 papr...thank God acha ho gya... Mcqs mostly from Moaaz file.. what will be the output of the following code snippet? Int x; Int &y=x; Y+=5; Coutx; 10 what will be out put of given program? # include Using namespace std; Int main(); { Int n; N=77; Cout.width(6); Coutrightnendl; Cout.width(6); Coutleftnendl; Retrun 0; } Read the given code and explain the code functionality? (2 Marks) Matrix :: Matrix ( int row , int col ) { numRows = row ; numCols = col ; elements = new ( double * ) [ numRows ] ; for ( int i = 0 ; i < numRows ; i ++ ) { elements [ i ] = new double [ numCols ] ; for ( int j = 0 ; j < numCols ; j ++ ) elements [ i ] [ j ] = 0.0 ; } } Hint : This function belong to a matrix class, having Number of Rows = numRows Number of Columns = numCols What will be the output of following function if we call this function by passing int 5? template T reciprocal(T x) {return (1/x); } object and class are same? agree or diagree ? justify your coment?? frendship of class granted or taken kuch is trah ka tha.. Long question thora tuf thy...wo yad n hn..Best of luck..



Read more: cs201 - Virtual University of Pakistan http://vustudents.ning.com/group/cs201introductiontoprogramming/for...

Read more at http://vustudents.ning.com/group/cs201introductiontoprogramming/for...

CS201 Current Final Papers at One Place From March 01 to March 12, 2014

yesterday
Q41: What will be the output of following code snippet? (2 Marks)
Q42: Write down the general syntax for unary operator function? (2 Marks)
Q43: Why it is meaningless to declare a static variable inside main () function? (2 Marks)
Q44: Read the given code and explain the code functionality? (2 Marks)
Matrix :: Matrix ( int row , int col )
{
numRows = row ;
numCols = col ;
elements = new ( double * ) [ numRows ] ;
for ( int i = 0 ; i < numRows ; i ++ )
{
elements [ i ] = new double [ numCols ] ;
for ( int j = 0 ; j < numCols ; j ++ )
elements [ i ] [ j ] = 0.0 ;
}
}
Hint : This function belong to a matrix class, having
Number of Rows = numRows
Number of Columns = numCols
Q45: Write equivalent template function for the given function? (3 Marks)
Float Celsius (float Fahrenheit)
{
Float Celsius = 0.0;
Celsius = ((Fahrenheit – 32)*5/9;
Return Celsius
}
Q46: Which one of the given two methods is better to read from a file and why? (3 Marks)
Using stream insertion operator>>
Using get() function
Q47: Identify the errors in following member operator function and also correct them? (3 Marks)
math * operator (math m)
{
math temp;
temp.number= number * number;.2
return number;
Q48: Which one (copy constructor or assignment constructor) will be called in each of the following code segment? (3 Marks)
1) Matrix m1 (m2);
2) Matrix m1, m2;
m1 = m2;
3) Matrix m1 = m2;
Q49: Write a program using do-while loop to compute and display the product of all integers from 1 to 10? (5 Marks)
Q50: Write the main function in which you have to add three integer elements in template class queue, and then call print function. After that, remove two elements from the queue. (5 Marks)
Iss ke baad ik lengthy program or code likha hoa tha due to shortage of time I can’t wrote it.
Q51: Given is the code of Date Class. (5 Marks)
Class Date
{
Private:
Int Day;
Int month;
Int year;
Public:
Date ()
{
Day = 01;
Month = 01;
Year = 2000;
}
};
Write the code for a class person which contain three data number name, and DOB, where Name and Address are char pointer while DOB (Date of Birth) is an object of type Date. This class should also contain a default constructor to initialize all its data members using same default values.
Q52: Suppose an object has a pointer type as its data member. (5 Marks)
What happen when we assign that object using default assignment operator?
What happen if we use delete one object in the above mentioned situation?

____________________
yesterday
class first:
{
public :
class second

public :
void display ()
{
cout inner object called // less thn sign hud lga lo :( 
}
} ;
} ;
write main() function to create an object of inner class and then call it's function display().
---------------------
Given is the code of a data class
class data
{
private :
int day ;
int month ;
int year ;
public :
date ()
{
day = 01 ;
month = 01 ;
year = 2000 ;
}
};
write the code for a person which contains three data members Name, Address and DOB, 
where name and address are char pointers while DOB is an object of type date.
----------
class date
{
private :
int day, month, year ;
public :
date () 
{
day = 01:
month = 01 ;
year = 2000 ;
}
void display ()

cout day _ month _ year ; // mara less than sign :(
} ;
write the code of dynamically creating the array of 10 objects of type date using loop, calll the display () function for each of the object.
-----------------
In how many ways a unary operator can be overloaded for a class , write down the discription of each way?

_____________________________

yesterday
Some Questions From Today's Paper (March 01, 2014)
1. Suppose an object has a pointer as its data member. 5marks
a. By keeping in view above situation if we assign that object to another what will happen?
b. If we delete the object of other data member then what will happen?
2. Had to make a program user defined manipulation named octal. in which we had to manipulate decimal uptop octal. 5marks
3. What is default function argument give an example 5marks
4.write meaning of 2marks
if(&m !=this)
5. had to write the output of a program.
6. For instantous object which function will be called?
7. How can we use unary operator ?exact q ni yad raha :(
8. Which function is used to free the memory and if we don’t use what will happen?
9.Decalartion of overloaded stream insertion and stream extraction operator for the object d of type data?
__________________

yesterday
Short questions
1 what will be the parameterized constructor called?
2 write down general syntax of unary number operator function?
3 what is first parameter to stream insertion<> operator functions?
4 Is it possible to overload a destructor? Justify your answer?
5 what will be the output ?
Int main()
{
Int x=3;
Int &y=x;
6 what will be the output of the following code snippet?
Int x;
Int &y=x;
Y+=5;
Coutbr/>
Class myclass 
{
Private:
Tx;
Public:
Myclass (Ta)
{
X=a;
}
};
9 given line of code are three important function of class matrix
Describe each in one line 
Matrix ( int=0,int =0);
Matrix (constant matrix &)
~martix();
10 what will be out put of given program?
# include 
Using namespace std;
Int main();
{
Int n;
N=77;
Cout.width(6);
Cout/p>

_______________________________

yesterday
4 Ques.. of 5 marks ...
1 : Function ka output btana thaa.. bohat easy thaa
2 : Write the general syntax of a class that has one function as a friend of a class along with definition of friend function.
3 : 1 Code mein error thaa wo btana kisi ka colon miss thaa kisi ka semicolon
4 : yaaD nahiii taQreeban coding wala thaa
4 Ques.. of 3 marks ...
1 : What is the difference between function overloading and operator overloading
2 : what is the difference between structure and class.
3 : if the requested memory is not available in the system then what does calloc/malloc and new operator return?
4 : object overloading sy related thaa kode diya wa thaa
4 Ques.. of 2 marks ..
1 : How many types of templetes?
2 : Code thaa output btana thaa

CS201 Current Final Papers at One Place From March 01 to March 12, 2014

another paper .. Mcq's were mostly from past papers 

Write two types of conversion of user-defined data type?
What is the keyword ‘this’ and what are the uses of ‘this’ pointer?
What is inline function? An ordinary function is available to us then why we use inline?
What is constructor? How we call it in our program?
Declare it as input stream or output stream. get(), getline(), put(), putline()
Which unary operator is used to measure the size of variables in user-defined data type?
Write down piece of code that will declare a matrix of 3x3. And initialize all its locations with 0;
what is the return type or data of insertion operator

RSS

Latest Activity

+ ! ! dAd's anGeL ❤️ liked + ! ! dAd's anGeL ❤️'s discussion -_-
33 minutes ago
+ ! ! ! ! ! ! maho+++ replied to + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
3 hours ago
+ ! ! ! ! ! ! maho+++ posted a discussion
3 hours ago
+ ! ! ! ! ! ! Sm!Le updated their profile
3 hours ago
+ Տɑíɾɑ Ƙհɑղ + replied to Asad's discussion ربا سچیا تُوں تے آکھیا سی
3 hours ago
+ ! ! ! ! ! ! maho+++ replied to + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
3 hours ago
+ IUUOƆƎUT + replied to + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
3 hours ago
+ ! ! S░!░N҉░G҉░E҉░R​⭐️ replied to + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
3 hours ago
+ ! ! S░!░N҉░G҉░E҉░R​⭐️ liked + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
3 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH603 All Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group MTH603 Numerical Analysis
3 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH603 All Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group MTH603 Numerical Analysis
3 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MTH603 All Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group MTH603 Numerical Analysis
3 hours ago

Today Top Members 

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.