Tag: Education
-
C++ Programming Questions and Answers – Argument Passing
C++ programming language. They can be a beginner, fresher, engineering graduate or an experienced IT professional. Our C++ programming questions come with detailed explanation of the answers which helps in better understanding of C++ concepts. C++ programming questions on “Argument Passing” along with answers, explanations and/or solutions: Q 1. How many ways of passing a…
-
General Biology MCQs India
Q 1.Consider the following effects of genetic engineering:Disease resistanceGrowth promotionClosingLongevityOf these effects, those that have be entried out with a certain amount of success include A. 1, 3 and 4B. 2, 3 and 4C. 1, 2 and 4D. 1, 2 and 3 Show Answer Answer:-D. 1, 2 and 3 Explanation Genetic engineering can have effects…
-
C++ Programming Questions and Answers – Pointer to Void
Q 1. The void pointer can point to which type of objects?A. intB. floatC. doubleD. all of the mentioned Show Answer Answer:-B. float Explanation Because it doesn’t know the type of object it is pointing to, So it can point to all objects. Q 2. When does the void pointer can be dereferenced?A. when it…
-
C++ Programming MCQ – References
Q 1. What are the references in C++?A. A new type of variablesB. A pointer to a variableC. An alternative name for already existing variablesD. A new type of constant variable Show Answer Answer:-C. An alternative name for already existing variables Explanation References are an alternative name for an already defined variable. They are different…
-
C++ Programming Questions and Answers – Pointers into Arrays
Q 1. What is the meaning of the following declaration? int(*p[5])(); A. p is pointer to functionB. p is array of pointer to functionC. p is pointer to such function which return type is the arrayD. p is pointer to array of function Show Answer Answer:-B. p is array of pointer to function Explanation In…
-
C++ Programming MCQ – Arrays
Q 1. Which of the following correctly declares an array?A. int array; B. int array[10];C. array{10};D. array array[10]; Show Answer Answer:-B. int array[10]; Explanation Because array variable and values need to be declared after the datatype only. Q2. What is the index number of the last element of an array with 9 elements?A. 8B. 9C.…
-
C++ Programming Questions and Answers – Static Constant Keyword
Q 1. What will be the output of the following C++ code? #include <iostream> using namespace std; class Test { static int x; public: Test() { x++; } static int getX() {return x;} }; int Test::x = 0; int main() { cout << Test::getX() << ” “; Test t[5]; cout << Test::getX(); } A. 0…
-
C++ Programming Quizs Question and Answers – OOPs – 4
Q 1. What will be the output of the following C++ code? #include <iostream> using namespace std; class A{ public: A(){ cout<<“Constructor called\n“; } ~A(){ cout<<“Destructor called\n“; } }; int main(int argc, char const *argv[]) { A *a = new A[5]; delete[] a; return 0; } A. “Constructor called” five times and then “Destructor called”…
-
Quadratic Equations Exercise Quizs Question
Q 1. The roots of the equation ix2 – 4x – 4i = 0 areA. –2iB. 2iC. –2i, –2iD. 2i, 2i Show Answer Answer:-C. –2i, –2i Q 2. Two students while solving a quadratic equation in x, one copied the constant term incorrectly and got the roots 3 and 2. The other copied the constant term and coefficient of…
-
US State – Alabama General Knowledge | Top Colleges In Alabama and Online Education | GK Quizs Question about Alabama
Q 1. Which iconic civil rights march took place in Alabama in 1965, from Selma to Montgomery? Show Answer Answer:- The Selma to Montgomery March or the Selma Voting Rights Movement. Q 2. Which Alabama city is known as the “Rocket City”? Show Answer Answer:- Huntsville Q 3. What is the official state tree of…