| Q 1: | ERD stands for |
| (1) | Entity relationship diagram |
| (2) | Exit related diagram |
| (3) | Entity relationship design |
| (4) | Exit related design |
| Correct Answer: Entity relationship diagram | |
| Q 2: | Which is not characteristic of a good SRS ? |
| (1) | Correct |
| (2) | Complete |
| (3) | Consistent |
| (4) | Brief |
| Correct Answer: Brief | |
| Q 3: | Outcome of requirements specification phase is |
| (1) | Design Document |
| (2) | SRS Document |
| (3) | Test Document |
| (4) | None of the above |
| Correct Answer: SRS Document | |
| Q 4: | The basic concepts of ER model are : |
| (1) | Entity and relationship |
| (2) | Entity, effects and relationship |
| (3) | Relationships and keys |
| (4) | Entity, relationship and attribute |
| Correct Answer: Entity, relationship and attribute | |
| Q 5: | What is printed by the following code fragment? int []a = (0,1,2,3,4,5,6); System.out.println(a.length); |
| (1) | 6 |
| (2) | 5 |
| (3) | 7 |
| (4) | 8 |
| Correct Answer: 7 | |
| Q 6: | How would you declare and initialize an array, palette of Color objects of size 6? |
| (1) | Color palette = new color [5]; |
| (2) | Color palette [6]. |
| (3) | Color [5] palette; |
| (4) | Color [] palette = new Color[6] |
| Correct Answer: Color [] palette = new Color[6] | |
| Q 7: | The documentation of a class lists a method castTointArray that has a double array as a formal parameter and returns an array of integers. What is the signature of the method? |
| (1) | public int castTointArray (double a) |
| (2) | public [] castTointArray (double a) |
| (3) | public void cast TointArray (double []a) |
| (4) | public int[] cast TointArray (double []a) |
| Correct Answer: public int[] cast TointArray (double []a) | |
| Q 8: | From the following Java code determine the } |
| (1) | Only name |
| (2) | Both name and marks |
| (3) | Only S1 |
| (4) | Both SI and S2 |
| Correct Answer: Both name and marks | |
| Q 9: | You read the following statement in a Java program that compiles and executes. submarine.dive(depth); What can you say for sure? |
| (1) | dive must be the name of an instance field. |
| (2) | dive must be a method |
| (3) | depth must be an int |
| (4) | submarine must be the name of a class |
| Correct Answer: dive must be a method | |
| Q 10: | What will be the output of the program? int x=10; public void assign(int x) { x=x; System.outprintln(this.x); } public static void main (String [] args) { A ob=new A(): ob.assign(0); } } |
| (1) | 10 |
| (2) | 0 |
| (3) | No output |
| (4) | Compile Time Error |
| Correct Answer: 10 | |