πŸ“Š Programming for Problem Solving
Q. What Is C Tokens?
  • (A) The Smallest Individual Units Of C Program
  • (B) The Basic Element Recognized By The Compiler
  • (C) The Largest Individual Units Of Program
  • (D) A & B Both
πŸ’¬ Discuss
βœ… Correct Answer: (D) A & B Both
πŸ“Š Programming for Problem Solving
Q. What Is Keywords?
  • (A) Keywords Have Some Predefine Meanings And These Meanings Can Be Changed.
  • (B) Keywords Have Some Unknown Meanings And These Meanings Cannot Be Changed.
  • (C) Keywords Have Some Predefine Meanings And These Meanings Cannot Be Changed.
  • (D) None Of The Above
πŸ’¬ Discuss
βœ… Correct Answer: (C) Keywords Have Some Predefine Meanings And These Meanings Cannot Be Changed.
πŸ“Š Programming for Problem Solving
Q. What Is Constant? A Constants Have Fixed Values That Do Not Change During The Execution Of
  • (A) Program
  • (B) Constants Have Fixed Values That Change During The Execution Of A Program
  • (C) Constants Have Unknown Values That May Be Change During The Execution Of A Program
  • (D) Option.
πŸ’¬ Discuss
βœ… Correct Answer: (A) Program
πŸ“Š Programming for Problem Solving
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;
}
  • (A) 0--01--12--23--34--
  • (B) 00--10--20--30--40--
  • (C) Compilation Error
  • (D) 00--01--02--03--04--
πŸ’¬ Discuss
βœ… Correct Answer: (B) 00--10--20--30--40--
πŸ“Š Programming for Problem Solving
Q. What is output of below program?
int main()
{
int i;
for(i=0; i<5; ++i++)
{
printf("Hello");
}
return 0;
}
  • (A) Hello is printed 5 times
  • (B) Compilation Error
  • (C) Hello is printed 2 times
  • (D) Hello is printed 3 times
πŸ’¬ Discuss
βœ… Correct Answer: (B) Compilation Error
πŸ“Š Programming for Problem Solving
Q. What is output of below program?
int main()
{
for(; ;);
for(; ;);
printf("Hello");
return 0;
}
  • (A) Compilation Error
  • (B) Runtime Error
  • (C) Nothing is printed
  • (D) Hello is printed infinite times
πŸ’¬ Discuss
βœ… Correct Answer: (C) Nothing is printed
πŸ“Š Programming for Problem Solving
Q. What is the output of below program?
int main()
{
for(; ;)
for(; ;)
printf("Hello..");
return 0;
}
  • (A) Compilation Error
  • (B) Runtime Error
  • (C) Hello is printed one time
  • (D) Hello is printed infinite times
πŸ’¬ Discuss
βœ… Correct Answer: (D) Hello is printed infinite times

Jump to