πŸ“Š Programming for Problem Solving
Q. What should be the output of below program?
#define # @
@include "stdio.h"
int main()
{
printf("C.com");
return 0;
}
  • (A) C.com
  • (B) Nothing
  • (C) Compilation Error
  • (D) Depends on Complier
πŸ’¬ Discuss
βœ… Correct Answer: (C) Compilation Error
πŸ“Š Programming for Problem Solving
Q. Array can be considered as set of elements stored in consecutive memory locations but having __________.
  • (A) Same Data Type
  • (B) Same Scope
  • (C) None of these
  • (D) Different Data Type
πŸ’¬ Discuss
βœ… Correct Answer: (A) Same Data Type
πŸ“Š Programming for Problem Solving
Q. In Array, There is one to one correspondence between set of ________ and set of values.
  • (A) Indices
  • (B) Variables
  • (C) Constants
  • (D) Memory Locations
πŸ’¬ Discuss
βœ… Correct Answer: (A) Indices
πŸ“Š Programming for Problem Solving
Q. If we have declared an array described below –
int arr[6];
then which of the following array element is considered as last array element ?
  • (A) arr[6]
  • (B) arr[4]
  • (C) arr[0]
  • (D) arr[5]
πŸ’¬ Discuss
βœ… Correct Answer: (D) arr[5]

Jump to