Tag: daily knowledge
-
Python Multiple Choice Questions – Sets
Python Multiple Choice Questions & Answers (MCQs) focuses on “Sets”. Q1. Which of these about a set is not true?A. Immutable data typeB. Does not allow duplicate valuesC. Data type with unordered valuesD. Mutable data type Show Answer Answer:-A. Immutable data type Explanation A set is a mutable data type with non-duplicate, unordered values, providing…
-
PHP Questions & Answers – Error Handling
PHP Multiple Choice Questions & Answers (MCQs) focuses on “Error Handling”. Q 1. How many error levels are available in PHP?A. 14B. 15C. 16D. 17 Show Answer Answer:-C. 16 Explanation Whenever the PHP engine encounters any problem that prevents a script from running properly it generates an error message. There are sixteen error levels and…
-
PHP Questions & Answers – Advanced Object-Oriented PHP
PHP Multiple Choice Questions & Answers (MCQs) focuses on “Advanced Object-Oriented PHP”. Q 1. Which of the following advanced OOP features is/are not supported by PHP? i) Method overloadingii) Multiple Inheritanceiii) Namespacesiv) Object CloningA. i)B. ii)C. i) and ii)D. iii) and iv) Show Answer Answer:-C. i) and ii) Explanation The advanced OOP features are: Object…
-
Python Questions and Answers – Tuples-3
Python Multiple Choice Questions & Answers (MCQs) focuses on “Tuples – 3”. Q 1. Is the following Python code valid? >>> a,b,c=1,2,3>>> a,b,cA. Yes, [1,2,3] is printedB. No, invalid syntaxC. Yes, (1,2,3) is printedD. 1 is printed Show Answer Answer:-C. Yes, (1,2,3) is printed Explanation A tuple needn’t be enclosed in parenthesis. Q 2. What…
-
C++ Programming Questions and Answers – Design of Class Hierarchies
online C++ Multiple Choice Questions focuses on “Design of Class Hierarchies”. One shall practice these questions to improve their C++ programming skills needed for various interviews (campus interviews, walk-in 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…
-
PHP Questions & Answers – Basics of Object-Oriented PHP- 2
PHP Multiple Choice Questions & Answers (MCQs) focuses on “Basics of Object-Oriented PHP- 2”. Q 1. Which method scope prevents a method from being overridden by a subclass?A. AbstractB. ProtectedC. FinalD. Static Show Answer Answer:-C. Final Explanation When we declare a method is as final then it is not possible to override that method. Methods…
-
C++ Programming Questions and Answers – Class Hierarchies and Abstract Classes
C++ programming questions and answers focuses on “Class Hierarchies and Abstract Classes”. One shall practice these questions to improve their C++ programming skills needed for various interviews (campus interviews, walk-in 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…
-
PHP Multiple Choice Questions – OOPs
PHP Multiple Choice Questions & Answers (MCQs) focuses on “OOPs”. Q 1. The practice of separating the user from the true inner workings of an application through well-known interfaces is known as _________A. PolymorphismB. InheritanceC. AbstractionD. Encapsulation Show Answer Answer:-D. Encapsulation Explanation \ In object-oriented PHP encapsulation is a concept of wrapping up or binding…
-
Python Multiple Choice Questions – Tuples
Python Multiple Choice Questions & Answers (MCQs) focuses on “Tuples”. Q 1. Which of the following is a Python tuple?A. [1, 2, 3]B. (1, 2, 3)C. {1, 2, 3}D. {} Show Answer Answer:-B. (1, 2, 3) Explanation Tuples are represented with round brackets. Q 2. Suppose t = (1, 2, 4, 3), which of the…
-
Python Questions and Answers – Tuples – 2
Python Multiple Choice Questions & Answers (MCQs) focuses on “Tuples – 2”. Q 1. What is the data type of (1)?A. TupleB. IntegerC. ListD. Both tuple and integer Show Answer Answer:-B. Integer Explanation A tuple of one element must be created as (1,). Q 2. If a=(1,2,3,4), a[1:-1] is _________A. [2,3]B. (2,3)C. (2,3,4)D. Error, tuple…