Home

Which of the following is a valid destructor of the class name "Country"

A. int ~Country()

B. void Country()

C. int ~Country(Country obj)

D. void ~Country()

You can do it
  1. The output of the following code is: main() { int k, num = 30; k = (num > 5 ? (num <= 10 ? 100…
  2. The main() function can call itself recursively.
  3. The output of the following code is: main() {int a = 0; for (; i = 0; i++) printf("%d", a); }
  4. What would be the output of the following program?int x=40;main(){int x=20;printf("%d",x);}
  5. Right shifting an operand 1bit is equivalent to multiplying it by 2.
  6. do-while loop is useful when we want the statements within the loop must be executed
  7. Which of the following is a valid destructor of the class name "Country"
  8. Which options shows the correct hierarchy of arithmetic operators
  9. Which of the following expressions is wrong
  10. Which of the following is not a preprocessor directive
  11. Which of the following is invalid?
  12. Which of the following is the most preferred way of throwing and handling exceptions?
  13. What's wrong? while( (i < 10) && (i > 24))
  14. Only one break can be used in one loop.
  15. Single operations involving entire arrays are permitted in C.
  16. The size of signed integer is ------ bytes.
  17. Structures within structures cannot be created.
  18. All macro substitutions in a program are done before compilation of the program.
  19. Which one of the following is not a valid reserved keyword in C++
  20. C is a ___ language
  21. What will be output if you will compile and execute the following c code?#include int main(){ float…
  22. There are total ------ numbers of operators in 'C'.
  23. Every if statement can be converted into an equivalent switch statement.
  24. The identifier argv[] is a pointer to an array of strings.
  25. What is the right way to access value of structure variable book{ price, page }?
  26. The default initial value of automatic storage class is 0.
  27. strcat() function ----------------------- two strings.
  28. Which classes allow primitive types to be accessed as objects?
  29. If 'str' is a string of 7 characters, the statement printf("%4s", str); will display ------characters.
  30. struct stud{int roll;char name[20];float marks;} *p;What will be the byte size of p?