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

I am a 5 letter word.

I am normally below you. If you remove my 1st letter, you'll find me above you. If you remove my 1st & 2nd letters, you can't see me.

What am I?

Answer

Firstly, I focussed on "If you remove my 1st & 2nd letters, you can't see me". The first thing that comes to mind which we can’t see is the "AIR".


 


So now, what 4 letter words can be formed ending with "AIR"? Think of all the words from A to Z, considering which one lies above you. That is how we get to "HAIR".


 


Now, which 5 letter word can be formed ending with "HAIR"? Starting with A to Z, we reach "CHAIR" and also, it lies below us.


 


And the required answer is "CHAIR".

Report Error

View answer Workspace Report Error Discuss

4 3159
Q:

Current search engines function by recognizing keywords.

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

A search engines are a software systems used for searching about any information in the world on the web.


                         current_search_engines_function_by_recognizing_keywords1536129682.png image


Search engines like Google, Bing, Internet explorer, Yahoo, etc... functions by providing relevant search results for the keywords user searches. 


 


Hence, the given statement is TRUE.

Report Error

View Answer Workspace Report Error Discuss

4 3150
Q:

Opening in a wall to let in air or light

A) Ceiling B) Door
C) Window D) All the above
 
Answer & Explanation Answer: C) Window

Explanation:

The Opening in a wall to let in air or light is nothing but a Window.

Report Error

View Answer Report Error Discuss

4 3150
Q:

A restrictive clause is one that

A) usually occurs at the beginning of a sentence B) should be set off by commas
C) limits the meaning of the word it describes D) functions as an adverb
 
Answer & Explanation Answer: C) limits the meaning of the word it describes

Explanation:

A restrictive clause is one that limits the meaning of the word it describes.

For example :: 

The girl who lives next door is beautiful.

This restrictive clause limits "the girl" to say it's specifically the one next door.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

1 3141
Q:

What is immutable object? Can you write immutable object ?

Answer

Immutable classes are Java classes whose objects can not be modified once created. Any modification in Immutable object result in new object. For example is String is immutable in Java. Mostly Immutable are also final in Java, in order to prevent sub class from overriding methods in Java which can compromise Immutability. You can achieve same functionality by making member as non final but private and not modifying them except in constructor.

Report Error

View answer Workspace Report Error Discuss

3 3137
Q:

_U_R_Y_

Complete this 7 letter word _U_R_Y_

1. Girls like it
2. Boys use it
3. Parents hate it.

Answer

HURRAYS.

Report Error

View answer Workspace Report Error Discuss

22 3123
Q:

Government regulation is intended to

A) discourage producers from taking harmful actions. B) encourage producers to follow the Constitution.
C) discourage producers from making a profit. D) encourage producers to take negative actions.
 
Answer & Explanation Answer: A) discourage producers from taking harmful actions.

Explanation:

Government regulation protects constitutional rights, safety, and fairness.

 

Hence, Government regulation is intended to discourage producers from taking harmful actions.

Report Error

View Answer Report Error Discuss

3 3117