Wednesday, August 1, 2012

Midterm Paper Spring 2009 CS201- Introduction to Programming


CS201 TODAY PAPER SMSTR FALL SPRING 2011 (MONTH OF MAY)

PAPER#1

this paper is shared by someone
long questions in CS201 midterm paper
are

Write a short note on files and also explain how they are handled in C++?

Is comparison possible in pointers? If yes what operators are used, if no justify your answers ?

Briefly explain structure padding?

What is the difference between single and multi dimensional arrays?

Explain the meaning of given C++ statement: const int *ptr = &x;

Write about char str?


PAPER#2

paper by SABAR ALI (13.058.2011)

CS201
My long questions...

- what are function pointers
- Diference between tellg() and tellp()
- difference between random access file and sequence access file
- why do u close a file>


PAPER#3

Write a short note on files and also explain how they are handled in C++?

Is comparison possible in pointers? If yes what operators are used, if no justify your answers ?

Briefly explain structure padding?

What is the difference between single and multi dimensional arrays?

Explain the meaning of given C++ statement: const int *ptr = &x;


PAPER#4


ALL MCQS from past papers of 2010,2009
long Questions
Code for the programme prints diognals elements of matrix n by n, n is any number.
WRITE note on char strng.
programme out put was asked.
types of pointers and their uses.
one dimentional and two dimentional aray par note.