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 statements are valid about generics in .NET Framework? 1 Generics is a language feature. 2 We can create a generic class, however, we cannot create a generic interface in C#.NET. 3 Generics delegates are not allowed in C#.NET. 4 Generics are useful in collection classes in .NET framework. 5 None of the above
|
||||||||||||||
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 |
2. | Which is a machine-oriented high-level language for the GEC 4080 series machines. |
||||||||||||||
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. | In phase 1 of the system development life cycle, which of the following aspects are usually analyzed? |
||||||||||||||
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 |
4. | Which of the following is the 1's complement of 10? |
||||||||||||||
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 |
5. | Which statements are true regarding ICMP packets?
|
|||||||||||
Your Answer: Option Correct Answer: Option C Explanation: Internet Control Message Protocol (ICMP) is used to send error messages through the network, but they do not work alone. Every segment or ICMP payload must be encapsulated within an IP datagram (or packet). Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
6. | Which of the following statements is correct? |
|||||||||||
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 |
7. | public class MyOuter which statement, if placed in a class other than MyOuter or MyInner, instantiates an instance of the nested class? |
|||||||||||
Your Answer: Option Correct Answer: Option A Explanation: MyInner is a static nested class, so it must be instantiated using the fully-scoped name of MyOuter.MyInner. Option B is incorrect because it doesn't use the enclosing name in the new. Option C is incorrect because it uses incorrect syntax. When you instantiate a nested class by invoking new on an instance of the enclosing class, you do not use the enclosing name. The difference between Option A and C is that Option C is calling new on an instance of the enclosing class rather than just new by itself. Option D is incorrect because it doesn't use the enclosing class name in the variable declaration. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
8. | For the code snippet given below, which of the following statements are valid? public class MyContainer<T> where T: class, IComparable 1 Class MyContainer requires that it's type argument must implement IComparable interface. 2 Compiler will report an error for this block of code. 3 There are multiple constraints on type argument to MyContainer class. 4 Class MyContainer requires that its type argument must be a reference type and it must implement IComparable interface.
|
||||||||||||||
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 |
9. | Which of the following two entities (reading from Left to Right) can be connected by the dot operator? |
|||||||||||
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. | What command is used to remove jobs from the print queue? |
||||||||||||||
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 |
11. | What multicast addresses does RIPng use? |
|||||||||||
Your Answer: Option Correct Answer: Option B Explanation: RIPng uses the multicast IPv6 address of FF02::9. If you remember the multicast addresses for IPv4, the numbers at the end of each IPv6 address are the same. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
12. | What is the purpose of "rb" in fopen() function used below in the code?
|
|||||||||||
Your Answer: Option Correct Answer: Option A Explanation: The file source.txt will be opened in the binary mode. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
13. | Which of the following will be the correct output for the C#.NET code snippet given below? String s1 = "Five Star"; |
||||||||||||||
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. | Fork is |
||||||||||||||
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 of the following statements is correct about the C#.NET code snippet given below? switch (id) |
||||||||||||||
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 |
16. | A reference is declared using the _____ symbol. |
|||||||||||
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 |
17. | What are the different types of real data type in C ? |
|||||||||||
Your Answer: Option Correct Answer: Option C Explanation: The floating point data types are called real data types. Hence float, double, and long double are real data types. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
18. | What difference does the 5th generation computer have from other generation computers? |
||||||||||||||
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 |
19. | You have run an SQL statement that asked the DBMS to display data in a table named USER_TABLES. The results include columns of data labeled "TableName," "NumberOfColumns" and "PrimaryKey." You are looking at ________ . |
|||||||||||
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. | In a HashTable Key cannot be null, but Value can be. |
|||||
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