Concept of dynamic programming MCQ
1. Which of the following best describes dynamic programming? a) A method to solve optimization problems by breaking them down into simpler subproblemsb) A technique … Read more
1. Which of the following best describes dynamic programming? a) A method to solve optimization problems by breaking them down into simpler subproblemsb) A technique … Read more
1. Which of the following problems can be efficiently solved using a greedy strategy?a) Sorting a list of integersb) Finding the longest path in a … Read more
1. Which of the following is NOT a characteristic of an algorithm?a) Finitenessb) Determinismc) Heuristicd) Effectiveness Answer: c) Heuristic Explanation: An algorithm must be deterministic, … Read more
1. What is the main difference between a Probability Mass Function (PMF) and a Probability Density Function (PDF)? a) PMF is for continuous distributions, while … Read more
1. Which of the following is true regarding Laplace transform? a) It maps a function of time to a function of frequencyb) It maps a … Read more
1. What method is commonly used to approximate solutions to ordinary differential equations by expanding the solution as a Taylor series? a) Euler’s Methodb) Modified … Read more
1.What is the purpose of using exception handling in a Library Management System?A) To improve the performance of the systemB) To gracefully handle unexpected errors … Read more
1.What is polymorphism in object-oriented programming? a) A technique to hide implementation detailsb) A mechanism to perform multiple tasks simultaneouslyc) The ability of a method … Read more
1.What is the purpose of inheritance in object-oriented programming?a) To allow a class to inherit properties and behaviors from another class.b) To create new classes … Read more