FINAL TERM EXAMINATION
Fall 2009
CS201- Introduction to Programming
Question No: 1 ( M a r k s: 1 ) http://vuzs.net
There are mainly -------------------- types of software
► Two
► Three
► Four
► Five
Software is categorized into two main categories
System Software
Application Software
Question No: 2 ( M a r k s: 1 ) http://vuzs.net
Structures help to define program-specific ___________ .
► functions
► datatypes
► Arithmetic operations
► None of the given options.
In structure, we introduce a new data type. P# 228
defined a new data type. Using structures we can declare: Page # 230
Question No: 3 ( M a r k s: 1 ) http://vuzs.net
A special name which is substituted in code by its definition and as a result we get an expanded code is called,
► include
► Directive
► Macro
► Define
Macro is a special name, which is substituted in the code by its definition, and as a result, we get an expanded code P# 271
Question No: 4 ( M a r k s: 1 ) http://vuzs.net
If constructor contains a return statement in its body then compiler will give __________
► No error
► Syntax error
► Logical error
► Run time error
As
the constructor does not return any thing, so it has no return type. It
means that the body of the construct function cannot have any return
statement. Otherwise, the compiler will give a syntax error. P # 322
Question No: 5 ( M a r k s: 1 ) http://vuzs.net
eof( ), bad( ), good( ), clear( ) all are manipulators.
► True
► False