Q. The Default Parameter Passing Mechanism is called as

  • (A) call by value
  • (B) call by reference
  • (C) call by address
  • (D) call by name
πŸ’¬ Discuss
βœ… Correct Answer: (A) call by value

Q. What is Dequeue?

  • (A) elements can be added from front
  • (B) elements can be added to or removed from either the front or rear
  • (C) elements can be added from rear
  • (D) none of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) elements can be added to or removed from either the front or rear

Q. In which linked list last node address is null?

  • (A) doubly linked list
  • (B) circular list
  • (C) singly linked list
  • (D) none of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) singly linked list

Q. Which is the correct syntax to declare constant pointer?

  • (A) int *const constptr;
  • (B) *int constant constptr;
  • (C) const int *constptr;
  • (D) a and c both
πŸ’¬ Discuss
βœ… Correct Answer: (D) a and c both

Q. Which of the following is not a valid C variable name?

  • (A) int number;
  • (B) float rate;
  • (C) int variable_count;
  • (D) int $main;
πŸ’¬ Discuss
βœ… Correct Answer: (D) int $main;

Q. All keywords in C are in ____________

  • (A) LowerCase letters
  • (B) UpperCase letters
  • (C) CamelCase letters
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) LowerCase letters

Q. Which of the following is true for variable names in C?

  • (A) They can contain alphanumeric characters as well as special characters
  • (B) It is not an error to declare a variable to be one of the keywords(like goto, static)
  • (C) Variable names cannot start with a digit
  • (D) Variable can be of any length
πŸ’¬ Discuss
βœ… Correct Answer: (C) Variable names cannot start with a digit

Q. Which is valid C expression?

  • (A) int my_num = 100,000;
  • (B) int my_num = 100000;
  • (C) int my num = 1000;
  • (D) int $my_num = 10000;
πŸ’¬ Discuss
βœ… Correct Answer: (B) int my_num = 100000;

Q. Which of the following cannot be a variable name in C?

  • (A) volatile
  • (B) true
  • (C) friend
  • (D) export
πŸ’¬ Discuss
βœ… Correct Answer: (A) volatile

Q. What is short int in C programming?

  • (A) Qualifier
  • (B) Short is the qualifier and int is the basic data type
  • (C) The basic data type of C
  • (D) All of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (B) Short is the qualifier and int is the basic data type