Home

Which of the following is the most preferred way of throwing and handling exceptions?

A. Throw by value and catch by reference.

B. Throw by reference and catch by reference.

C. Throw by value and catch by value

D. Throw the pointer value and provide catch for teh pointer type.

You can do it
  1. How many times the following loop will execute?for (a = 0; a < 4; a++)printf("hello");
  2. Which of the following is not a standard exception built in C++.
  3. The output of the following code is: void main() {int a = 1, b=2; int *ip; ip=&a; b=*ip; printf("%d",…
  4. printf("%d", sizeof('2')); will print 2.
  5. gets() and puts() are unformatted I/O functions.
  6. The output of the following code is: void main() {float a;int x = 10, y = 3; a = x / y;printf("%f",…
  7. A function to be called must be ended with a----------------
  8. Which of the following shows the correct hierarchy of arithmetic operations in C
  9. Which of the STL containers store the elements contiguously (in adjecent memory locations)?
  10. What is right way to Initialization array?
  11. Which classes allow primitive types to be accessed as objects?
  12. Identify the wrong statement
  13. An array elements are always stored in _________ memory locations.
  14. The output of the following code is: int f(int a, int b); void main() {int a = 12, b=154; printf("%d",…
  15. The output of the following code is: void main(){ int a = 20;printf("%d\t%d", ++a, a);}
  16. Which of the following is not true about preprocessor directives
  17. Variables declared as register storage type gets stored in CPU registers.
  18. The -------------------------- loop executes at least once.
  19. The output of the following code is:void change (char *k) {k="Hello";return; } main() { char *ch = "World";;change(ch);…
  20. The expression 'int j = 6 + 3 % -9;' evaluates to -1.
  21. Every if statement can be converted into an equivalent switch statement.
  22. Single operations involving entire arrays are permitted in C.
  23. The expression "b = 3 ^ 2;" will evaluate b = 9.
  24. p++ executes faster than p + 1.
  25. A recursive function calls itself again and again.
  26. The expression "int i = j = k = 0;" is invalid.
  27. The output of the following code is: main() { int k, num = 30; k = (num > 5 ? (num <= 10 ? 100…
  28. Which escape character can be used to beep from speaker in C?
  29. Which of the following is allowed in a C Arithmetic instruction
  30. Which of the following is a valid destructor of the class name "Country"