Category: Programming

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

  • Python Multiple Choice Questions – Dictionary

    Python Multiple Choice Questions – Dictionary

    Python Multiple Choice Questions & Answers (MCQs) focuses on “Dictionary”. Q 1. Which of the following statements create a dictionary?A. d = {}B. d = {“john”:40, “peter”:45}C. d = {40:”john”, 45:”peter”}D. All of the mentioned Show Answer Answer:-D. All of the mentioned Explanation Dictionaries are created by specifying keys and values. Q 2. What will…

  • PHP Multiple Choice Questions – Strings and Regular Expressions

    PHP Multiple Choice Questions – Strings and Regular Expressions

    PHP Multiple Choice Questions & Answers (MCQs) focuses on “Strings and Regular Expressions”. Q 1. PHP has long supported two regular expression implementations known as _______ and _______ i) Perlii) PEARiii) Pearliv) POSIXA. i) and ii)B. ii) and iv)C. i) and iv)D. ii) and iii) Show Answer Answer:-C. i) and iv) Q 2. What will…