Java Programming Test (Random Questions) - Computer Science & Engineering
Marks : | ||
Total number of questions | : | |
Number of answered questions | : | |
Number of unanswered questions | : |
Instruction:
1. | An ODBC data structure that identifies a database and the DBMS that processes it is called a(n): |
|||||||||||
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. | What will be the output of the program? class Bitwise |
|||||||||||
Your Answer: Option Correct Answer: Option D Explanation: The & operator produces a 1 bit when both bits are 1. The result of the & operation is 9. The ^ operator produces a 1 bit when exactly one bit is 1; the result of this operation is 10. The | operator produces a 1 bit when at least one bit is 1; the result of this operation is 14. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
3. | According to ANSI specifications which is the correct way of declaring main when it receives command-line arguments?
|
|||||||||||
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. | What is the purpose of fflush() function. |
|||||||||||
Your Answer: Option Correct Answer: Option A Explanation: "fflush()" flush any buffered output associated with filename, which is either a file opened for writing or a shell command for redirecting output to a pipe or coprocess. Example: Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
5. | Periodically adding, changing and deleting file records is called file |
||||||||||||||
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 |
6. | 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 |
7. | What will be the output of the C#.NET code snippet given below? namespace IndiabixConsoleApplication |
||||||||||||||
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. | Use of a supertype/subtype relationship is necessary when which of the following exists? |
|||||||||||
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 |
9. | Consider the following program and what will be content of t?
|
|||||||||||
Your Answer: Option Correct Answer: Option B Explanation: fp = fopen("DUMMY.C", "w"); A file DUMMY.C is opened in write mode and returns the file pointer to fp t = fileno(fp); returns the handle for the fp stream and it stored in the variable t printf("%d\n", t); It prints the handle number. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
10. | A BI reporting system does not ________ . |
|||||||||||
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 command is used with vi editor to append text at end of line? |
||||||||||||||
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 |
12. | XSLT processors evaluate each statement in the context of the match that has been made. That is, XSLT processors are: |
|||||||||||
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. | Which of the following statements are correct about an enum used inC#.NET? 1 By default the first enumerator has the value equal to the number of elements present in the list. 2 The value of each successive enumerator is decreased by 1. 3 An enumerator contains white space in its name. 4 A variable cannot be assigned to an enum element. 5 Values of enum elements cannot be populated from a database. |
|||||||||||
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 |
14. | A good identifier is which of the following? |
|||||||||||
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. | What PPP protocol provides dynamic addressing, authentication, and multilink? |
|||||||||||
Your Answer: Option Correct Answer: Option C Explanation: Link Control Protocol in the PPP stack provides dynamic addressing, authentication, and multilink. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
16. | Which of the following statements are correct? 1 The conditional operator (?:) returns one of two values depending on the value of a Boolean expression. 2 The as operator in C#.NET is used to perform conversions between compatible reference types. 3 The &* operator is also used to declare pointer types and to dereference pointers. 4 The -> operator combines pointer dereferencing and member access. 5 In addition to being used to specify the order of operations in an expression, brackets [ ] are used to specify casts or type conversions. |
||||||||||||||
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 |
17. | class HappyGarbage01 Where will be the most chance of the garbage collector being invoked? |
|||||||||||
Your Answer: Option Correct Answer: Option D Explanation: Option D is correct. Garbage collection takes place after the method has returned its reference to the object. The method returns to line 6, there is no reference to store the return value. so garbage collection takes place after line 6. Option A is wrong. Because the reference to obj1 is stored in obj2[0]. The Object obj1 still exists on the heap and can be accessed by an active thread through the reference stored in obj2[0]. Option B is wrong. Because it is only one of the references to the object obj1, the other reference is maintained in obj2[0]. Option C is wrong. The garbage collector will not be called here because a reference to the object is being maintained and returned in obj2[0]. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
18. | Which technique enables the designer to mold and shape, rather than construct on object using a series of lines? |
||||||||||||||
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. | What is the value of "d" after this line of code has been executed? double d = Math.round ( 2.5 + Math.random() ); |
|||||||||||
Your Answer: Option Correct Answer: Option B Explanation: The Math.random() method returns a number greater than or equal to 0 and less than 1 . Since we can then be sure that the sum of that number and 2.5 will be greater than or equal to 2.5 and less than 3.5, we can be sure that Math.round() will round that number to 3. So Option B is the answer. Learn more problems on : Java Programming Test (Random Questions) Discuss about this problem : Discuss in Forum |
20. | Which of the following statements are correct about Inheritance in C#.NET? 1 A derived class object contains all the base class data. 2 Inheritance cannot suppress the base class functionality. 3 A derived class may not be able to access all the base class data. 4 Inheritance cannot extend the base class functionality. 5 In inheritance chain construction of object happens from base towards derived.
|
|||||||||||
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