Tag: Answer
-
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 Questions and Answers – C++ Concepts – 3
Q 1. Which of the following statement is correct?A. Structure in C allows Constructor definitionB. Both allow Constructor definition C. Structure in C++ allows Constructor definitionD. C allows constructor definition while C++ does not Show Answer Answer:-C. Structure in C++ allows Constructor definition Explanation As C does not allow the programmer to define a function…
-
C++ Programming Questions and Answers – C++ Concepts – 2
Q 1. Which of the following is the scope resolution operator?A. .B. *C. ::D. ~ Show Answer Answer:-C. :: Explanation :: operator is called scope resolution operator used for accessing a global variable from a function which is having the same name as the variable declared in the function. Q 2. What will be the…
-
C++ Programming Questions and Answers – C++ vs C
Q 1. Which of the following feature is not provided by C?A. PointersB. ReferencesC. Structures D. Functions Show Answer Answer:-B. References Explanation References are introduced in C++. They are not present in C. Q 2. Which of the following type is provided by C++ but not C?A. intB. boolC. floatD. double Show Answer Answer:-B. bool…
-
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”…
-
GK Questions and Answers on Freedom Fighters of India
Q 1. Who founded the “All India Women’s Conference” to work for women’s rights? Show Answer Answer:-Annie Besant Q 2. Which freedom fighter is associated with the Khilafat Movement? Show Answer Answer:-Maulana Abul Kalam Azad Q 3. Who was known as the “Frontier Gandhi” for his work in the North-West Frontier Province (now Khyber Pakhtunkhwa)?…
-
Top 50 Gk Question with Answers on U.S Armed Forces
Q 1. The United States Armed Forces consists of how many branches? Show Answer Answer:-6 service branches. Q 2. What is the name of the United States Armed Forces branches? Show Answer Answer:-Army, Navy, Marine Corps, Air Force, Coast Guard, and Space Force. Q 3. Which branch of the US Armed Forces conducts land operations?…
-
GK Quizs Question on Google Know Search Engine
Q 1. What year was Google founded? A. 1995 B. 1997 C. 1998 D. 2000 Show Answer Answer:-C. 1998 Q 2. What is the name of Google’s parent company as of 2015? A. Google LLC B. Alphabet Inc. C. G-Holdings D. Search Co Show Answer Answer:-B. Alphabet Inc. Q 3. What was Google’s original name…
-
Current Affairs Quiz – March, 2024
Q 1.Which one of the following company recently collaborated with MAHAGENCO to develop Renewable Energy Parks in Maharashtra?A. Tata GroupB. NTPC Green Energy LimitedC. Reliance Industries LimitedD. ITC Limited Show Answer Answer:-B. NTPC Green Energy Limited Explanation NTPC Green Energy Limited (NGEL) collaborates with Maharashtra State Power Generation Company Limited (MAHAGENCO) to establish Renewable Energy…
-
GK Questions on Ayodhya Railway Station With Answer
Q 1. In which Indian state is Ayodhya located? Show Answer Answer:- Uttar Pradesh Q 2. What is the main deity of the Ram Mandir in Ayodhya? Show Answer Answer:-Lord Rama Q 3. What river flows near Ayodhya? Show Answer Answer:-Saryu Q 4. What is the historical significance of Ayodhya? Show Answer Answer:-Birthplace of Lord Rama…