This section contains more frequently asked Programming In C Questions Bank with Answers in the various University Level and Competitive Examinations.

PRACTICE IT NOW TO SHARPEN YOUR CONCEPT AND KNOWLEDGE

view hide answers

1. What will be the value of x after executing the program ?void main ( ) { int x; x = printf(“I See, Sea in C”); printf(“\n x= % d” , x); }

  • x= 15
  • x=2
  • Garbage value
  • Error

2. Which is not keyword in ‘C’ ?

  • typedef
  • const 
  • near 
  • complex

3. Which is valid string function ?

  • strpbrk
  • strlen 
  • strxfrm
  • strcut

4. A static variable by default gets initialized to

  • 0
  • blank space
  • 1
  • garbage value

5. What will be the size of following union declaration?int **x;

  • x is a pointer to pointer 
  • x is not pointer
  • x is long
  • None of these

6. What will be the size of following union declaration?Union Test { Int x; Char c[10 Char y; Float z; } ;

  • 10 bytes 
  • 4bytes
  • 1byte
  • 4 bytes

7. Which of the following are tokens in C?

  • Keywords
  • Variables
  • Constants
  • All of the above

8. The size of a String variable is

  • 1 byte 
  • 8 bytes
  • 16 bytes
  • None

9. Operators have hierarchy. It is used to know which operator

  • is most important 
  • is used first 
  • is faster
  • operates on large numbers
Share with : Share on Linkedin Share on Twitter Share on WhatsApp Share on Facebook