Database Administration Questions


Q:

What is an error-first callback ?

Answer

Error-first callbacks are used to pass errors and data as well. You have to pass the error as the first parameter, and it has to be checked to see if something went wrong. Additional arguments are used to pass data.


 


fs.readFile(filePath, function(err, data) {
if (err) {
// handle the error, the return is important here
// so execution stops here
return console.log(err)
}
// use the data object
console.log(data)
})

Report Error

View answer Workspace Report Error Discuss

2 2876
Q:

A computer assisted method for the recording and analyzing of existing or hypothetical systems is

A) Data transmission B) Data capture
C) Data flow D) Data processing
 
Answer & Explanation Answer: C) Data flow

Explanation:
Report Error

View Answer Report Error Discuss

7 6330
Q:

Three taps I, J and K can fill a tank in 20,30and 40 minutes respectively. All the taps are opened simultaneously and after 5 minutes tap A was closed and then after 6 minutes tab B was closed .At the moment a leak developed which can empty the full tank in 70 minutes. What is the total time taken for the completely full ?

A) 24.315 minutes B) 26.166 minutes
C) 22.154 minutes D) 24 minutes
 
Answer & Explanation Answer: B) 26.166 minutes

Explanation:

Upto first 5 minutes I, J and K will fill => 5[(1/20)+(1/30)+(1/40)] = 65/120


For next 6 minutes, J and K will fill => 6[(1/30)+(1/40)] = 42/120


So tank filled upto first 11 minutes = (65/120) + (42/120) = 107/120
So remaining tank = 13/120


Now at the moment filling with C and leakage @ 1/60 per minute= (1/40) - (1/70) = 3/280.
So time taken to fill remaining 13/120 tank =(13/120) /(3/280) = 91/6 minutes

 

Hence total time taken to completely fill the tank = 5 + 6 + 91/6 = 26.16 minutes.

Report Error

View Answer Report Error Discuss

13 7994
Q:

Mr. A, Miss B, Mr. C and Miss D are sitting around a table and discussing their trades.

1. Mr. A sits opposite to cook
2. Miss b sits right to the barber.
3. The washer man is on the left of the tailor
4. Miss D sits opposite Mr. C

What are the trades of A and B ?

A) Tailor and Barber B) Tailor and cook
C) Barber and cook D) washer man and cook
 
Answer & Explanation Answer: B) Tailor and cook

Explanation:

Clealry, C and D sit opposite to each other. So, if A sits opposite to cook, B shall be the cook.
Now, B is to the right of barber. So, one of the rest, say C will be barber.
Clealry, then D on the opposite side shall be washerman or tailor. But, washerman is left of tailor and D on the left of A.
So, D is washerman and A is tailor.

Thus, A and B are Tailor and Cook.

Report Error

View Answer Report Error Discuss

17 11256
Q:

19 persons do 19 programs in 19 hours . If they take 15 mins interval and then how much time they need to do 52 programs.

A) 23 hours B) 47 hrs 15 min
C) 52 hrs 15 min D) 22 hrs 15 min
 
Answer & Explanation Answer: C) 52 hrs 15 min

Explanation:

Since they can do 19 programs in 19 hours, Then 52 programs in 52 hours respectively.
And a 15 min interval
Total time they take to do 52 programs is 52 hours 15 minutes.

Report Error

View Answer Report Error Discuss

11 6187
Q:

The difference between two numbers is 3355. When the larger number is divided by the smaller one, the quotient is 6 and the remainder is 15. The smaller number and larger number respectively ?

A) 546, 3901 B) 415, 3770
C) 668, 4023 D) 404, 3759
 
Answer & Explanation Answer: C) 668, 4023

Explanation:

Let the smaller number be k.
Then, larger number = (3355 + k)
Therefore 3355 + k = (6k + 15)
‹=› 5k = 3340
‹=› k = 668.

Therefore, the smaller number k = 668 and now the larger number = 3355+668 = 4023.

Report Error

View Answer Report Error Discuss

4 2233
Q:

Explain what is posting key and what does it control ?

Answer

In order to determine the transaction type which is entered in the line item, a two digit numerical is used known as 'Posting Key'
Posting key determines:
a) Account Types
b) Types of posting. Debit or Credit
c) Field status of transaction

Report Error

View answer Workspace Report Error Discuss

4 2144
Q:

What is webdynpro for ABAP ?

Answer

Webdynpro for ABAP is SAP web interface model which is used to develop web applications in SAP.

Report Error

View answer Workspace Report Error Discuss

4 1273