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

www.vustudents.ning.com

 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

# CS201 Current Midterm papers Dated 11-05-2012 to 22-05-2012

CS201 Current Midterm papers Dated 11-05-2012 to 22-05-2012

+ 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?

Views: 3096

.

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

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

### Replies to This Discussion

THANKS

If every student of cs201 share his/her current midterm paper here we can get upto 90% marks in each subject.

Please Share your Current Papers Questions/Pattern here to help each other. Thanks

Total 26 Questions.

Sharing my subjective questions here! i finished my exam just a min ago ;)

Identify each of these functions as character conversion functions or manipulation functions.

1. int isprint( int c )

int tolower( int c )

How can we declare a character array, is it different from integer array declaration? Give one example of character array declaration.

Write the output of following program.

#include<iostream.h>

int main()

{

int a[5] = {5, 1, 15, 20, 25};

int i, j, k, l, m;

i = ++a[1];

j = a[1]++;

k = a[i++];

l = a[i--]*i;

m = a[++i] - 1;

couti" "j" "k " "l" "m;

}

Write the code for a structure called Inventory having the following elements:

• A character array named partName
• An integer named partNumber
• An integer named stock.

Write the code of a main() function which takes command-line arguments and returns an integer type value.

Write a program which defines two strings "Hello" and "Pakistan", merges both the strings using string manipulation function and displays on the screen.

Write the output of following program.

#include<iostream.h>

int main()

{

int a[5] = {5, 1, 15, 20, 25};

int i, j, k, l, m;

i = ++a[1];

j = a[1]++;

k = a[i++];

l = a[i--]*i;

m = a[++i] - 1;

couti" "j" "k " "l" "m;

}

Thx pls anyone put the solution to these if possible.

mcqs are mostly from the past papers files which are available here! :)

And wut was the program to write for 10marks.

there was not any question of ten marks.. just 2 qs of 5+5 marks -_-

• one question was to write a program which converts upper case letter to lower case///
• syntax of closing a program of myfile.txt

PLS share atleast the subjective questions other than just writing topic....

Guys n gals!! mauja maro....

Subject Questions...

Q1. Write a program which will input ten integers into a array then sort it and find maximum and minimum integer in array.

Hint: Finding maximum and minimum is quite easier in sorted array. (10 Marks)

Q2. open() & close() function memory utilization advantages. (3 marks)

Q3. write down a syntax in which we can find the size of structure in bytes. (3 Marks)

Q4. Difference between (*) and (&) in pointers. (mark 5)

Q5. int num is an array then assign its address to point myPtr. (Mark 5)

etc.... etc... etc... etc..

Note: pointers mein se zyada questions aaye hain. Ratte Mar lo... :)

Solution of Inventory Structure Questions.

Attachments:

## Latest Activity

16 minutes ago

18 minutes ago
27 minutes ago
32 minutes ago
32 minutes ago
Rana Ali posted a discussion

### Ek Shakhs Ko Dekha Tha Taroon Ki Tarah Hum Ne

33 minutes ago
35 minutes ago
Rana Ali liked Rana Ali's discussion تمہیں دل لگی بھول جانی پڑے گی
37 minutes ago
Esha mirza liked Jabra's discussion Mere Sth Aysa howA hai ap k Sth??
38 minutes ago
Esha mirza liked +¢αяєℓєѕѕ gιяℓ's discussion Galat fehmi..
38 minutes ago
38 minutes ago
Esha mirza liked Asad's discussion مایوسی
38 minutes ago

1

2

3