Home

If 'str' is a string of 7 characters, the statement printf("%4s", str); will display ------characters.

A. 4

B. 7

C. 6

D. 0

You can do it
  1. The main() function can call itself recursively.
  2. Single operations involving entire arrays are permitted in C.
  3. Which of the STL containers store the elements contiguously (in adjecent memory locations)?
  4. What will be output if you will compile and execute the following c code? #include int main(){ int i=320;…
  5. Left shift operator rotates the bits on the left and places them to the right.
  6. Which one of the following is not a fundamental data type in C++
  7. = and = = have the same operation.
  8. What does STL stand for?
  9. /* The C language./* is a procedural language .*/*/The above statement is valid.
  10. The output of the following code is:void main() {char a = 'B';switch (a) {case 'A' : printf("a"); case…
  11. The printf() function retunes which value when an error occurs?
  12. do-while loop is useful when we want the statements within the loop must be executed
  13. Which one of the following is not a valid reserved keyword in C++
  14. When a user defined function is defined in program, then it has to be called at least once from the…
  15. Each pass through a loop is called a/an
  16. What will be output if you will compile and execute the following c code?#include int main(){ char c=125;…
  17. The output of the following code is: main() {int a[10], i; for (i = 1; I <= 0; i++) {scanf("%d",…
  18. emp name' is a valid variable name.
  19. Which of the following is invalid?
  20. For 16bit compiler allowable range for integer constants is ______ ?
  21. It is necessary to initialize the array at the time of declaration.
  22. C is a ___ language
  23. When is std::bad_alloc exception thrown?
  24. Which of the following is not an infinite loop
  25. # define PI = 8;' is the correct declaration of macros.
  26. Which of the following is an example of compounded assignment statement?
  27. Which options shows the correct hierarchy of arithmetic operators
  28. What would be the output of the following program?int x=40;main(){int x=20;printf("%d",x);}
  29. Operation between an integer and float always yields a float result.
  30. No commas or blanks are allowed within an integer or a real constant.