Which code segment would execute the stored procedure “calculateSal()” located in a database server?

1.10 Which code segment would execute the stored procedure "calculateSal()" located in a
database server?
A) Statement stmt = connection.createStatement();
stmt.execute("CALCULATESAL()");
B) CallableStatement cs = con.prepareCall("{call calculateSal }");
cs.executeQuery();
C) StoreProcedureStatement spstmt = connection.createStoreProcedure("calculateSal()");
spstmt.executeQuery();
D) PrepareStatement pstmt = connection.prepareStatement("calculateSal()");
pstmt.execute();
E) Statement stmt = connection.createStatement();
stmt.executeStoredprocedure("calculateSal()");

int values[ ] = {1,2,3,4,5,6,7,8};

1.9 int values[ ] = {1,2,3,4,5,6,7,8};
for(int i=0;i< X; ++i)
System.out.println(values[i]);
Referring to the above, what value for X will print from all members of array "values"?
A) 1
B) 7
C) 8
D) None of the above

The purpose of USE Case diagram of UML is

1.8 The purpose of USE Case diagram of UML is ________
A) Structure and connections of components.
B) Deployment of artifacts to nodes.
C) Procedural and parallel behavior.
D) How users interact with a system.

What is the purpose of method parseDouble defined in Double class?

1.4 What is the purpose of method parseDouble defined in Double class?
A) The method is used to convert String to Double class, assuming that the String represents a double.
B) The method coverts the Double object to a String.
C) The method is used to convert String to a double assuming that the String represents a
double.
D) The method converts a double to a String.