Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

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

Views: 3203

Replies to This Discussion

PLEASE SHARE YOUR CURRENT PAPERS HERE 

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 -_-

i had paper today..

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

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:

RSS

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

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