Tag: Programming

  • Python Questions and Answers – Exception Handling – 2

    Python Questions and Answers – Exception Handling – 2

    Python Multiple Choice Questions & Answers (MCQs) focuses on “Exception Handling – 2”. Q 1. The following Python code will result in an error if the input value is entered as -5. assert False, ‘Spanish’A. TrueB. False Show Answer Answer:-A. True Explanation The code shown above results in an assertion error. The output of the…

  • C++ Programming Questions and Answers – Exception Handling – 2

    C++ Programming Questions and Answers – Exception Handling – 2

    C++ Programming Multiple Choice Questions & Answers (MCQs) focuses on “Exception Handling – 2”. Q 1. Where should we place catch block of the derived class in a try-catch block?A. Before the catch block of Base classB. After the catch block of Base classC. Anywhere in the sequence of catch blocksD. After all the catch…

  • C++ Programming Questions and Answers – Exceptions That Are Not Errors

    C++ Programming Questions and Answers – Exceptions That Are Not Errors

    C++ MCQs (multiple choice questions) focuses on “Exceptions That Are Not Errors”. One shall practice these MCQs 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…

  • C++ Programming Questions and Answers – Uncaught Exceptions

    C++ Programming Questions and Answers – Uncaught Exceptions

    C++ programming questions and answers focuses on “Uncaught Exceptions”. 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 a beginner,…

  • C++ Programming Questions and Answers – Resource Management

    C++ Programming Questions and Answers – Resource Management

    C++ interview questions focuses on “Resource Management”. One shall practice these advanced C++ 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 a beginner,…

  • C++ Programming Questions and Answers – Catching Exceptions

    C++ Programming Questions and Answers – Catching Exceptions

    C++ programming interview questions and answers focuses on “Catching Exceptions”. 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 – Grouping of Exceptions

    C++ Programming Questions and Answers – Grouping of Exceptions

    C++ interview questions and answers focuses on “Grouping of Exceptions”. One shall practice these interview 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…

  • C++ Programming MCQ – Exception Handling

    C++ Programming MCQ – Exception Handling

    C++ Programming Multiple Choice Questions & Answers (MCQs) focuses on “Exception Handling”. Q 1. What is an exception in C++ program?A. Also known as semantic errorB. A problem that arises during compilationC. Also known as the syntax errorD. A problem that arises during the execution of a program Show Answer Answer:-D. A problem that arises…

  • Python Questions and Answers – Function – 3

    Python Questions and Answers – Function – 3

    Python Questions focuses on “Functions”. Q 1. Python supports the creation of anonymous functions at runtime, using a construct called __________A. lambdaB. piC. anonymousD. none of the mentioned Show Answer Answer:-A. lambda Explanation Python supports the creation of anonymous functions (i.e. functions that are not bound to a name) at runtime, using a construct called…

  • Python Question and Answers – Built-in Functions – 2

    Python Question and Answers – Built-in Functions – 2

    Python Multiple Choice Questions & Answers (MCQs) focuses on “Built-in Functions – 2”. Q 1. What will be the output of the following Python functions? chr(‘97’)chr(97)A. a Error B. ‘a’ aC. Error a D. Error Error Show Answer Answer:-C. Error a Explanation The built-in function chr() returns the alphabet corresponding to the value given as…