C 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 valid host range for the subnet on which the IP address 192.168.168.188 255.255.255.192 resides? |
|||||||||||
Your Answer: Option Correct Answer: Option A Explanation: 256 - 192 = 64. 64 + 64 = 128. 128 + 64 = 192. The subnet is 128, the broadcast address is 191, and the valid host range is the numbers in between, or 129-190. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
2. | VAn autonomous homogenous environment is which of the following? |
|||||||||||
Your Answer: Option Correct Answer: Option A Explanation: No answer description available for this question. Let us discuss. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
3. | Which is true about a method-local inner class?
|
|||||||||||
Your Answer: Option Correct Answer: Option B Explanation: Option B is correct because a method-local inner class can be abstract, although it means a subclass of the inner class must be created if the abstract class is to be used (so an abstract method-local inner class is probably not useful). Option A is incorrect because a method-local inner class does not have to be declared final (although it is legal to do so). C and D are incorrect because a method-local inner class cannot be made public (remember-you cannot mark any local variables as public), or static. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
4. | The keyword used to transfer control from a function back to the calling function is |
|||||||||||
Your Answer: Option Correct Answer: Option D Explanation:
The keyword return is used to transfer control from a function back to the calling function. Example:
Output: Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
5. | Which of the following is used to make an abstract class? |
|||||||||||
Your Answer: Option Correct Answer: Option D Explanation: No answer description available for this question. Let us discuss.
Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
6. | Which of the following should be used to implement a 'Has a' relationship between two entities?
|
||||||||||||||
Your Answer: Option Correct Answer: Option C Explanation: No answer description available for this question. Let us discuss.
Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
7. | Which of the following protocols support VLSM, summarization, and discontiguous networking?
|
|||||||||||
Your Answer: Option Correct Answer: Option C Explanation: RIPv1 and IGRP are true distance-vector routing protocols and can't do much, really-except build and maintain routing tables and use a lot of bandwidth! RIPv2, EIGRP, and OSPF build and maintain routing tables, but they also provide classless routing, which allows for VLSM, summarization, and discontiguous networking. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
8. | SQL data definition commands make up a(n) ________ . |
|||||||||||
Your Answer: Option Correct Answer: Option A Explanation: No answer description available for this question. Let us discuss. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
9. | What is the purpose of flow control? |
|||||||||||
Your Answer: Option Correct Answer: Option C Explanation: Flow control allows the receiving device to control the transmitter so the receiving device's buffer does not overflow. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
10. | A program language: |
||||||||||||||
Your Answer: Option Correct Answer: Option A Explanation: No answer description available for this question. Let us discuss. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
11. | What is the widest valid returnType for methodA in line 3? public class ReturnIt |
|||||||||||
Your Answer: Option Correct Answer: Option D Explanation: However A, B and C are all wrong. Each of these would result in a narrowing conversion. Whereas we want a widening conversion, therefore the only correct answer is D. Don't be put off by the long cast, this applies only to the variable x and not the rest of the expression. It is the variable y (of type double) that forces the widening conversion to double. Java's widening conversions are: - From a byte to a short, an int, a long, a float, or a double. - From a short, an int, a long, a float, or a double. - From a char to an int, a long, a float, or a double. - From an int to a long, a float, or a double. - From a long to a float, or a double. - From a float to a double. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
12. | Of the three ways to pass arguments to functions, only passing by _____ and passing by _____ allow the function to modify the argument in the calling program |
|||||||||||
Your Answer: Option Correct Answer: Option A Explanation: No answer description available for this question. Let us discuss. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
13. | Which statement describes a spanning-tree network that has converged? |
|||||||||||
Your Answer: Option Correct Answer: Option C Explanation: Convergence occurs when all ports on bridges and switches have transitioned to either the forwarding or blocking states. No data is forwarded until convergence is complete. Before data can be forwarded again, all devices must be updated. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
14. | The [Serializable()] attribute gets inspected at |
||||||||||||||
Your Answer: Option Correct Answer: Option B Explanation: No answer description available for this question. Let us discuss.
Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
15. | Eliminating modification anomalies is a(n) ________ of normalization. |
|||||||||||
Your Answer: Option Correct Answer: Option A Explanation: No answer description available for this question. Let us discuss. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
16. | The radian of a number system |
||||||||||||||
Your Answer: Option Correct Answer: Option C Explanation: No answer description available for this question. Let us discuss. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
17. | Declare the following statement? "An array of three pointers to chars". |
|||||||||||
Your Answer: Option Correct Answer: Option B Explanation: No answer description available for this question. Let us discuss.
Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
18. | A constructor that accepts __________ parameters is called the default constructor. |
|||||||||||
Your Answer: Option Correct Answer: Option C Explanation: No answer description available for this question. Let us discuss.
Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
19. | Which of the following statements is correct about the C#.NET code snippet given below? class Trial |
||||||||||||||
Your Answer: Option Correct Answer: Option E Explanation: No answer description available for this question. Let us discuss.
Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
20. | Which of the following condition is used to transmit two packets over a medium at the same time? |
||||||||||||||
Your Answer: Option Correct Answer: Option B Explanation: No answer description available for this question. Let us discuss. Learn more problems on : C Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
C Programming Test (Random Questions) - Computer Science & Engineering