Java Programming Test (Random Questions) - Computer Science & Engineering
| Marks : | ||
| Total number of questions | : | |
| Number of answered questions | : | |
| Number of unanswered questions | : | |
Instruction:
| 1. | An Employee class has a property called age and emp is reference to a Employee object and we want the statement Console.WriteLine(emp.age) to fail. Which of the following options will ensure this functionality? |
||||||||||||||
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 |
| 2. | A computer program that contains expertise in a particular domain is called an: |
||||||||||||||
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 |
| 3. | While working with MS-DOS, which command is used to display the contents of a file and pause the display after each screenful of information? |
||||||||||||||
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 three are methods of the Object class? 1 notify(); |
|||||||||||
Your Answer: Option Correct Answer: Option C Explanation: (1), (2), and (6) are correct. They are all related to the list of threads waiting on the specified object. (3), (5), (7), and (8) are incorrect answers. The methods isInterrupted() and interrupt() are instance methods of Thread. The methods sleep() and yield() are static methods of Thread. D is incorrect because synchronized is a keyword and the synchronized() construct is part of the Java language. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 5. | Sort/report generators |
||||||||||||||
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 |
| 6. | Which EIGRP information is held in RAM and maintained through the use of Hello and update packets?
|
|||||||||||
Your Answer: Option Correct Answer: Option C Explanation: EIGRP holds three tables in RAM: neighbor, topology, and routing. The neighbor and topology tables are built and maintained with the use of Hello packets. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 7. | The space required for structure variables is allocated on stack.
|
|||||
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 |
| 8. | What sign is used to back up over typing errors in vi? |
||||||||||||||
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 |
| 9. | The Memory Address Register |
||||||||||||||
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 |
| 10. | Which of the following is the correct way to create an object of the class Sample? 1 Sample s = new Sample(); 2 Sample s; 3 Sample s; s = new Sample(); 4 s = new Sample(); |
||||||||||||||
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 |
| 11. | Which of the following is the correct ways to set a value 3.14 in a variable pi such that it cannot be modified? |
||||||||||||||
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 |
| 12. | Read-only databases are ________ updated. |
|||||||||||
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 |
| 13. | You want to implement a mechanism that automates the IP configuration, including IP address, subnet mask, default gateway, and DNS information. Which protocol will you use to accomplish this? |
|||||||||||
Your Answer: Option Correct Answer: Option C Explanation: Dynamic Host Configuration Protocol (DHCP) is used to provide IP information to hosts on your network. DHCP can provide a lot of information, but the most common is IP address, subnet mask, default gateway, and DNS information. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 14. | The number of free electrons and holes in intrinsic semiconductor increases when the temperature |
||||||||||||||
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 |
| 15. | Which of the following keyword is used to overload an operator? |
|||||||||||
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 |
| 16. | Why does the data communication industry use the layered OSI reference model?
|
|||||||||||
Your Answer: Option Correct Answer: Option B Explanation: The main advantage of a layered model is that it can allow application developers to change aspects of a program in just one layer of the layer model's specifications. Advantages of using the OSI layered model include, but are not limited to, the following: It divides the network communication process into smaller and simpler components, thus aiding compo- nent development, design, and troubleshooting; it allows multiple-vendor development through standardization of network components; it encourages industry standardization by defining what functions occur at each layer of the model; it allows various types of network hardware and software to communicate; and it prevents changes in one layer from affecting other layers, so it does not hamper development. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
| 17. | Before any changes to database structure are attempted one should first: |
|||||||||||
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 |
| 18. | Which of the following statements is correct in C++? |
|||||||||||
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 |
| 19. | Which type of entity is related to two or more associated entities that each contain specialized attributes that apply to some but not all of the instances of the entity? |
|||||||||||
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 |
| 20. | Which of the folowing does an indexer allow to index in the same way as an array? 1 A class 2 A property 3 A struct 4 A function 5 An interface
|
|||||||||||
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 |
Java Programming Test (Random Questions) - Computer Science & Engineering
