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

Add your current paper

+ 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: 862

.

+ 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

My todays paper is 

10 mcqs from moaaz file 

5 marks question 

Define a structur inventory which  have followind data member

char array to store a string

int name

and 1 aur name tha 

short questions error remove krne thay code se.

1 pointer se related program dia tha uski output likhna thi.

Q.write a program that takes a string and then prints the string in reverse using pointers?? 5 marks

Princess thanks for sharing ur paper  

Attention Related Mid Term papers Spring 2013: All Fellows You don’t need to go any other site for current Mid Term papers Spring  2013, Because All discussed data/sharing of our members in this discussion are going from here to other sites. You can judge this at other sites yourself. So don’t waste your precious time with different links.

CS201 PAST PAPERS Virtual University, CS201 VU MID TERM Spring 2013 Paper, CS201 VU Midterm Current & Past Papers, CS201 VU PAST PAPERS, SPRING 2013 Current PAPERS, SPRING 2013 SEMESTER VU PAPERS, SPRING 2013 VU PAPERS, VIRTUAL UNIVERSITY HELP BLOG, Virtual University Help Website, Virtual University Past Old Midterm Papers, VU, VU ASSIGNMENT SOLUTION CENTER, VU ASSIGNMENT SOLUTIONS Help Website, VU Assignments SOLUTIONS BLOGS, VU BLOGS, VU Current Midterm Papers & Patterns, VU CURRENT PAPERS WEBSITE, VU MID TERM PAPERS, VU MIDTERM PAPERS, VU Midterm Papers Spring 2013, VU PAPERS, VU PAPERS WEBSITE, VU PAST MIDTERM PAPERS, VU Past Midterm Papers & Patterns Download, VU PAST PAPERS WEBSITE, VU SOLUTIONS WEBSITE, VU STUDY HELP BLOGS Website, VU WEBSITES

wellcome Tariq  bhai

Thanks

Sabika Welcome 

Write a programme which open the file named “this.txt”and using write ( ) function writes the string “introduction to programming” at the end of the file.At the end close the programme properly .               5

 

Write down the output of the following code segment .

 

            Intnum[10]=[2,3,5,8,9,10,12,15,19,20]

            Int*ptr=num;

For int i=o; i<10, i+=2

{

Cout(ptr+i)<,”;

}                                                                      5

 

When a pointer is incremented,what happens in the following cases?

a)single-dimensional array

b)two –dimensional array                                           3

    write down syntax in two different ways to intilize charcter array with strings”programming”               2

 

what happen  if the file “myfile.*does not exists and we still try to open it using the function file open (“myfile.txt”ios:out)?            2

) What happens when we use new and delete operator?
2) Question: Suppose an object of class A is declared as data member of class B.
(i) The constructor of which class will be called first? Answer A
(ii) The destructor of which class will be called first? Answer B(from past papers)
3) Write a program which defines five variables which store the salaries of five employees, using setw and setfill manipulators to display all these salaries in a column. Note: Display all data with in a particular width and the empty space should be filled with character x Output should be displayed as given below: (from past papers)
xxxxxx1000
xxxxxx1500
xxxxx20000
xxxxx30000
xxxxx60000

4)Overflow condition is used in repetition structure at which point it oocurs?
5)Is it possible to overlad operation for primitive data types.

6) Let we have a class,
class String
{
private: char buf[25];
}; Write code for assignment (=) operator function which assign one String object to other object. Your code should also avoid self assignment(from past paper)
7)What happen when an object is assigned to another object without overloading an assignment operator?
8)Write function name sum which accepts an integer as a argument in the function use a static variable to add the value passed to it as argument with each function call is the endl display the sum of value pass an argument:
9) Question No: 40 ( Marks: 10 ) Write a program which consists of two classes, Date and Person. Date class should contain three data members day , month , year and setter and getter function for these data members. Date class should also contain showdate() member function to display date.
Person class should contain three data members Name, Address, and Bday , where Name and Address are char pointer while Bday(Date of birth) is of type Date, Person class should further contain two member functions Display() and setdate().
CS201
Q1: (Marks 5) Write a program that defines a Template function named Add () which adds two numbers returns Sum. Define two variables of int type in the main and then call Add () function on that.
Output should be like this:
Adding numbers (don’t remember here what was written)
Enter first number:
12
Enter second number:
25
Sum=37
Q2: (Marks 5) Find the error in the program and then remove this. (Don’t remember the coding)
Q3: (Marks 5) Given the class Data
main()
{
class Date
{
private:
int day, month, year;
public:
day=01;
month=10;
year=2010
}
……………..Dont remember the lines
……………..
……………..
}
Use the dynamically allocation (don’t remember what)
In the last also free memory allocation.
Q4: (Marks 3) Why goto is not recommended to use in programmes?
Q5: (Marks 2) Write two types of data conversions used for used defined data types.
Q6: (Marks 2) Write the following using logical operators:
1. number is both multiple of 4 and 6
2. number is even but not 8
3. answer is either N or n
4. don’t remember this
Q7: (Marks 3) Write the output of the following if “int 5” is passed to the variable:
Template <class T);
T reciprocal (T x);
{
return (1/x);
}
(it was like something. Don’t remember exactly)
Q8: (Marks 3): How can we determine that dynamically memory allocation has been set successfully or not is C++ using the new operator?
Q.make a program using getline function
Q.make a program using template function select two floating point number and add them with add() function.(5)
Q.make a program take salary and pay tax of 5% if salary is less than 10,000 and pay 7% if the salary is greater than 10,000 using switch function.
Q.what are the function of new and delete ?
Q.what are the stream insertion overloaded operators?
Q Write a program which open a file name “this.txt” and then using write() function, writes the string “Introduction to Programming” at the end of the file.
Q What will be the output of the program:
Int x=10;
Int&y=x;
Y+=5;
Coutx;
Q A two dimensional array has 3 rows and 4 columns. Write down the syntax to initialize first element of all three rows of two dimensional array with value 2.
Q How can we initialize an object which is created as constant data member in another class?
Q An array delare int day[]={1,2,3,4,5,6,7}
How many elements have?
If the declaration ofarray is changed to int days[7]={1,2,3,4,5,6,7}
How many elements have?
CS201 Todays Paper

Q1: can we create an array of object for a class having defualt constrctor?
Q2: overloaded member function using ostream and istream show any example?
Q3: write c++ code to overload subscript [] operator for string class?
Q4: what does you meant by static data memberin c++:
Q5: explain the terms predecrenent and postdecrement ?

CS201 VU Current Midterm Spring 2013 Papers

CS201 VU Current Midterm Spring 2013 Papers

6 mcqs the

which bit is used as a single bits? 2 marks

write one major use of pointer? 2 marks

write general syntax of function? 2marks

what is file handing and it is used in c++? 3 marks

program from pointer or function ? 5 marks

what is file,and explain the concept of file handling? 5 marks

Another  Paper:

16 MCQs. 80% from past papers.
difference between random access ans sequential access file? (10 marks)
which bit is used as a single bits? 2 marks
what is file handing?(3 marks)
aik program ki output btani thi.(3 marks)
aik program bana tha jis ki vlue n ho oor usy matrix ma banan tha smthing like that. (ya mjy nai ata tha) [10 marks]

CS201 VU Current Midterm Spring 2013 Papers

CS201 VU Current Midterm Spring 2013 Papers

Q1: Write down the general syntax of switch statement. 2 Marks

Q2: Why we close a file after use? 2 Marks

Q3: When a pointer is incremented then how many bytes will it move to change its address?
2 Marks

Q4: If there are 2n element in an array then what would be the number of iterations required to search a number using binary and linear search? 3 Marks

Q5: write down the functions definition if we want to pass the argument to a function by reference without changing the values stored at address. 5 Marks

Q6: What will be the output of the following code segment 5 Marks

, int x= 6;
int y;
x = x 1;
y = x >> 1;
cout “x = ” x “\n”;
cout “y = ” y;

CS201 VU Current Midterm Spring 2013 Papers

CS201 VU Current Midterm Spring 2013 Papers

6 to 7 MCQs came form past papers

1 or 2 short questions came from past papers.

Some of the short questions that I remember were:

1. What is the difference between pre-increment and post-increment operator

2. One major use of pointer

3. If an array has elements 2^n, then what would be the maximum number of iterations required to search by binary and linear search? (I don’t remember the exact statement of the question) (answer is on page # 118)

4. Write the procedure of data insertion in middle of the files by Merge Method practiced in older systems? (answer is given in page # 218, in handouts)

5. Functions used to read/write more than a single character or a single line while using Files? (read chapter # 19, on page 221 i think this concept has been discussed)

In the long question, a program was given and we were required to point out the compilation errors and correct them.
It was easy.

RSS

Latest Activity

Taiba Rajput joined + M.Tariq Malik's group
20 minutes ago
+"Mission Impossible"++ replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion The World's most expensive Proposal
21 minutes ago
+"Mission Impossible"++ liked + "αяsαℓ " Ќąƶµяɨ •"'s discussion The World's most expensive Proposal
22 minutes ago
+"Mission Impossible"++ liked +Umar Amin+'s discussion Happy Birthday to my sweet and lovely friend mmm
23 minutes ago
Taiba Rajput liked + M.Tariq Malik's group IT430 E-Commerce
27 minutes ago
Taiba Rajput joined + M.Tariq Malik's group
29 minutes ago
M. Umair Shahid left a comment for Sami
32 minutes ago
+ Iuuoɔǝut + posted videos
51 minutes ago
Profile IconTalha Asad, MUHAMMAD SALMAN, FIDA MUHAMMAD KHAN and 9 more joined Virtual University of Pakistan
53 minutes ago
MUHAMMAD SALMAN liked Noorfatima's profile
1 hour ago
+ ! ❤️ ░S░I░N░G░E░R liked + ! ! ! ! ! MySterIouS's discussion ~ Khoobsorat Ahsaas ~
2 hours ago
+ ! ! ! ! ! MySterIouS posted a discussion
3 hours ago
+ ! ! ! ! ! MySterIouS replied to + Iuuoɔǝut +'s discussion Phly Dosti phir mohabbat ......
3 hours ago
+ ! ! ! ! ! ! BLaiRe ! !+ replied to +Umar Amin+'s discussion Happy Birthday to my sweet and lovely friend mmm
4 hours ago
+ ! ! ! ! ! ! BLaiRe ! !+ liked +Umar Amin+'s discussion Happy Birthday to my sweet and lovely friend mmm
4 hours ago
彡Tweety彡 ❤️ replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion The World's most expensive Proposal
6 hours ago
彡Tweety彡 ❤️ replied to + Iuuoɔǝut +'s discussion Phly Dosti phir mohabbat ......
6 hours ago
KAMRAN replied to + M.Tariq Malik's discussion MGT611 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 14-11-2019 in the group MGT611 Business & Labor Law
7 hours ago
+ Abb@s replied to + Iuuoɔǝut +'s discussion Phly Dosti phir mohabbat ......
7 hours ago
Profile IconKAMRAN and kiran ashraf joined + M.Tariq Malik's group
7 hours ago

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

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