FINALTERM EXAMINATION
Spring 2009
CS201- Introduction
to Programming (Session - 1)
Question No: 1 ( Marks: 1
) - Please choose one
To access the data members of structure _______
is used.
► dot operator (.)
► * operator
► à operator
► None of given.
Question No: 2 ( Marks: 1
) - Please choose one
What does 5 ^ 6 , evaluate to in decimal where
‘^’ is Exclusive OR operator?
► 1
► 2
► 3
► 4
Question No: 3 ( Marks: 1
) - Please choose one
If constructor contains a return statement in
its body then compiler will give __________
► No error
► Syntax error
► Logical error
► Run time error
Question No: 4 ( Marks: 1
) - Please choose one
We can use New keyword inside of Class
Constructor.
► True
►False
Question No: 5 ( Marks: 1
) - Please choose one
When an operator function is define as member
function for a Unary operator then the number of argument it take is/are,
► Zero
► One
► Two
► N
arguments
The declarator of Plus (+) member operator
function is