Skip to main content

Posts

Showing posts with the label Test answers for C Programming Test 2015

Upwork/oDesk C Programming Test Answers 2016

C Programming Question Answers for Upwork Test 1. Identify the incorrect statement.   Answers:  • Memory is reserved when a structure label is defined  2. What will be printed on the standard output as a result of the following code snippet?  void func()  {  static int i = 1;  int j = 1;  i++;  j++;  printf("%d %d ",i,j);  }  void main()  {  func();  func();  func();  }   Answers:  • 2 2 3 2 4 2  3. Given the following array:  int a[8] = {1,2,3,4,5,6,7,0};   what would be the output of   printf("%d",a[4]); ?   Answers:  • 5  4. Which function will convert a string into an integer?   Answers:  • atoi()  5. Which standard function is used to clear memory allocated by the malloc() function?   Answers:  • free  6. From which of the following loop or conditional constructs, is "break" used for an early exit?   Answer...