20903.A box contains 2 white balls, 3 black balls and 4 red balls. In how many ways can 3 balls be drawn from the box, if at least one black ball is to be included in the draw?
32
48
64
96
20904.Look at this series: 22, 21, 23, 22, 24, 23, ... What number should come next?
22
24
25
26
Explanation:
In this simple alternating subtraction and addition series; 1 is subtracted, then 2 is added, and so on.
20905.
void start()
{
A a = new A();
B b = new B();
a.s(b);
b = null; /* Line 5 */
a = null; /* Line 6 */
System.out.println("start completed"); /* Line 7 */
}
When is the B object, created in line 3, eligible for garbage collection?
after line 5
after line 6
after line 7
There is no way to be absolutely certain.
Explanation:
Option D is correct. I think there are too many unknowns about the method s and the classes A and B to be able to answer this question with any certainty.
20907.Databases overall structure is maintained in a file called
Redolog file
Data file
Control file
All of the above
20908.Which of the following is not the required condition for binary search algorithm?
The list must be sorted
there should be the direct access to the middle element in any sublist
There must be mechanism to delete and/or insert elements in list
None of above
20909.
include
main()
{
struct xx
{
int x=3;
char name[]="hello";
};
struct xx *s=malloc(sizeof(struct xx));
printf("%d",s->x);
printf("%s",s->name);
}
Compiler error
hello
3
none
Explanation:
Compiler Error ,Initialization should not be done for structure members inside the structure declaration
20910.Which of the following command is used to display the directory attributes rather than its contents ?
1s-1-d
Is-x
Is-1
is-F
20911.The SQL WHERE clause:
limits the column data that are returned.
limits the row data are returned.
Both A and B are correct.
Neither A nor B are correct
20912.Which of the following is not considered to be a basic element of an enterprise-class database system?
Users
Database applications
DBMS
COBOL programs