Home / MCQ Bank / Computer
Computer Dynamic Programming In Data Structures Difficulty: Medium

Which of the following methods can be used to solve the Knapsack problem?

Select the correct option to test your answer:

More Computer Questions

What will be the output of the following C++ code? #include <iostream> using namespace std; namespace Box1 { int a = 4; } namespace Box2 { int a = 13; } int main () { int a = 16; Box1::a; Box2::a; cout << a; return 0; } YARN's dynamic allocation of cluster resources improves utilization over more static . . . . . . . . rules used in early versions of Hadoop. What will be the output of the following C++ code? #include <iostream> using namespace std; class base { int val1, val2; public: int get() { val1 = 100; val2 = 300; } friend float mean(base ob); }; float mean(base ob) { return float(ob.val1 + ob.val2) / 2; } int main() { base obj; obj.get(); cout << mean(obj); return 0; } Common Gateway Interface (CGI) is which of the following? What will be the output of the following Java code? class A { public void m1 (int i,float f) { System.out.println(" int float method"); } public void m1(float f,int i); { System.out.println("float int method"); } public static void main(String[]args) { A a=new A(); a.m1(20,20); } }