Q. Explicit data type conversion is called

  • (A) Type casting
  • (B) conversion
  • (C) separation
  • (D) none
πŸ’¬ Discuss
βœ… Correct Answer: (A) Type casting

Q. which of these is not a valid character constant

  • (A) “A”
  • (B) ‘A’
  • (C) “*”
  • (D) “+”
πŸ’¬ Discuss
βœ… Correct Answer: (A) “A”

Q. If 'a' is the integer which is not statically initialized then what is the value of 'a'?

  • (A) zero
  • (B) garbage
  • (C) none of these
  • (D) One
πŸ’¬ Discuss
βœ… Correct Answer: (B) garbage

Q. C is a ____________________ language

  • (A) Platform independent programming
  • (B) Platform dependent programming
  • (C) Object oriented programming
  • (D) None of the above.
πŸ’¬ Discuss
βœ… Correct Answer: (B) Platform dependent programming

Q. In a function call, _____________ is passed as arguments.

  • (A) variables
  • (B) constants
  • (C) Expressions
  • (D) All the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All the above

Q. #include "stdio.h"
int main()
{
int a@ = 10;
printf("%d", a@);
return 0;
}

  • (A) 10
  • (B) 10@
  • (C) @
  • (D) [Error] stray '@' in program
πŸ’¬ Discuss
βœ… Correct Answer: (D) [Error] stray '@' in program

Q. #define t 10
void main()
{
printf("%d",t);
}

  • (A) 10
  • (B) Error:Unfined symbol 't'
  • (C) Error:Improper placement of preprocessor
  • (D) none of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) 10

Q. If 'a' is the integer which is not statically initialized then what is the value of 'a'?

  • (A) zero
  • (B) garbage
  • (C) none of these
  • (D) One
πŸ’¬ Discuss
βœ… Correct Answer: (B) garbage

Q. Int Main()
{
Int X = 10;
{
Int X = 0;
Printf("%D",X);
}
Return 0;
}

  • (A) 10
  • (B) Compilation Error
  • (C) '0'
  • (D) Undefined
πŸ’¬ Discuss
βœ… Correct Answer: (C) '0'

Jump to