Skip to main content

CS504 Current Final Term Fall 2013 Shared by Shaista_Mukhtar File 3

my paper of cs504
mostly mcqs where from old papers 
and few of them where new
subjective part;
1.statements where given and  was asked to which of them is correct (2)
2.is it safe to assume that is the left-hand determine the outcome then right-hand side of && and || operator won't be evaluated ?(2)
3.what are the 2 common reasons for memory over run bug to occur in programe?
4. If a function has multiple un-related side effects , it cannot be made strongly exception free.what should be done?
5.exception do increase the code complexity ,explain with example(5)
6. explain the steps of design analysis( exact wording yad nhi )(5)
7. A code was given and was asked to simplify it(5)
8. if (( x>=10 && x<=20) &&( x>=25 &&x<=30)) then what type of error it produces?(5)

baki yad nhi 

Comments