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

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

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

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

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

Views: 3191

### 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:

1

2

3

4

5

## Latest Activity

Nimra Ali, Urooj Amir and Mujahid joined Virtual University of Pakistan
4 minutes ago
≋M≋S≋ liked + !! Ήලᵯᵯℹ Ⲥⱨ !! +'s discussion !!!! exactely!!!!
40 minutes ago
48 minutes ago
48 minutes ago
49 minutes ago
57 minutes ago
58 minutes ago
58 minutes ago
59 minutes ago
Amna Bhatti replied to D\$OuLoVeRwHeLm€d's discussion Poetry
1 hour ago
Amna Bhatti liked D\$OuLoVeRwHeLm€d's discussion Poetry
1 hour ago
Blessing replied to D\$OuLoVeRwHeLm€d's discussion Poetry
1 hour ago