Question: Q1: Circle the correct answer: I5 Points] I. The constructor of a class must not have a return type. True or False. 2. Depth-first search
Q1: Circle the correct answer: I5 Points] I. The constructor of a class must not have a return type. True or False. 2. Depth-first search with backtracking can be used to perform loops in Prolog. True or False. 3. Horn clauses can be used to express all logical statements. True or False. 4. Java allows operator overloading. True or False. 5. C++ uses a garbage collector mechanism to handle objects no longer needed. True or False. Q2: Fill in the blank: 14 Points] I. A variable in Prolog must start with either an 2. Prolog implements a 3. Constructor search strategy. in Java occurs when one constructor calls another allow programs to view but not modify the internal state of a class 4. A(n) Q3: Match languages to domains? 14 Points] Write the letter corresponding with the application domain each programming language was designed to support in the space provided. Each letter should be used exactly once (A) Artificial Intelligence (B) System programming (C) Internet programming (D) Scientific applications JAVA FORTRAN LISP :To what do the following expressions evaluate? [2 Points (funcall (lambda (x y z) (* z (+xy))) 3 5 7)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
