| Q 1: | Which will legally declare, construct and initialize an array |
| (1) | int myList [] []=(4.9. 7.0); |
| (2) | int [] myList - (5, 8,2); |
| (3) | int [] myList={"1", "2", "3"); |
| (4) | int myList []= (4.3.7); |
| Correct Answer: int myList []= (4.3.7); | |
| Q 2: | Which of the following are legal array declarations? I. int[] myScores []; |
| (1) | I, Il |
| (2) | I, III |
| (3) | II, III |
| (4) | All of the above |
| Correct Answer: I, Il | |
| Q 3: | Which of the given statement is not true about a Java package? |
| (1) | Packages are used in order to avoid name conflicts and to control access of classes and interfaces. |
| (2) | A package can be defined as a group of similar types of classes and interfaces. |
| (3) | A package cannot have another package inside it. |
| (4) | Java uses file system directory to store package. |
| Correct Answer: A package cannot have another package inside it. | |
| Q 4: | Which one of the following will declared an array and initialize it with five numbers? |
| (1) | Array a = new Array (5): |
| (2) | int []a = {23, 22, 21, 20, 19]; |
| (3) | int a [] = new int [5]; |
| (4) | int (5) array; |
| Correct Answer: int []a = {23, 22, 21, 20, 19]; | |
| Q 5: | In IEEE 802.11.........................is an optional access method that can be implemented in an infrastructure network (not in an ad hoc network). |
| (1) | DCF |
| (2) | PCF |
| (3) | either (a) or (b) |
| (4) | neither (a) nor (b) |
| Correct Answer: PCF | |
| Q 6: | Given two files, what will be the output? class A } } |
| (1) | 10 20 |
| (2) | Compilation error at line 8 |
| (3) | Compilation error at line 7 |
| (4) | Compilation error at line 9 |
| Correct Answer: 10 20 | |
| Q 7: | In IEEE 802.11, when a frame is going from one station in a BSS to another without passing through the distribution system, the address flag is |
| (1) | 00 |
| (2) | 01 |
| (3) | 10 |
| (4) | 11 |
| Correct Answer: 00 | |
| Q 8: | In IEEE 802.11, when a frame is coming from an AP and going to a station, the address flag is |
| (1) | 00 |
| (2) | 01 |
| (3) | 10 |
| (4) | 11 |
| Correct Answer: 01 | |
| Q 9: | In IEEE 802.11, when a frame is going from a station to an AP, the address flag is |
| (1) | 00 |
| (2) | 01 |
| (3) | 10 |
| (4) | 11 |
| Correct Answer: 10 | |
| Q 10: | Which multiplexing technique transmits digital signals? |
| (1) | FDM |
| (2) | TDM |
| (3) | WDM |
| (4) | None of the above |
| Correct Answer: TDM | |