1. Which of the following languages is a subset of C++ language?
2. Which of the following correctly describes C++ language?
3. Which of the following keyword supports dynamic method resolution?
4. Which of the following language is not supported by C++?
5. Which of the following language feature is not an access specifier in C++?
6. What does STL stand for?
7. Which of the following is the most common way of implementing C++?
8. What is the implicit pointer that is passed as the first argument for nonstatic member functions?
9. If X is the name of the class, what is the correct way to declare copy constructor of X?
10. Which of the following operator cannot be overloaded?
11. Which of the following operators can be overloaded?
12. How do we declare an abstract class?
13. How do we declare an ‘interface’ class?
14. How many copies of a class static member are shared between objects of the class?
15. Which of the following is true about const member functions?
16. When is std::bad_alloc exception thrown?
17. Which header file should we include for using std::auto_ptr?
18. STL is based on which of the following programming paradigms?
19. Which of the following correctly describes the meaning of ‘namespace’ feature in C++?
20. Which of the following is the most general exception handler that catches exception of any type?
21. STL is based on which of the following programmingparadigms?
22. Which of the following correctly describes the meaning of‘namespace’ feature in C++?
23. Which of the following is the most general exception handler that catches exception of ‘any type’?
24. Which of the following relationship is known as inheritancerelationship?
25. Which of the following operators can be implemented as a nonmember operator?
26. Which of the STL containers store the elements contiguously (in adjecent memory locations)?
27. Which of the following is not recommended in a header file?
28. If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const member function)?
29. Which of the following is the most preferred way of throwing and handling exceptions?
30. If class A is friend of class B and if class B is friend of class C, which of the following is true?
31. The conditional compilation
32. Originally ‘C’ was developed as:
33. Minimum number of temporary variagble needed to swap the contents of 2 variable is:
34. A direct access file is:
35. Which of the following is not an advantage of secondary memory
36. An inverted file
37. Which of the following is not a file operation:
38. Which of the following is not a component of file system
39. Seek time is
40. Latency time is:
41. ‘Prime area’ in context of file system is defined as
42. The two types of file structure existing in VSAM file are
43. In mulit-list organization
44. Which of the following is/are advantages of cellular partitioned structure:
45. *ptr++ is equivalenet to:
46. Statement scanf(“%d”,80);
47. Value of ix+j, if i,j are integer type and ix long type would be
48. In a C language ‘3’ represents
49. In C language, a hexadecimal number is represented by writing
50. Expression C=i++ causes
51. Each pass through a loop is called a/an
52. Which looping process checks the test condition at the end of the loop?
53. A continue statement causes execution to skip to
54. In a group of nested loops, which loop is executed the most number of times?
55. The statement i++; is equivalent to
56. Which looping process is best used when the number of iterations is known?
57. What's wrong? for (int k = 2, k <=12, k++)
58. What's wrong? while( (i < 10) && (i > 24))
59. If there is more than one statement in the block of a for loop, which of the following must be placed at the beginning and the ending of the loop block?
60. What's wrong? (x = 4 && y = 5) ? (a = 5) ; (b = 6);
61. Inline functions are invoked at the time of
62. Which of the following operators below allow to define the member functions of a class outside the class?
63. Every class has at least one constructor function, even when none is declared.
64. How do we define a constructor?
65. Can constructors be overloaded?
66. Which of the following below can perform conversions between pointers to related classes?
67. An abstract class can be instantiated.
68. The default access level assigned to members of a class is ___________
69. Which classes allow primitive types to be accessed as objects?
70. Which of the following below is /are a valid iterator type?
71. What is the difference between overloaded functions and overridden functions?
72. What is shallow copy?
73. Which of the following library function below by default aborts the program?
74. What defines a general set of operations that will be applied to various types of data?
75. What happens when a pointer is deleted twice?
76. What is deep copy?
77. There is nothing like a virtual constructor of a class.
78. What is the Difference between struct and class in terms of Access Modifier?
79. Vtables
80. C++ provides facility to specify that the compiler should match function calls with the correct definition at the run time. This process is called as
81. The output of this program is
int
main () { cout << "Hello World!" return 0; }
82. Which of the following is not true about preprocessor directives
83. Which one of the following is not a valid reserved keyword in C++
84. Which one of the following is not a fundamental data type in C++
85. The return value of the following code is
86. What is the output of
87. What is the output of below code
88. When class B is inherited from class A, what is the order in which the constructers of those classes are called
89. Value of a in a = (b = 5, b + 5); is
90. Write the output of the following:
91. A null pointer is nothing but a void pointer pointing to nowhere.
92. Which of the following members do get inherited but become private members in child class
93. Which of the following is a valid destructor of the class name "Country"
94. In the below example of constructor overloading, the following statement will call which constructor
95. class derived: public base1, public base2 { } is an example of
96. If a member needs to have unique value for all the objects of that same class, declare the member as
97. Which of the following is not a standard exception built in C++.
98. Which of the following is not a valid conditional inclusions in preprocessor directives
99. Under which of the following circumstances, synchronization takes place?
100. Which of the following functions below can be used Allocate space for array in memory?
2. Which of the following correctly describes C++ language?
3. Which of the following keyword supports dynamic method resolution?
4. Which of the following language is not supported by C++?
5. Which of the following language feature is not an access specifier in C++?
6. What does STL stand for?
7. Which of the following is the most common way of implementing C++?
8. What is the implicit pointer that is passed as the first argument for nonstatic member functions?
9. If X is the name of the class, what is the correct way to declare copy constructor of X?
10. Which of the following operator cannot be overloaded?
11. Which of the following operators can be overloaded?
12. How do we declare an abstract class?
13. How do we declare an ‘interface’ class?
14. How many copies of a class static member are shared between objects of the class?
15. Which of the following is true about const member functions?
16. When is std::bad_alloc exception thrown?
17. Which header file should we include for using std::auto_ptr?
18. STL is based on which of the following programming paradigms?
19. Which of the following correctly describes the meaning of ‘namespace’ feature in C++?
20. Which of the following is the most general exception handler that catches exception of any type?
21. STL is based on which of the following programmingparadigms?
22. Which of the following correctly describes the meaning of‘namespace’ feature in C++?
23. Which of the following is the most general exception handler that catches exception of ‘any type’?
24. Which of the following relationship is known as inheritancerelationship?
25. Which of the following operators can be implemented as a nonmember operator?
26. Which of the STL containers store the elements contiguously (in adjecent memory locations)?
27. Which of the following is not recommended in a header file?
28. If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const member function)?
29. Which of the following is the most preferred way of throwing and handling exceptions?
30. If class A is friend of class B and if class B is friend of class C, which of the following is true?
31. The conditional compilation
32. Originally ‘C’ was developed as:
33. Minimum number of temporary variagble needed to swap the contents of 2 variable is:
34. A direct access file is:
35. Which of the following is not an advantage of secondary memory
36. An inverted file
37. Which of the following is not a file operation:
38. Which of the following is not a component of file system
39. Seek time is
40. Latency time is:
41. ‘Prime area’ in context of file system is defined as
42. The two types of file structure existing in VSAM file are
43. In mulit-list organization
44. Which of the following is/are advantages of cellular partitioned structure:
45. *ptr++ is equivalenet to:
46. Statement scanf(“%d”,80);
47. Value of ix+j, if i,j are integer type and ix long type would be
48. In a C language ‘3’ represents
49. In C language, a hexadecimal number is represented by writing
50. Expression C=i++ causes
51. Each pass through a loop is called a/an
52. Which looping process checks the test condition at the end of the loop?
53. A continue statement causes execution to skip to
54. In a group of nested loops, which loop is executed the most number of times?
55. The statement i++; is equivalent to
56. Which looping process is best used when the number of iterations is known?
57. What's wrong? for (int k = 2, k <=12, k++)
58. What's wrong? while( (i < 10) && (i > 24))
59. If there is more than one statement in the block of a for loop, which of the following must be placed at the beginning and the ending of the loop block?
60. What's wrong? (x = 4 && y = 5) ? (a = 5) ; (b = 6);
61. Inline functions are invoked at the time of
62. Which of the following operators below allow to define the member functions of a class outside the class?
63. Every class has at least one constructor function, even when none is declared.
64. How do we define a constructor?
65. Can constructors be overloaded?
66. Which of the following below can perform conversions between pointers to related classes?
67. An abstract class can be instantiated.
68. The default access level assigned to members of a class is ___________
69. Which classes allow primitive types to be accessed as objects?
70. Which of the following below is /are a valid iterator type?
71. What is the difference between overloaded functions and overridden functions?
72. What is shallow copy?
73. Which of the following library function below by default aborts the program?
74. What defines a general set of operations that will be applied to various types of data?
75. What happens when a pointer is deleted twice?
76. What is deep copy?
77. There is nothing like a virtual constructor of a class.
78. What is the Difference between struct and class in terms of Access Modifier?
79. Vtables
80. C++ provides facility to specify that the compiler should match function calls with the correct definition at the run time. This process is called as
81. The output of this program is
int
main () { cout << "Hello World!" return 0; }
82. Which of the following is not true about preprocessor directives
83. Which one of the following is not a valid reserved keyword in C++
84. Which one of the following is not a fundamental data type in C++
85. The return value of the following code is
86. What is the output of
87. What is the output of below code
88. When class B is inherited from class A, what is the order in which the constructers of those classes are called
89. Value of a in a = (b = 5, b + 5); is
90. Write the output of the following:
91. A null pointer is nothing but a void pointer pointing to nowhere.
92. Which of the following members do get inherited but become private members in child class
93. Which of the following is a valid destructor of the class name "Country"
94. In the below example of constructor overloading, the following statement will call which constructor
95. class derived: public base1, public base2 { } is an example of
96. If a member needs to have unique value for all the objects of that same class, declare the member as
97. Which of the following is not a standard exception built in C++.
98. Which of the following is not a valid conditional inclusions in preprocessor directives
99. Under which of the following circumstances, synchronization takes place?
100. Which of the following functions below can be used Allocate space for array in memory?
1 comments:
Hola,
I learnt so much in such little time about A to Z c++ Interview questions. Even a toddler could become smart reading of your amazing articles.
I'm doing a small tool. I compile the code with gcc in MingW.
One of its windows has a lot of normal controls on it (comboboxes, editboxes, textboxes, groupboxes...).
I'm trying to reduce the window flickering (when modifying the controls) by using this code:
Code:
//button click event
SetWindowRedraw(hWnd,FALSE);
//do a lot of modifications (hide/show/move/edit controls with their repaint disabled)
SetWindowRedraw(hWnd,TRUE);
//here I get the rect of the update region
RedrawWindow(hWnd, &updrect, 0, RDW_ERASE | RDW_INVALIDATE | RDW_FRAME | RDW_ALLCHILDREN | RDW_UPDATENOW);
It flickers a little less, but it can be improved.
Is there a way?
I know about "double buffered", implemented in Delphi successfully but couldn't find a way in C.
I look forward to see your next updates.
Obrigado,
Irene Hynes
Post a Comment