• 1. 
    Assuming, integer is 2 byte, What will be the output of the program?

  • ffff
  • 0
  • 8fff
  • Error
  • 2. 
    What will be the output of the following C code? (Assuming that we have entered the value 1 in the standard input)

  • 1
  • 2
  • 1 2
  • Run Time Error
  • 3. 
    The format identifier ā€˜%iā€™ is also used for _____ data type.

  • char
  • int
  • float
  • double
  • 4. 
    Which of the following cannot be a structure member?

  • Another structure
  • Function
  • Array
  • None of the mentioned
  • 5. 
    What will be the output of the following C code?

  • 2
  • 8
  • 9
  • 10
  • 6. 
    #include statement must be written __________

  • Before main()
  • Before any scanf() / printf()
  • After main()
  • It can be written anywhere
  • 7. 
    What is the default return type if it is not specified in function definition?

  • void
  • int
  • double
  • short int
  • 8. 
    What would be the size of the following union declaration? (Assuming size of double = 8, size of int = 4, size of char = 1)

  • 4
  • 8
  • 40
  • 80
  • 9. 
    Which type of variables can have the same name in a different function?

  • Global variables
  • Static variables
  • Function arguments
  • Both static variables and Function arguments
  • 10. 
    What will be the output of the C code?

  • Hello World! x;
  • Hello World! followed by a junk value
  • Compile time error
  • Hello World!
Report Question
warning
access_time
  Time