Enter Category Name
Enter Category Name
Enter Category Name
Enter Category Name
Enter Category Name
100

Who is the father of C language


Dennis Ritchie

100

All keywords in C are in


reserved words

100

Which is valid C expression

int my_num = 100,000

int my_num = 100000;

int my num = 1000;

$my_num = 10000;




int my_num = 100000;

100

What is the result of logical or relational expression in C 

True or False

0 or 1

0 if an expression is false and any positive number

 if an expression is true


0 or 1

100

The C-preprocessors are specified with _________ symbol

#

200

What is the sizeof(char) in a 32-bit C compiler


1

200

What will be the output of the following C code?

  1. #include <stdio.h>

  2. int main()

  3. {

  4. int y = 10000;

  5. int y = 34;

  6. printf("Hello World! %d\n", y);

  7. return 0;

  8. }



  9. compile time error

    Hello World! 34

    Hello World! 1000

    Hello World! followed by a junk value


















Compile time error

200

What is the 16-bit compiler allowable range for integer constants? 

  1. -3.4e38 to 3.4e38
  2. -32767 to 32768
  3. -32668 to 32667
  4. -32768 to 32767

(4) -32768 to 32767

200

Study the following program:


  1. main()  
  2. {printf("javatpoint");  
  3. main();}  
  1. Wrong statement
  2. It will keep on printing javatpoint
  3. It will Print javatpoint once
  4. None of the these

 (2) It will keep on printing javatpoint

200

What is required in each C program? 

  1. The program must have at least one function.
  2. The program does not require any function.
  3. Input data
  4. Output data
  • The program must have at least one function.
300

What will this program print? 

  1. main()  
  2. {  
  3.   int i = 2;  
  4.   {  
  5.     int i = 4, j = 5;  
  6.      printf("%d %d", i, j);  
  7.   }    
  8.   printf("%d %d", i, j);  
  9. }  

4525

300

Study the following program: 

  1. main()  
  2. {  
  3.    char x [10], *ptr = x;  
  4.   scanf ("%s", x);  
  5.   change(&x[4]);  
  6. }  
  7.  change(char a[])  
  8.  {  
  9.    puts(a);  
  10.  } 
  11. If abcdefg is the input

efg

300

Study the following program: 

  1. main()  
  2. {  
  3.   int a = 1, b = 2, c = 3:  
  4.   printf("%d", a + = (a + = 3, 5, a))  
  5. }
  1. 6
  2. 9
  3. 12
  4. 8

8

300

What does this declaration mean 

  1. int x : 4;  
  1. X is a four-digit integer.
  2. X cannot be greater than a four-digit integer.
  3. X is a four-bit integer.
  4. None of the these
  • X is a four-digit integer.
300

 How many times will the following loop execute? 

  1. for(j = 1; j <= 10; j = j-1)  
  1. Forever
  2. Never
  3. 0
  4. 1
  • Forever
400

What is the result after execution of the following code if a is 10, b is 5, and c is 10?


  1. If ((a > b) && (a <= c))  
  2.         a = a + 1;  
  3. else  
  4.         c = c+1;  


  1. a = 10, c = 10
  2. a = 11, c = 10
  3. a = 10, c = 11
  4. a = 11, c = 11
  • a = 11, c = 10
400

What will the result of num1 variable after execution of the following statements?


  1. int j = 1, num1 = 4;  
  2. while (++j <= 10)  
  3. {  
  4.   num1++;  
  5. }  
  1. 11
  2. 12
  3. 13
  4. 14
  • 13
400

What will the result of len variable after execution of the following statements?


  1. int len;  
  2. char str1[] = {"39 march road"};  
  3. len = strlen(str1); 
  1. 11
  2. 12
  3. 13
  4. 14
  • 13
400

 Study the following statement


  1. #include <stdio.h>  
  2.     int main()  
  3.     {  
  4.         int *ptr, a = 10;  
  5.         ptr = &a;  
  6.         *ptr += 1;  
  7.         printf("%d,%d/n", *ptr, a);  
  8.     }  
  1. 10, 10
  2. 10, 11
  3. 11, 10
  4. 11, 11
  • 11, 11
400

What will be the output of the following C function?

  1.     #include <stdio.h>

  2.     enum birds {SPARROW, PEACOCK, PARROT};

  3.     enum animals {TIGER = 8, LION, RABBIT, ZEBRA};

  4.     int main()

  5.     {

  6.         enum birds m = TIGER;

  7.         int k;

  8.         k = m;

  9.         printf("%d\n", k);

  10.         return 0;

  11.     }

8

M
e
n
u