+ Link For Assignments, GDBs & Online Quizzes Solution |
+ Link For Past Papers, Solved MCQs, Short Notes & More |
CS201 Current Midterm papers Dated 11-05-2012 to 22-05-2012
Tags:
+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)
+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)my today's paper
A character array named partName
An integer named partNumber
An integer named stock. (3)
5.Write a program which opens a file named "this.txt" and then using write() function, writes the string "Introduction to Programming" at the end of the file.(5)
6.Write a program which declares and initializes an integer array of 10 elements and then using a pointer, displays the array elements in reverse order.
thanks
Mostly mcqs old papers men say thay
5 marks ka ik question tha jis main code likha hua tha aur us code ka logic byan krna tha .
Write the code for a structure called Inventory having the following elements:
An integer named stock.
Declare a 2D array of integers having two rows and three columns.
We know that random method for accessing the files increases the performance but there are certain constrainsts on it. Mention those constraints
Write the code to access the element at third row and second column of a 2D array uses pointer named arrayptr .
C++ views each file as a sequential stream of _______________.
► Bytes
► Bits
► 0’s or 1’s
► Words
If it is required to copy an array to another array then,
► Both arrays must be of the same size and data type
► Both arrays may be of different size
► Both arrays may be of different data type
► Both arrays may be of different size and type
What will be the output of following code?
int x = 10 ;
cout “x =” x ;
► 10
► “x=10”
► x=10
► 10=x
C++ views each file as a sequential stream of________________ .
►Bytes
►Bits
►0’s or 1’s
►Words
1 mcqs tha agr semicolon mising ho to kon sa error hoga. Logical,syntc,runtime or compile time
Relational operaters diay huay thay aur pucha gia tha kon say operator hen.
10+6*2/6 ko solve krna tha
thanks
thx
if some one want to get good marks in cs 201
you prepare from LEC no 15 say 22
and mcsq mostly prom past papers
very easy paper tha:
CS201 Paper 11-May-2012 Spring
Don’t remember the exact questions but giving the main theme.
There are
20 MCQ
2x2 Q
3x3 Q
5x5 Q
MCQ most programming base, like what is the syntax or output etc.
Q: tell the sizeof() value of a structure variable.
Q: use of the keyword “const”
Q: which of these functions are string manipulation and conversion function?
Q: a program which input a telephone number with city code and recognize if it is from lhr or not.
Q: an program is given and we have to tell the output. Program consists array and loop.
Q: how many memory locations will a pointer will jump if it is incremented.
CS201 Midterm Examz All Current papers in one thread Spring May 2012
CS201 Midterm Examz All Current papers in one thread Spring May 2012
CS201 Midterm Examz All Current papers in one thread Spring May 2012
CS201- Introduction to Programming
11-5-2012 midterm paper on spring 2012
When an array element is passed to a function, it is passed by ----------------.
A two-dimensional array has 3 rows and 4 columns. Write down the syntax to initialize first element of all three rows of two-dimensional array with value 2.
Ans:
int matrix[0][0]=2
int matrix[1][0]=2
int matrix[2][0]=2
The size of int data type is
(a) 1 bytes
(b) 2 bytes
(c) 3 bytes
(d) 4 bytes
Pointer is a variable which store,
If the file is not properly closed in the program, the program ____________.
(a) _Terminate normally
(b) _Indicate Runtime error
(c) _Indicate Compile time error
(d) _Crashes
In C/C++ language the header file which is used to perform useful task and manipulation of character data is
(a) cplext.h
(b) ctype.h
(c) stdio.h
(d) delay.h
What is the correct syntax to declare an array of size 10 of int data type?
(a) int [10] name ;
(b) name[10] int ;
(c) int name[10] ;
(d) int name[] ;
Long question (5 marks)
If int array[10]; is an integer array then write the statements which will store values at second, fourth Fifth, seventh and Ninth location of this array,
Which of the following is correct way to initialize a variable x of int type with value
10?
(a) int x ; x = 10 ;
(b) int x = 10 ;
(c) int x, x = 10;
(d) x = 10 ;
If there is more than one statement in the block of a for loop, which of the
following must be placed at the beginning and the ending of the loop block?
(a) parentheses ( )
(b) braces { }
(c) brackets [ ]
(d) arrows < >
What is function of cout ?
(a) To send data to printer
(b) To read data from keyboard
(c) To display message
(d) To display output on the screen
Long question (5 marks)
Consider memory address 0x22f50 and increment the int yptr++ so after increment what is the memory address?
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We have been working very hard since 2009 to facilitate in learning Read More. We can't keep up without your support. Donate.
We are user-generated contents 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. 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 Page 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