Programming for Problem Solving MCQs | Page - 3
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. What Is Keywords?
β
Correct Answer: (C)
Keywords Have Some Predefine Meanings And These Meanings Cannot Be Changed.
Q. What Is Constant? A Constants Have Fixed Values That Do Not Change During The Execution Of
β
Correct Answer: (A)
Program
Q. What is output of below program?
int main()
{
int i,j;
for(i = 0,j=0;i<5;i++)
{
printf("%d%d--",i,j);
}
return 0;
}
β
Correct Answer: (B)
00--10--20--30--40--
Q. What is output of below program?
int main()
{
int i;
for(i=0; i<5; ++i++)
{
printf("Hello");
}
return 0;
}
β
Correct Answer: (B)
Compilation Error
Q. What is output of below program?
int main()
{
for(; ;);
for(; ;);
printf("Hello");
return 0;
}
β
Correct Answer: (C)
Nothing is printed
Q. What is the output of below program?
int main()
{
for(; ;)
for(; ;)
printf("Hello..");
return 0;
}
β
Correct Answer: (D)
Hello is printed infinite times
Jump to