Programming for Problem Solving MCQs | Page - 11
Dear candidates you will find MCQ questions of Programming for Problem Solving here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Q. If 'a' is the integer which is not statically initialized then what is the value of 'a'?
β
Correct Answer: (B)
garbage
Q. C is a ____________________ language
β
Correct Answer: (B)
Platform dependent programming
Q. In a function call, _____________ is passed as arguments.
β
Correct Answer: (D)
All the above
Q. #include "stdio.h"
int main()
{
int a@ = 10;
printf("%d", a@);
return 0;
}
β
Correct Answer: (D)
[Error] stray '@' in program
Q. Array with last element 'n' will always have array size equal to _______.
β
Correct Answer: (A)
n+1
Q. If 'a' is the integer which is not statically initialized then what is the value of 'a'?
β
Correct Answer: (B)
garbage
Q. Int Main()
{
Int X = 10;
{
Int X = 0;
Printf("%D",X);
}
Return 0;
}
β
Correct Answer: (C)
'0'
Jump to