Daily Exam Programmer 31-08-2024

Join us on Telegram


Q 1: Hashed message is signed by a sender using
(1) receiver's public key
(2) his public key
(3) receiver's private key
(4) his private key
Correct Answer: his private key

Q 2: The slowest transmission speeds are those of
(1) microwaves
(2) coasxial cable
(3) fiber optic cable
(4) twisted par wire
Correct Answer: twisted par wire

Q 3: Which of the following is a desirable property of a module?
(1) Independency
(2) High coupling
(3) Low cohensiveness
(4) Multifuntional
Correct Answer: Independency

Q 4: Build and Fix model has
(1) 3 Phases
(2) 1 Phase
(3) 2 Phase
(4) 4 Phase
Correct Answer: 2 Phase

Q 5: The DFD depicts
(1) Flow of data
(2) Flow of control
(3) Both 1 and 2
(4) None of the above
Correct Answer: Flow of data

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

Q 7:

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

Q 8: What JDBC stands for
(1) Java Database Connectivity
(2) Joint Database Connectivity
(3) Java Drive for Basic Connection
(4) Joint Driver for Basic Connection
Correct Answer: Java Database Connectivity

Q 9: Which of these is necessary to specify at time of array initialization?
(1) Row
(2) Column
(3) Both 1 and 2
(4) None of the above
Correct Answer: Row

Q 10: What is the size of the short integer type in terms of bits?
(1) 8
(2) 16
(3) 32
(4) 64
Correct Answer: 16