Category: Programming

  • Python Questions and Answers – Global vs Local Variables – 1

    Python Questions and Answers – Global vs Local Variables – 1

    Python Multiple Choice Questions & Answers (MCQs) focuses on “Global vs Local Variables – 1”. Q 1. What will be the output of the following Python code? def f1():x=15print(x)x=12f1()A. 10B. 12C. 15D. Error Show Answer Answer:-C. 15 Explanation In the code shown above, x=15 is a local variable whereas x=12 is a global variable. Preference…

  • C++ Programming Questions and Answers – Standard Template Library

    C++ Programming Questions and Answers – Standard Template Library

    C++ Programming Multiple Choice Questions & Answers (MCQs) focuses on “Standard Template Library”. Q 1. What is the Standard Template Library?A. Set of C++ classesB. Set of C++ template classes to provide common programming data structures and functionsC. Set of Template functions used for easy data structures implementationD. Set of Template data structures only Show…

  • C++ Programming Questions and Answers – Derivation and Templates

    C++ Programming Questions and Answers – Derivation and Templates

    C++ interview questions focuses on “Derivation and Templates”. One shall practice these advanced C++ questions to improve their C++ programming skills needed for various interviews (campus interviews, walkin interviews, company interviews), placements, entrance exams and other competitive exams. These questions can be attempted by anyone focusing on learning C++ programming language. They can be a…

  • C++ Programming MCQ – Templates

    C++ Programming MCQ – Templates

    C++ Programming Multiple Choice Questions & Answers (MCQs) focuses on “Templates”. Q 1. Which of the following is used for generic programming?A. Virtual functionsB. ModulesC. TemplatesD. Abstract Classes Show Answer Answer:-C. Templates Explanation Templates are used for generic programming. They help in making generic functions and classes hence achieving the generic codes. Q 2. Which…

  • C++ Programming MCQ – Specialization

    C++ Programming MCQ – Specialization

    C++ interview questions and answers focuses on “Specialization “. One shall practice these interview questions to improve their C++ programming skills needed for various interviews (campus interviews, walk-in interviews, company interviews) entrance exams and other competitive exams. These questions can be attempted by anyone focusing on learning C++ programming language. They can be a beginner,…

  • C++ Programming Questions and Answers – Class Templates

    C++ Programming Questions and Answers – Class Templates

    C++ Programming Multiple Choice Questions & Answers (MCQs) focuses on “Class Templates”. Q 1. What is the syntax of class template?A. temp <paramaters> class declarationB. Template <paramaters> class declarationC. template <paramaters> class declarationD. Temp <paramaters> class declaration Show Answer Answer:-C. template class declaration Explanation Syntax involves template keyword followed by list of parameters in angular…

  • C++ Programming Questions and Answers – Template Arguments to Specify Policy

    C++ Programming Questions and Answers – Template Arguments to Specify Policy

    C++ Programming Multiple Choice Questions & Answers (MCQs) focuses on “Template Arguments to Specify Policy”. Q 1. What is meant by the template parameter?A. It can be used to delete a typeB. It can be used to evaluate a typeC. It can of no return typeD. It can be used to pass a type as…

  • C++ Programming Questions and Answers – Function Templates – 2

    C++ Programming Questions and Answers – Function Templates – 2

    C++ Programming Multiple Choice Questions & Answers (MCQs) focuses on “Function Templates – 2”. Q 1. What are Templates in C++?A. A feature that allows the programmer to write generic programsB. A feature that allows the programmer to write specific codes for a problemC. A feature that allows the programmer to make program modularD. A…

  • C++ Programming Questions and Answers – Function Templates – 1

    C++ Programming Questions and Answers – Function Templates – 1

    C++ programming interview questions and answers focuses on “Function Templates”. One shall practice these interview questions to improve their C++ programming skills needed for various interviews (campus interviews, walkin interviews, company interviews), placements, entrance exams and other competitive exams. These questions can be attempted by anyone focusing on learning C++ programming language. They can be…

  • C++ Programming Questions and Answers – Simple String Template

    C++ Programming Questions and Answers – Simple String Template

    C++ interview questions and answers focuses on “Simple String Template”. One shall practice these interview questions to improve their C++ programming skills needed for various interviews (campus interviews, walkin interviews, company interviews), placements, entrance exams and other competitive exams. These questions can be attempted by anyone focusing on learning C++ programming language. They can be…