FINALTERM EXAMINATION
Fall 2008
CS201- Introduction to Programming
Question No: 1 ( M a r k s: 1 )
There are mainly -------------------- types of software
► Two
► Three
► Four
► Five
Software is categorized into two main categories
o System Software
o Application Software P# 9
Question No: 2 ( M a r k s: 1 )
seekg() and write() are functionally _________________ .
► Different
► Identical
► Two names of same function
► None of the above
Question No: 3 ( M a r k s: 1 )
When a pointer is incremented, it actually jumps the number of memory addresses
► According to data type
► 1 byte exactly
► 1 bit exactly
► A pointer variable can not be incremented
“When a pointer is incremented, it actually jumps the number of memory spaces according to the data type that it points to”
Question No: 4 ( M a r k s: 1 )
setw is a parameterized manipulator.
► True
► False
We have a manipulator setw (a short for set width), it takes as an argument the width in number of spaces. So to print our numbers in four spaces we write cout << setw(4) << number ;
Question No: 5 ( M a r k s: 1 )
eof( ), bad( ), good( ), clear( ) all are manipulators.
► True ► False