Daily Exam Programmer 17-10-2024

Join us on Telegram


Q 1: Each maturity model in CMM has
(1) Equal KPAs
(2) One KPA
(3) Several KPAs
(4) No KPA
Correct Answer: Several KPAs

Q 2: Which of the following is faster and consume lesser memory?
(1) SQLDataReader
(2) DataSet
(3) Both
(4) None of the above
Correct Answer: SQLDataReader

Q 3: Every method of a ................ is implicitly final
(1) static class
(2) dynamic class
(3) final class
(4) abstract class
Correct Answer: final class

Q 4: Which UML diagram that adds the dimension of time to object interactions?
(1) Communication Diagram
(2) Interaction Overview Diagram
(3) Composite Structure Diagram
(4) Sequence Diagram
Correct Answer: Sequence Diagram

Q 5: IPSec requires a logical connection between two hosts using a signaling protocol called...........
(1) AS
(2) SA
(3) Both 1 and 2
(4) None of the above
Correct Answer: SA

Q 6: Which of the following is a character oriented protocol?
(1) BISYNC
(2) SDLC
(3) HDLC
(4) TCP
Correct Answer: BISYNC

Q 7:


(1) The database system is both deadlock-free and starvation-free
(2) The database system is deadlock-free but not starvation-free
(3) The database system is starvation-free but not deadlock-free
(4) The database system is neither deadlock-free nor starvation-free
Correct Answer: The database system is both deadlock-free and starvation-free

Q 8:

In SQL, which command is used to display data from two or multiple tables?

(1) LIST
(2) SELECT
(3) SHOW
(4) MULTIPLY
Correct Answer: SELECT

Q 9: The members of a class, by default are
(1) public
(2) protected
(3) private
(4) mandatory to specify
Correct Answer: private

Q 10:

Analyze the following code.

public class Test (

public static void main(String|] args)

{

System.out.println(max(1, 2));

public static double max(int num1, double num2) {

System.out.println("max(int, double) is invoked");

if (num1 > num2)

return num1;

else

return num2;

}

public static double max(double num1, int num2)

{

System.out.println("max(double, int) is invoked");

if (num1 > num2)

return num1;

else

return num2;

}

}

(1) The program cannot compile because you cannot have the print statement in a non-void method
(2) The program cannot compile because the compiler cannot determine which max method should be invoked
(3) The program runs and prints 2 followed by "max(int, double)" is invoked
(4) The program runs and prints 2 followed by max(double, int)" is invoked
Correct Answer: The program cannot compile because the compiler cannot determine which max method should be invoked