Today I had a first post assessment test. There are two parts of this test.
1. objective test (mcq)
2. program (2 que)
Totally 32 questions in objective type contains 1,2,3 marks.
Questions contains:
1. Data Structures
2. Java
Questions like:
Consider the following statements. (1 marks)
Statement A: Data Structures enable the creation of reusable code components.
Statement B: Dynamic data structures can grow and shrink at run time to make efficient use of memory.
A. Statement A is true while Statement B is false.
B. Statement A is false while Statement B is true.
C. Both Statement A and Statement B are false.
D. Both Statement A and Statement B are true.
Consider the following code: (2 marks)
public class Example
{
public static void main(String args[])
{
String [] direction = {"East","West","North","South"};
System.out.println(direction[4]);
}
}
What will be the outcome when the preceding code is executed?
A. The code will execute and display South as the output.
B. The code will throw a runtime exception.
C. The code will execute and display North as the output.
D. The code will execute but will not display any output.