| Q 1: | The Boolean data type: |
| (1) | has two states |
| (2) | is unsigned |
| (3) | is displayed by the program as yes or no |
| (4) | Both 1 and 2 |
| Correct Answer: Both 1 and 2 | |
| Q 2: | Given a class named Book, which one of these is a valid constructor declaration for the class? |
| (1) | Book(Book b) { } |
| (2) | Book Book() { } |
| (3) | private final Book() { } |
| (4) | void Book() { } |
| Correct Answer: Book(Book b) { } | |
| Q 3: | Which of the following is a character stream |
| (1) | FileInputStream |
| (2) | DataInputStream |
| (3) | BufferInputStream |
| (4) | FileReader |
| Correct Answer: FileReader | |
| Q 4: | The actual work process of ASP.NET is taken care by |
| (1) | inetinfo.exe |
| (2) | aspnet_isapi.dll |
| (3) | aspnet_wp.exe |
| (4) | None of the above |
| Correct Answer: aspnet_wp.exe | |
| Q 5: | Which of the following is a DataView method |
| (1) | Add |
| (2) | Remove |
| (3) | Find |
| (4) | All of the above |
| Correct Answer: Find | |
| Q 6: | Data structure suitable for the application is discussed in |
| (1) | Data design |
| (2) | Procedural design |
| (3) | architectural design |
| (4) | Interface design |
| Correct Answer: Data design | |
| Q 7: | Emergency fixes known as patches are result of |
| (1) | Perfective maintenance |
| (2) | Adaptive maintenance |
| (3) | Corrective maintenance |
| (4) | None of the above |
| Correct Answer: Corrective maintenance | |
| Q 8: | In Java, a try block should immediately be followed by one or more.......... blocks |
| (1) | Throw |
| (2) | Run |
| (3) | Exit |
| (4) | Catch |
| Correct Answer: Catch | |
| Q 9: | Which of the following technique detects transposition errors? |
| (1) | check digit |
| (2) | automatic correction |
| (3) | existence test |
| (4) | duplicate processing |
| Correct Answer: check digit | |
| Q 10: | The employee information in a company is stored in the relation. Assume name is the primary key: Employee: (name, sex, salary, deptName) Consider the SQL query; SELECT deptName FROM Employee WHERE sex = M GROUP By deptName HAVING avg(salary) > (SELECT avg(salary) FROM Employee) It returns the names of the departments in which the average salary |
| (1) | Of the male employees is more than the average salary of the employees in same department. |
| (2) | Of the male employees is more than the average salary of all the male employees in the company. |
| (3) | Is more than the average salary in the company. (d) Of the male employees is more than the average salary in the company. |
| (4) | Of the male employees is more than the average salary in the company |
| Correct Answer: Of the male employees is more than the average salary in the company | |