Category: Programming

  • 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…

  • Python Questions and Answers – Dictionary – 4

    Python Questions and Answers – Dictionary – 4

    Python Multiple Choice Questions & Answers (MCQs) focuses on “Dictionary – 4”. Q 1. The following Python code is invalid. class demo(dict):def __test__(self,key):return []a = demo()a[‘test’] = 7print(a)A. TrueB. False Show Answer Answer:-B. False Explanation The output of the code is: {‘test’:7}. Q 2. What will be the output of the following Python code? count={}count[(1,2,4)]…

  • “Python Questions and Answers – Dictionary – 3

    “Python Questions and Answers – Dictionary – 3

    Python Multiple Choice Questions & Answers (MCQs) focuses on “Dictionary – 3”. Q 1. Which of the statements about dictionary values if false?A. More than one key can have the same valueB. The values of the dictionary can be accessed as dict[key]C. Values of a dictionary must be uniqueD. Values of a dictionary can be…

  • Python Questions and Answers – Dictionary – 2

    Python Questions and Answers – Dictionary – 2

    Python Multiple Choice Questions & Answers (MCQs) focuses on “Dictionary – 2”. Q 1. Which of these about a dictionary is false?A. The values of a dictionary can be accessed using keysB. The keys of a dictionary can be accessed using valuesC. Dictionaries aren’t orderedD. Dictionaries are mutable Show Answer Answer:-B. The keys of a…

  • PHP Questions & Answers – Strings and Regular Expressions – 2

    PHP Questions & Answers – Strings and Regular Expressions – 2

    PHP Questions and Answers for focuses on “Strings and Regular Expressions – 2”. Q 1. How many functions does PHP offer for searching and modifying strings using Perl-compatible regular expressions.A. 7B. 8C. 9D. 10 Show Answer Answer:-B. 8 Explanation The functions are preg_filter(), preg_grep(), preg_match(), preg_match_all(), preg_quote(), preg_replace(), preg_replace_callback(), and preg_split(). Q 2. What will…

You cannot copy content of this page