100% found this document useful (1 vote)
1K views3 pages

cs201 Midterm Past Paper

The document appears to be a set of multiple choice questions about programming concepts like pointers, arrays, and functions. It asks the reader to select the correct option for brief technical definitions or code snippets related to C programming.

Uploaded by

hassanzobeen
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
1K views3 pages

cs201 Midterm Past Paper

The document appears to be a set of multiple choice questions about programming concepts like pointers, arrays, and functions. It asks the reader to select the correct option for brief technical definitions or code snippets related to C programming.

Uploaded by

hassanzobeen
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

http://www.weblyceum.

com
Solution of Virtual University of Pakistan
_______________are conventional names of the command line parameters of the
‘main()’ function.
Select correct option:
‘argb’ and ‘argv’
‘argc’ and ‘argv’
‘argc’ and ‘argu’
None of the given

In_________, we try to have a precise problem statement


Select correct option:
Analysis
Design
Coding
None of the given

Pointers are a special type of __________in which a memory address is stored


Select correct option:
variables
Location
Characters
None of the given

At the design phase, we try to break up the problem into___________


Select correct option:
functional units
non-functional units
small units
None of the given
http://www.weblyceum.com
Solution of Virtual University of Pakistan
char name [] = “Hello World” ; In the above statement, a memory of _________
characters will be allocated
Select correct option:
13
11
12
10

Pointers work by pointing to a particular___________


Select correct option:
Value
variable
data type(doubtful)
None of the given

___________ Returns true if c is a digit and false otherwise.


Select correct option:
int isalpha( int c )
int isalnum( int c )
int isxdigit( int c )
int isdigit( int c )

The ASCHI code of null character is___________


Select correct option:
000
010
111
110

The increment of a pointer depends on its___________.


Select correct option:
http://www.weblyceum.com
Solution of Virtual University of Pakistan
variable
value
data type
None of the given

At the___________, we try to break up the problem into functional units


Select correct option:
analysis phase
design phase
Implementation phase
None of the given

To get the value stored at a memory address, we use the________________


Select correct option:
referencing operator
dereferencing operator
simple operator
None of the given

suppose we have int y[10]; To access the 4th element of the array we write_________
Select correct option:
y[4];
y[3];
y[2];
none of given

A character is stored in the memory in _________


Select correct option:
byte
integer
string
None of the given

You might also like