4525+ MCQ Questions in english हिन्दी

Share:

How do structures and classes vary in C++?

What would the following C++ code snippet produce? #include using namespace std; int operate (int a, int b) { return (a * b); } float operate (float a, float b) { return (a / b); } int main() { int x = 5, y = 2; float n = 5.0, m = 2.0; cout << operate(x, y) <<"\t"; cout << operate (n, m); return 0; }

Which concept in C++ allows you to reuse previously written code?

What will the following C++ programme produce? #include using namespace std; int main() { try { try { throw 20; } catch (int n) { cout << "Inner Catch\n"; throw; } } catch (int x) { cout << "Outer Catch\n"; } return 0; }

banner ad

Using Perl, the DBI API is

Which of the following constructors are provided by the C++ compiler if they are not defined in a class?

For how many of the following do interfaces exist for implementing direct native client-server protocol? Java, PHP, Ruby

What exactly is an abstract class in C++?

How many of these languages support MySQL's C API through interfaces? Perl, PHP, Python

What will the C++ programme below produce? #include using namespace std; int main() { int n = 5; void *p = &n; int *pi = static_cast(p); cout << *pi << endl; return 0; }

What will the result of the following C++ application be? #include #include using namespace std; int main () { std::string str ("Sanfoundry."); str.back() = '!'; std::cout << str << endl; return 0; }

banner ad

Which command in the Mysql command line tool is used to display the current date and time?

What exactly is a polymorphism in C++?

Which kind of authentication are necessary to access the MySQL command-line tool?

What will the following C++ code produce? #include using namespace std; void square (int *x, int *y) { *x = (*x) * --(*y); } int main ( ) { int number = 30; square(&number, &number); cout << number; return 0; }

What will the following C++ programme produce? #include using namespace std; int main() { int a = 5; auto check = [=]() { a = 10; }; check(); cout<<"Value of a: "<

In C++, which of the following symbols is used to declare preprocessor directives?

What will the following C++ code produce? #include using namespace std; int main() { int a = 5; float b; cout << sizeof(++a + b); cout << a; return 0; }

banner ad

In C++, what is inheritance?

Which of the following formats does the "Mysql command line tool" use to format the outcomes?

The C++ code that causes an abnormal programme termination/behavior should be written in the block.

What will the $input variable's value be in the following PHP code? stands forHypertextPreprocessor!"; $input = strip_tags($input,""); echo $input; ?>

In C++, what is the acceptable syntax for accessing a static member of a class? --------------------------- Example class: class A { public: static int value; } ---------------------------

With what PHP version did the safe mode feature become obsolete?

In C++, which keyword is used to define macros?

banner ad

The outcome of the following PHP code is what?

In order to access an existing database, which statement should be used?

The last access time of a file is found using which of the following PHP functions?

×
Subscribe now

for Latest Updates

Articles, Jobs, MCQ and many more!