Tag: India
-

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 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++ 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 – 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 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 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 & 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 & 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…
-

Python Questions and Answers – Sets – 4
Python Multiple Choice Questions & Answers (MCQs) focuses on “Sets – 4”. Q 1. What will be the output of the following Python code? s1={3, 4}s2={1, 2}s3=set()i=0j=0for i in s1:for j in s2:s3.add((i,j))i+=1j+=1print(s3)A. {(3, 4), (1, 2)}B. {(4, 2), (3, 1), (4, 1), (5, 2)}C. {(3, 1), (4, 2)}D. Error Show Answer Answer:-B. {(4, 2),…
-

Python Questions and Answers – Sets – 3
Python Multiple Choice Questions & Answers (MCQs) focuses on “Sets – 3”. Q 1. Which of the following functions will return the symmetric difference between two sets, x and y?A. x | yB. x ^ yC. x & yD. x – y Show Answer Answer:-B. x ^ y Explanation The function x ^ y returns…
