Tag: programming languages

Questions Related to programming languages

A default value is automatically assigned to the attributes when no other value is specified.

  1. FALSE

  2. TRUE

  3. NOT ALWAYS

  4. NONE OF THESE


Correct Option: B
  1. There is none; they both work as expected

  2. They both do nothing.

  3. The first will not invoke all myObj destructors

  4. It would'nt delete all the memory allocated to the objects


Correct Option: C

Which of the following reads in a string named x with one hundred characters?

  1. cin.getline(x, 100, '\n');

  2. cin.getline(100, x, '\n');

  3. readline(x, 100, '\n');

  4. read(x);


Correct Option: A
  1. the number of arguments

  2. the number of arguments plus one

  3. the number of arguments minus one

  4. The total size of the argument array


Correct Option: B