STL (140)
OOPS (873)
C++ General (2409) Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)
1886Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
1962Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == 4 ) y-= 7; else y = 8; Enter a segment of code (without any IF statements) that does exectly the same thing using the switch structure.
1 3659Given the following function definition: int doit(int &x, int y, int &z) { x = 3*x; y = y + 5; z = x+y; return z - 4; } int a = 5, b = 7, c = 9, d = 11; d = doit(a,b,c);
2 6871Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
2588In OverLoading concept,Why they are not consider return value and why they are consider only parameters in method? For ex: public int Add(int a,int b){...} public String Add(int a,int b){...}
1 3251Write a program and call it sortcheck.cpp which receives 10 numbers from input and checks whether these numbers are in ascending order or not. You are not allowed to use arrays. You should not define more than three variables
2 4761Is following functions are said to be overloaded? int add(int a,int b) char *add(int a,int b)
4 5842
Explain mutable storage class specifier.
What are the 3 pillars of oop?
Write a note about the virtual member function?
How a macro differs from a template?
Which bit wise operator is suitable for putting on a particular bit in a number?
Describe the advantage of an external iterator.
What is the basic concept of c++?
write a program that takes input in digits and display the result in words from 1 to 1000
What are the advantages of using pointers in a program?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
Explain what data encapsulation is in c++?
What are oops functions?
What is the use of :: operator in c++?
What is a class and object?
Which is the best c++ compiler for beginners?