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 3325
Q:

'Barren Island' which is the only active volcano in India is situated in?

A) Rajasthan B) Andaman-Nicobar
C) Chattisgarh D) Lakshadweep
 
Answer & Explanation Answer: B) Andaman-Nicobar

Explanation:

The only active volcano in India is situated in Andaman-Nicobar islands.

Report Error

View Answer Report Error Discuss

2 3317
Q:

A man and his son are in a terrible accident and are rushed to the hospital in critical care. The doctor looks at the boy and exclaims "I can't operate on this boy, he's my son!" How could this be?

Answer

This is only possible when that doctor is boy's mother.

Report Error

View answer Workspace Report Error Discuss

15 3313
Q:

Which of the following is the largest unit of information?

A) 1 TB B) 1 GB
C) 1 MB D) 1 KB
 
Answer & Explanation Answer: A) 1 TB

Explanation:

1 TB  >  1 GB  >  1 MB  >  1 KB

 

1 Tb (Tera Byte) = 1024 GB

 

1 GB (Giga Byte) = 1024 MB

 

1 MB (Mega Byte) = 1024 KB

 

1 KB (Kilo Byte) = 1024 Bytes

 

1 Byte = 8 Bit

 

Hence, largest unit of information is TB (Tera Byte) and smallest unit of information is Bit.

 

Report Error

View Answer Report Error Discuss

4 3310
Q:

The time complexity of sequential search is

A) O(n) B) O(2n)
C) O(n^2) D) None
 
Answer & Explanation Answer: A) O(n)

Explanation:

The time complexity of sequential search is O(n)

Report Error

View Answer Report Error Discuss

Filed Under: Database
Job Role: Database Administration

0 3297
Q:

Google has introduced a new app named what that allows anybody to submit stories for and about their communities?

A) Bulletin B) Allo
C) FastRead D) Google Express
 
Answer & Explanation Answer: A) Bulletin

Explanation:
Report Error

View Answer Report Error Discuss

2 3285
Q:

What is more useful when it is broken?

Answer

An Egg is more useful when it is broken than it is not.

Report Error

View answer Workspace Report Error Discuss

4 3284
Q:

In each question given below four conclusions are followed by statements. You have to take the three given statements to be true (even if they seem to be at variance from the commonly known facts). Read the conclusions and decide which of the following set of statement indicate that conclusion is logically follows.

Statements :
1. All chairs are tents.

2. No chairs is jugs.

3. No jugs is glasses.

4. No glasses is pots.

Conclusions :
I. All pots are tents.

II. All glasses are chair.

III. Some jugs are tents.

A) Only conclusion I follows B) Both conclusion II & III follows
C) None follows D) Only conclusion II follows
 
Answer & Explanation Answer: C) None follows

Explanation:
Report Error

View Answer Report Error Discuss

5 3280