# www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

CS201 ALL Current Mid Term Papers & Past Final Term Papers at One Place from 03 June 2017 to 14 June 2017 Views: 2330

### Replies to This Discussion

Answer

2, 4, 6, 8, 10, 12, 14, 16, 18, 20

5 marks

Match column A with column B and re-write column B according to correct option.

 Column A Column B Analyze a problem statement Explain the functioning of the program Think about the reusability “Time please”, which time zone, which format Understand fact that computers are stupid Problem is divided into small segments and calculations Comment the code liberally. Helps to solve some other related problem

Answer

1. Explain the functioning of the program. Understand fact that computers are stupid

2. Problem is divided into small segments and calculations. Analyze a problem statement

3. Helps to solve some other related problem. Think about the reusability

4. “Time please”, which time zone, which format . Comment the code liberally.

3 marks

Convert the following while loop into a for loop.

int i = 1;

while (i <= n)

{

couti*i;

i++;

}

Answer

for(int i = 1; i <= n; i ++)

{

couti * i;

}

3 marks

Assume that you write a program to read the data from a text file. You have two options to do it, either reading the data character by character or reading multiple lines of data at a time. Which option do you think is more better and Why ?

Another Paper:

Q1: int*myarray[]={"amir"} how many memory bytes??

Q2: write the functionality of :
a- int*constIntptr=&x;
b- constint *intptr=&x;

Q3:name any three system software and explain how system software controls hardware.?

Q4- What is call by reference & call by value?

Q5- Write a structure program with members base,hypotenuse,and perpendicular?

Mid Term Paper Pattern ( Spring 2017)

Total Questions = 23
Total Marks = 38

Objective:

18 Mcq's = 18 Marks

Subjective:

Q No. 19 = 2 Marks
Q No. 20 = 3 Marks
Q No. 21 = 5 Marks
Q No. 22 = 5 Marks
Q No. 23 = 5 Marks

My Current Paper  ( 7 june 2017):

Q No. 19: ( 2 Marks)

Write the output of the following program:

int x = 5;

int y = 10;

x = x + 10 * 5 + 5;

y = x / 10 + 6;

cout x endl;

cout y endl;

Q No. 20: ( 3 Marks )

Write the output of the following program:

int num = { 51, 53, 47, 64, 39, 48 };

for ( j = 0; j < 3; j++ ) {

cout *(*( num + j ) + 1 ) endl;

}

Q No. 21: ( 5 Marks )

Write a Function Definition which takes 3 Arguments ( saleTax, incomeTax, booksPrice ) and calculates the net price. ( Net Price = saleTax + incomeTax + booksPrice ).

Q No. 22: ( 5 Marks )

Write a Program that swaps two integers without using the temporary third variable.

( Hint: Bitwise Operator can be used ).

Q No. 23: ( 5 Marks )

Wirte a Program that calculates and print the product of all odd integers from 1 to 10.

-------------------  Best Of Luck  --------------------

Asalamualikum guys my CS201 paper:

subjective paper:

Q19: marks 3

int num={12,51,34,54,14,55};

for(int j =0; j<3; j++)

cout(*(*num+j)+1)endl;

Q20: marks 3

a=3;

b=a++;

cout"a="a;

cout"b="b;

Q21: marks 5

write a code to read a string not greater than 20 character from keyboard, store it in on array and display it on screen.

Q22: marks 5

calculate the area of circle. you have to declare two variables for this, one is area and other is radius. take the value of radius from user.

hint: Area of circle= 3.14 *radius * radius

Q23: marks 5

write a program that prompts the user to enter a string & reverse the string using pointer & display the string in reverse order on the output screen. program must include the complete line include spaces.

best of luck guys.....

ASSLAM O ALIKUM

mcqz mostly from past paper.

1. float array declare krni the and then pointer pas krna tha.

2. utilty software kounsy hoty hn example.

3. net salary caluculate krni the c++ program likh kr dailywages= 1000 aur no of days

khud write krny thy  salary= dailywages*no of days.

4.string declare krni the "this is my country"

5. ak program. m, n values batani the after execution of program.

THANKS