Category: Programming

  • 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++ Concepts – 1

    Q 1. In which part of the for loop termination condition is checked?for(I;II;III){IV}A. IB. IIC. IIID. IV Show Answer Answer:-B. II Explanation In II part the termination condition of the for loop is checked. Q 2. What is dynamic binding?A. The process of linking the actual code with a procedural call during compile -timeB. The…

  • C++ Programming Questions and Answers – C++ vs C

    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…

  • GK Quizs Question on Google Know Search Engine

    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…

  • Python Quizs Question and Answers – Lists – 2

    Q 1. Suppose list1 is [1, 3, 2], What is list1 * 2?A. [2, 6, 4]B. [1, 3, 2, 1, 3]C. [1, 3, 2, 1, 3, 2]D. [1, 3, 2, 3, 2, 1] Show Answer Answer:-C. [1, 3, 2, 1, 3, 2] Explanation Execute in the shell and verify. Q 2. Suppose list1 = [0.5…

  • Python Multiple Choice Quizs Question – Lists

    Q 1. Suppose list1 is [1, 5, 9], what is sum(list1)?A. 1B. 15C. 9D. Error Show Answer Answer:-B. 15 Explanation Sum returns the sum of all elements in the list. Q 2. To shuffle the list(say list1) what function do we use?A. list1.shuffle()B. shuffle(list1)C. random.shuffle(list1)D. random.shuffleList(list1) Show Answer Answer:-C. random.shuffle(list1) Explanation Execute in the shell…

  • C++ Programming Quizs Question and Answers – OOPs -2

    C++ Programming Quizs Question and Answers – OOPs -2

    Q1. Which of the following is a static polymorphism mechanism?A. Function overloadingB. Operator overloadingC. TemplatesD. All of the mentioned Show Answer Answer:-D. All of the mentioned Explanation All the options mentioned above uses static polymorphism mechanism. As the conflicts in all these types of functions are resolved during compile-time. Q 2. Which of the following…

  • C++ Programming Quizs  Question and Answers – OOPs

    C++ Programming Quizs Question and Answers – OOPs

    Q 1. Which of the following cannot be a friend?A. FunctionB. ClassC. ObjectD. Operator function Show Answer Answer:-C. Object Explanation Objects of any class cannot be made a friend of any other or same class whereas functions, classes and operator functions can be made a friend. Q 2. Why references are different from pointers?A. A…

  • C++ Programming Quizs Question MCQ – OOPs

    C++ Programming Quizs Question MCQ – OOPs

    Q 1. Which of the following shows multiple inheritances?A. A->B->CB. A->B; A->CC. A,B->CD. B->A Show Answer Answer:-C. A,B->C Explanation In multiple inheritance, a single class is inherited from two classes. So in A,B->C, Class C is inherited from A and B, whereas in A->B->C, C from B and B from A called simple inheritance, in…