Sail E0 Webinar

MCQs

Total Questions : 22 | Page 3 of 3 pages
Question 21. "My salary was increased by 15%"
Select the statement, which will EXACTLY reproduce the line of text above.
  1.    printf("My salary was increased by 15/%!");
  2.    printf("My salary was increased by 15%!");
  3.    printf("My salary was increased by 15'%'!");
  4.    printf("My salary was increased by 15%%!");
 Discuss Question
Answer: Option D. -> printf("My salary was increased by 15%%!");
Question 22. Short testarray[4][3] = { {1}, {2,3}, {4,5,6}};
printf("%d", sizeof(testarray));
Assuming a short is two bytes long, what will be printed by the above code?
  1.    6
  2.    7
  3.    12
  4.    24
  5.    It will not compile because not enough initializers are given
 Discuss Question
Answer: Option D. -> 24

Latest Videos

Latest Test Papers