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

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

Share Your Current Mid Term Papers (Questions/Pattern) & Past Papers as well here to help each other. Thanks

Note:-

For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

&

.... How to Find Your Subject Study Group & Join ....

Attachments:

Midterm Paper Pattern For Spring 2017
Total Question = 26
Total Marks = 40

Time = 60 Mints

Objective
1 Marks Mcqs = 20

Subjective
2 Marks Short Questions = 2
3 Marks Short Questions = 2
5 Marks Short Questions = 2

***CS201***
Aik program likhen jismai aik item ka 15% tax display krwana hai. Program mai pehle user sy input lyn phr uska 15% tax display krwana hai
***CS201***
Aik program bnayen jismai user sy input lyn radius ki or switch statement sy 2 case likhen
1. Enter A or a to find area of circle.
2. Enter C or c to find Circumference of circle
Formula given thy ....
****CS201****
Aik 2D array bnayen jismai 4 rows hn or 2 cols or phr usko display krwayen(mene rand() use kia) phr usmai 1st row ky elements display krwayen msln agr aik array hai
23 43. 5. 84.
54. 42. 1. 75
To display ho
23 43 5 84

By amna mughal

todat my cs201 paper

mcqs mostly from moaaz collection (18 marks)

do while loop pe program likhna tha(5 marks)

& | operators ke bre me likhna tha(3 marks)

program me highlight lines ko explain krna tha (5 marks)

aik or program e likhna tha wo yad ni( 5marks)

program ka out put btana tha(3 marks)

Aik program likhen jismai aik item ka 15% tax display krwana hai. Program mai pehle user sy input lyn phr uska 15% tax display krwana hai
*******
Aik program bnayen jismai user sy input lyn radius ki or switch statement sy 2 case likhen
1. Enter A or a to find area of circle.
2. Enter C or c to find Circumference of circle
Formula given thy ....
*********
Aik 2D array bnayen jismai 4 rows hn or 2 cols or phr usko display krwayen(mene rand() use kia) phr usmai 1st row ky elements display krwayen msln agr aik array hai
23 43. 5. 84.
54. 42. 1. 75
To display ho
23 43 5 84

Midterm Paper Pattern For Spring 2017

Total Questions: 23

Total marks: 39

Time: 60 minutes

Objective:

18 MCQs = 1 mark each

Subjective:

3 marks short questions = 2

5 marks long questions = 3

5 marks

Write a program using switch statement that should prompt the user to enter radius of circle.

After getting input from user, it should display the following menu to user.

1. Press ‘A’ or ‘a’ to calculate area

2. Press ‘C’ or ‘c’ to calculate circumference

When user enters correct choice then corresponding task should be executed.

If user presses key other than above option then message “Option is not available” should be displayed on output screen.

Formula for:

Circumference of Circle:  2 × 3.14 × radiu

#include<iostream>

using namespace std;

main()

{

char choice;

cout"Choose what you want to calculate"endl;

cout"1. Press ‘A’ or ‘a’ to calculate area"endl;

cout"2. Press ‘C’ or ‘c’ to calculate circumference"endl;

cin>>choice;

switch(choice)

{

case 'A':

case 'a':

cout"Area of the circle is: "areaendl;

break;

case 'C':

case 'c':

circumfrence = 2 * 3.14 * radius;

cout"Circumfrence of the circle is: "circumfrenceendl;

break;

default:

cout"Option is not available"endl;

}

}

5 marks

Write down the output of following code segment.

int num[10] = {2, 3, 5, 8, 9, 10, 12, 15, 19, 20} ;

int *ptr = num ;

for (int i=0; i<10; i+=2)

{

cout *(ptr+i) “, ”;

}

1

2

3

4

5