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. The value of an enumerated datatype can be read using scanf() function.
  2. ------ is the ternary operator
  3. char *s[10] defines an array of ------------------------
  4. Which of the following is not a preprocessor directive
  5. Which of the following is the most preferred way of throwing and handling exceptions?
  6. Nested macros are allowed.
  7. What is Keywords?
  8. Only one break can be used in one loop.
  9. Which escape character can be used to beep from speaker in C?
  10. p++ executes faster than p + 1.
  11. Which of the following keyword supports dynamic method resolution?
  12. Which one of the following is not a fundamental data type in C++
  13. Character data types cannot be declared as unsigned.
  14. Which of the following is invalid?
  15. What will be output if you will compile and execute the following c code? #include int main(){ int i=320;…
  16. Which of the following expressions is wrong
  17. The output of the following code is: void main() { static int a = 1, b, c;if (a>=2) b=2; c=3;printf("%d\t%d",…
  18. Which of the following correctly describes C++ language?
  19. The -------------------------- loop executes at least once.
  20. Which of the following is not recommended in a header file?
  21. strcat() function ----------------------- two strings.
  22. The output of the following code is: main() {int a[10], i; for (i = 1; I <= 0; i++) {scanf("%d",…
  23. the value *(&i) is same as printing the value of address of i.
  24. It is necessary to initialize the array at the time of declaration.
  25. The output of the following code is:void change (char *k) {k="Hello";return; } main() { char *ch = "World";;change(ch);…
  26. The output of the following code is: main() { void msg() { printf("HELLO WORLD"); } }
  27. A pointer is an indication of the variable to be accessed next.
  28. How many times the following loop will execute?for (a = 0; a < 4; a++)printf("hello");
  29. Every if statement can be converted into an equivalent switch statement.
  30. The-------------------- statement helps immediate exit from any part of the loop