Java Programming Test (Random Questions) - Computer Science & Engineering
| Marks : | ||
| Total number of questions | : | |
| Number of answered questions | : | |
| Number of unanswered questions | : | |
Instruction:
| 1. | Which of the following is the correct way to implement the interface given below? interface IPerson |
|||||||||||
Your Answer: Option Correct Answer: Option A Explanation: No answer description available for this question. Let us discuss.
Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 2. | You have two switches connected together with two crossover cables for redundancy, and STP is disabled. Which of the following will happen between the switches? |
|||||||||||
Your Answer: Option Correct Answer: Option C Explanation: If spanning tree is disabled on a switch and you have redundant links to another switch, broadcast storms will occur, among other possible problems. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 3. | Which of the following statements are correct about inspecting an attribute in C#.NET? 1 An attribute can be inspected at link-time. 2 An attribute can be inspected at compile-time. 3 An attribute can be inspected at run-time. 4 An attribute can be inspected at design-time. |
||||||||||||||
Your Answer: Option Correct Answer: Option A Explanation: No answer description available for this question. Let us discuss.
Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 4. | Which configuration command must be in effect to allow the use of 8 subnets if the Class C subnet mask is 255.255.255.224? |
|||||||||||
Your Answer: Option Correct Answer: Option D Explanation: A Class C subnet mask of 255.255.255.224 is 3 bits on and 5 bits off (11100000) and provides 8 subnets, each with 30 hosts. However, if the command ip subnet-zero is not used, then only 6 subnets would be available for use. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 5. | An action assertion must include which of the following? |
|||||||||||
Your Answer: Option Correct Answer: Option D Explanation: No answer description available for this question. Let us discuss. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 6. | To obtain the structure of an Oracle table, the command to use is: |
|||||||||||
Your Answer: Option Correct Answer: Option B Explanation: No answer description available for this question. Let us discuss. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 7. | What function should be used to free the memory allocated by calloc() ? |
|||||||||||
Your Answer: Option Correct Answer: Option C Explanation: No answer description available for this question. Let us discuss.
Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 8. | Which of the following statements is correct about an interface used in C#.NET?
|
||||||||||||||
Your Answer: Option Correct Answer: Option D Explanation: No answer description available for this question. Let us discuss.
Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 9. | When three or more AND and OR conditions are combined, it is easier to use the SQL keyword(s): |
|||||||||||
Your Answer: Option Correct Answer: Option D Explanation: No answer description available for this question. Let us discuss. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 10. | Which of the following is(are) true of system analysts? |
||||||||||||||
Your Answer: Option Correct Answer: Option D Explanation: No answer description available for this question. Let us discuss. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 11. | Which of the following types of connections can use full duplex?
|
|||||||||||
Your Answer: Option Correct Answer: Option D Explanation: Hubs cannot run full-duplex Ethernet. Full duplex must be used on a point-to-point connection between two devices capable of running full duplex. Switches and hosts can run full duplex between each other, but a hub can never run full duplex. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 12. | Assembler is |
|||||||||||
Your Answer: Option Correct Answer: Option A Explanation: No answer description available for this question. Let us discuss. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 13. | You want to view the contents of autoexec.bat on the screen using the "type" command, but it scrolls by too quickly, what switch do you use to make it pause? |
||||||||||||||
Your Answer: Option Correct Answer: Option D Explanation: No answer description available for this question. Let us discuss. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 14. | Error reports are an example of: |
||||||||||||||
Your Answer: Option Correct Answer: Option C Explanation: No answer description available for this question. Let us discuss. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 15. | Which one of the following statements is true for the voltages in a series RC circuit? |
||||||||||||||
Your Answer: Option Correct Answer: Option C Explanation: No answer description available for this question. Let us discuss. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 16. | Which collection class allows you to grow or shrink its size and provides indexed access to its elements, but whose methods are not synchronized? |
|||||||||||
Your Answer: Option Correct Answer: Option D Explanation: All of the collection classes allow you to grow or shrink the size of your collection. ArrayList provides an index to its elements. The newer collection classes tend not to have synchronized methods. Vector is an older implementation of ArrayList functionality and has synchronized methods; it is slower than ArrayList. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 17. | Format flags may be combined using |
|||||||||||
Your Answer: Option Correct Answer: Option A Explanation: No answer description available for this question. Let us discuss. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 18. | class Boo which one create an anonymous inner class from within class Bar?
|
|||||||||||
Your Answer: Option Correct Answer: Option B Explanation: Option B is correct because anonymous inner classes are no different from any other class when it comes to polymorphism. That means you are always allowed to declare a reference variable of the superclass type and have that reference variable refer to an instance of a subclass type, which in this case is an anonymous subclass of Bar. Since Bar is a subclass of Boo, it all works. Option A is incorrect because it passes an int to the Boo constructor, and there is no matching constructor in the Boo class. Option C is incorrect because it violates the rules of polymorphism—you cannot refer to a superclass type using a reference variable declared as the subclass type. The superclass is not guaranteed to have everything the subclass has. Option D uses incorrect syntax. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 19. | Which option will be used with sort command to start sorting ofter the nth column of the (m+l)th field? |
||||||||||||||
Your Answer: Option Correct Answer: Option B Explanation: No answer description available for this question. Let us discuss. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 20. | To ensure that every object in the array receives a destructor call, always delete memory allocated as an array with operator __________ . |
||||||||||||||
Your Answer: Option Correct Answer: Option C Explanation: No answer description available for this question. Let us discuss.
Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
Java Programming Test (Random Questions) - Computer Science & Engineering
