CS201 Current Midterm papers Dated 11-05-2012 to 22-05-2012
Tags:
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.
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:
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;
}
mcqs are mostly from the past papers files which are available here! :)
there was not any question of ten marks.. just 2 qs of 5+5 marks -_-
i had paper today..
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.
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.
We are user-generated contents & non-commercial site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. All Contents on site are for personal & non-commercial use.We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post