Can two functions declare variables(non static) with the same name.
Which of the following is not recommended in a header file?
Which of these expressions will make the rightmost set bit zero in an input integer x?
Under which of the following circumstances, synchronization takes place?
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int arr[] = {4, 5, 6, 7};
6.int *p = (arr + 1);
7.cout << *arr + 9;
8.return 0;
9.}
What is the output of this program? 1.#include
2.using namespace std;
3.enum colour {
4.green, red, blue, white, yellow, pink
5.};
6.int main()
7.{
8.cout << green<< red<< blue<< white<< yellow<< pink;
9.return 0;
10}
Which is used to indicate single precision value?
The correct statement for a function that takes pointer to a float, a pointer to a pointer to a char and returns a pointer to a pointer to a integer is
What’s wrong? while( (i < 10) && (i > 24))
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int const p = 5;
6.cout << ++p;
7.return 0;
8.}
What is the output of this program? 1.#include
2.#include
3.using namespace std;
4.int main()
5.{
6.cout << setprecision(17);
7.double d = 0.1;
8.cout << d << endl;
9.return 0;
10.}
What is the difference between overloaded functions and overridden functions?
Which of the following keyword supports dynamic method resolution?
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int i;
6.char *arr[] = {"C", "C++", "Java", "VBA"};
7.char *(*ptr)[4] = &arr;
8.cout << ++(*ptr)[2];
9.return 0;
10.}
What is the output of this program? 1.#include
2.using namespace std;
3.void swap(int &a, int &b);
4.int main()
5.{
6.int a = 5, b = 10;
7.swap(a, b);
8.cout << "In main " << a << b;
9.return 0;
10.}
11.void swap(int &a, int &b)
12.{
13.int temp;
14.temp = a;
15.a = b;
16.b = temp;
17.cout << "In swap " << a << b;
18.}
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.void a = 10, b = 10;
6.int c;
7.c = a + b;
8.cout << c;
9.return 0;
10.}
Identify the correct sentence regarding inequality between reference and pointer.
For what values of the expression is an if-statement block not executed?
What does a reference provide?
What is the size of wchar_t in C++?
Which value we cannot assign to reference?
What is the value of the bool? bool is_int(789.54)
Which of the following is not a valid conditional inclusions in preprocessor directives
What is output of the this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int i;
6.enum month {
7.JAN = 1, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC
8.};
9.for (i = MAR; i <= NOV; i++)
10.cout << i;
11.return 0;
12.}
How many copies of a class static member are shared between objects of the class?
The declaration of structure is also called as?
Which of the following languages is a subset of C++ language?
Identify the user-defined types from the following?
Which of the following correctly declares an array?
What is the output of the following program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int num = 0x20 + 020 + 20;
6.cout << sizeof(num)<<'\n';
7.return 0;
8.}
The pointer can point to any variable that is not declared with which of these?
What is the Difference between struct and class in terms of Access Modifier?
Inline functions are invoked at the time of
Which of the following belongs to the set of character types?
Which of the following operators below allow to define the member functions of a class outside the class?
What happens when a null pointer is converted into bool?
Which of the following operators can be implemented as a nonmember operator?
When is std::bad_alloc exception thrown?