IT Trainer Questions


Q:

The PHP Syntax is most similar to

A) Visual Basic B) VB Script
C) PERL & C D) Java Script
 
Answer & Explanation Answer: C) PERL & C

Explanation:

PHP is similar to the C style syntax in terms of keywords and language syntax.

 

If conditions, for and while loops, and function returns are similar in syntax to languages such as C, C++, C#, Java and Perl.

Report Error

View Answer Report Error Discuss

1 2999
Q:

What is a stub network?

A) A network with only one entry and no exit point. B) A network that has only one entry and exit point.
C) A network with more than one exit point. D) A network with more than one exit and entry point.
 
Answer & Explanation Answer: B) A network that has only one entry and exit point.

Explanation:

A stub network has only one default path to non-local hosts and no outside network knowledge. Non-local stub network traffic uses a single logical path when traveling in and out of the network.

 

Stub networks are essentially local area networks (LAN) that either do not connect to the outside and relay data packets internally or are dead-end LANs that know of only one network exit. Stub networks may have multiple connections but use one path to single points of destination.

 

Hence, a stub network is a network that has only one entry and exit point.

Report Error

View Answer Report Error Discuss

3 2994
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 2993
Q:

Synonym of 'Beautiful'?

A) Alluring B) Ugly
C) Disgusting D) Loathsome
 
Answer & Explanation Answer: A) Alluring

Explanation:

Beautiful means good looking, having pleasing personality, glamourous, charming.

Synonyms of Beautiful are handsome, attractive, alluring, cute, fair,...

 

Hence, in the given options Synonym of 'Beautiful' is Alluring.

Report Error

View Answer Report Error Discuss

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

2 2992
Q:

When do you override hashcode and equals() ?

Answer

HashCode method return int value. So the Hash value is the int value returned by the hash function .


If you want to do equality check or want to use your object as key in HashMap, we must override hashcode and equals() method.

Report Error

View answer Workspace Report Error Discuss

Subject: Java
Job Role: Analyst , IT Trainer

5 2985
Q:

Which of the following is not a fossil fuel?

A) Natural Gas B) Uranium
C) Coal D) Petroleum
 
Answer & Explanation Answer: B) Uranium

Explanation:

Uranium is not a fossil fuel whereas coal, petroleum and natural gas are all natural resources.

Fossil fuels are hydrocarbons, primarily coal, fuel oil or natural gas, formed from the remains of dead plants and animals. In common dialogue, the term fossil fuel also includes hydrocarbon-containing natural resources that are not derived from animal or plant sources

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

6 2984
Q:

Sound travels fastest in

A) Vacuum B) Air
C) Glass D) Water
 
Answer & Explanation Answer: C) Glass

Explanation:

Sound is a mechanical vibration and needs a medium for propagation. The higher the density of the medium, the faster the sound travels. So, sound cannot travel through vacuum.

 

As the sound travels faster in solids than liquids and gases, sound travels faster in the glass than Air and water.

Report Error

View Answer Report Error Discuss

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

3 2979
Q:

GNLF stands for

A) Gorkha National Liberation Front B) Gross National Liberation Form
C) Both option A and B D) None of the above
 
Answer & Explanation Answer: A) Gorkha National Liberation Front

Explanation:

GNLF stands for Gorkha National Liberation Front.

 

Gorkha National Liberation Front (GNLF) is a political party in the Darjeeling District of West Bengal, India. It was formed in 1980 by Subhash Ghisingh with the objective of demanding a Gorkhaland state within India.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

2 2977