Q. Which of the following declaration is not supported by C language?

  • (A) String str;
  • (B) char *str;
  • (C) float str = 3e2;
  • (D) Both String str; & float str = 3e2;
πŸ’¬ Discuss
βœ… Correct Answer: (A) String str;

Q. Which keyword is used to prevent any changes in the variable within a C program?

  • (A) immutable
  • (B) mutable
  • (C) const
  • (D) volatile
πŸ’¬ Discuss
βœ… Correct Answer: (C) const

Q. What is the result of logical or relational expression in C?

  • (A) True or False
  • (B) 0 or 1
  • (C) 0 if an expression is false and any positive number if an expression is true
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (B) 0 or 1

Q. Which of the following typecasting is accepted by C language?

  • (A) Widening conversions
  • (B) Narrowing conversions
  • (C) Widening & Narrowing conversions
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (C) Widening & Narrowing conversions

Q. Where in C the order of precedence of operators do not exist?

  • (A) Within conditional statements, if, else
  • (B) Within while, do-while
  • (C) Within a macro definition
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (D) None of the mentioned

Q. Which of the following is NOT possible with any 2 operators in C?

  • (A) Different precedence, same associativity
  • (B) Different precedence, different associativity
  • (C) Same precedence, different associativity
  • (D) All of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (C) Same precedence, different associativity

Q. What is an example of iteration in C?

  • (A) for
  • (B) while
  • (C) do-while
  • (D) all of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (D) all of the mentioned

Q. Functions can return enumeration constants in C?

  • (A) true
  • (B) false
  • (C) depends on the compiler
  • (D) depends on the standard
πŸ’¬ Discuss
βœ… Correct Answer: (A) true

Q. Functions in C Language are always _________

  • (A) Internal
  • (B) External
  • (C) Both Internal and External
  • (D) External and Internal are not valid terms for functions
πŸ’¬ Discuss
βœ… Correct Answer: (B) External

Q. Which of following is not accepted in C?

  • (A) static a = 10; //static as
  • (B) static int func (int); //parameter as static
  • (C) static static int a; //a static variable prefixed with static
  • (D) all of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (C) static static int a; //a static variable prefixed with static