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. Left shift operator rotates the bits on the left and places them to the right.
  2. The output of the following code is: main() {int a = 0; for (; i = 0; i++) printf("%d", a); }
  3. Which of the following correctly describes C++ language?
  4. The output of the following code is: void main(){ int a = 20;printf("%d\t%d", ++a, a);}
  5. The output of the following code is: void main() {int a = 1, b=2; int *ip; ip=&a; b=*ip; printf("%d",…
  6. Character data types cannot be declared as unsigned.
  7. All macro substitutions in a program are done before compilation of the program.
  8. Which of the following is a valid destructor of the class name "Country"
  9. What will be output if you will compile and execute the following c code?#include int main(){ float…
  10. The default initial value of automatic storage class is 0.
  11. What will be output if you will compile and execute the following c code?#include #define x 5+2 int…
  12. The main() function can be called from any other function.
  13. perror( ) function used to ?
  14. The contents of a file opened in 'r+' mode cannot be changed.
  15. What is Keywords?
  16. The output of the following code is: int f(int a, int b); void main() {int a = 12, b=154; printf("%d",…
  17. Which escape character can be used to beep from speaker in C?
  18. What would be the output of the following program?int x=40;main(){int x=20;printf("%d",x);}
  19. A multidimensional array A[10][9] can store-------- number of elements
  20. Union is used to hold different data at different time.
  21. The expression 'int j = 6 + 3 % -9;' evaluates to -1.
  22. What's wrong? for (int k = 2, k <=12, k++)
  23. The identifier argv[] is a pointer to an array of strings.
  24. Which of the following is not an infinite loop
  25. Which of the following is not true about preprocessor directives
  26. Only one break can be used in one loop.
  27. struct stud{int roll;char name[20];float marks;} *p;What will be the byte size of p?
  28. The output of the following code is: void main() {int a = 0; while (a<=50) for(;;) if(++a % 50==0)…
  29. How many times the following loop will execute?for (a = 0; a < 4; a++)printf("hello");
  30. Variables declared as register storage type gets stored in CPU registers.