Home

Which of the STL containers store the elements contiguously (in adjecent memory locations)?

A. std::vector

B. std::list

C. std::map

D. std::set

You can do it
  1. Which of the following is invalid?
  2. Expression 4**3 evaluates to 64.
  3. An array declared as A[100][100] can hold a maximum of 100 elements.
  4. The identifier argv[] is a pointer to an array of strings.
  5. When is std::bad_alloc exception thrown?
  6. If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const…
  7. For 16bit compiler allowable range for integer constants is ______ ?
  8. Identify the wrong statement
  9. The output of the following code is: #define sqr(x= x*x) main() {int a = 10, b = 5; printf("%d, %d",…
  10. Structures within structures cannot be created.
  11. The output of the following code is: void main() {int a = 0; while (a<=50) for(;;) if(++a % 50==0)…
  12. The-------------------- statement helps immediate exit from any part of the loop
  13. Only one break can be used in one loop.
  14. Which of the following shows the correct hierarchy of arithmetic operations in C
  15. What's wrong? (x = 4 && y = 5) ? (a = 5) ; (b = 6);
  16. The output of the following code is: void main(){int z, a = 5, b = 3; z = a * 2 + 26 % 3;printf("%d",…
  17. A function to be called must be ended with a----------------
  18. emp name' is a valid variable name.
  19. C programming language was developed by
  20. fprintf()function can be used to write into console.
  21. The output of the following code is: void main(){ int a = 20;printf("%d\t%d", ++a, a);}
  22. The output of the following code is: int f(int a, int b); void main() {int a = 12, b=154; printf("%d",…
  23. Which of the following expressions is wrong
  24. && and & operators have the same meaning.
  25. What's wrong? for (int k = 2, k <=12, k++)
  26. The expression (i + j)++ is illegal.
  27. The output of the following code is:void main() {char a = 'B';switch (a) {case 'A' : printf("a"); case…
  28. It is necessary to initialize the array at the time of declaration.
  29. Every if statement can be converted into an equivalent switch statement.
  30. /* The C language./* is a procedural language .*/*/The above statement is valid.