IT Trainer Questions


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 3433
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 3430
Q:

The difference between the present ages of Avanthi and Kapil is 9 years. After 7 years, Kapil’s age is twice of Avanthi’s age. What will be Kapil’s age after 4 years?

A) 15 B) 16
C) 18 D) 20
 
Answer & Explanation Answer: A) 15

Explanation:

Let the present ages of Kapil and Avanthi be K & A

Given difference in their ages = K - A = 9 years ...........(1)

After 7 years, K + 7 =  2(A + 7) ......(2)

K + 7 = 2A + 14

K - 2A = 7 ............(3)

K - A = 9 ....(1)

From (1) & (3),

-A = -2

=> A = 2 years

=> K = 9 + 2 = 11 years

 

Required, age of Kapil after 4 years = 11 + 4 = 15 years.

Report Error

View Answer Report Error Discuss

3 3406
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 3403
Q:

Which line is an example of the poetic technique metonymy?

A) I’m martyr to a motion not my own B) These old bones live to learn her wanton ways
C) Let seed be grass, and grass turn into hay D) I swear she cast a shadow white as stone
 
Answer & Explanation Answer: B) These old bones live to learn her wanton ways

Explanation:

Metonymy is a figure of speech in which a thing or concept is referred to by the name of something closely associated with that thing or concept. Hence it occurs when a word is replaced by a word that has an obvious relation to itself.

 

In the given example of the text, the bones refer to the human being.

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

What is the difference between int and int32 ?

Answer

There is no difference between int and int32. System. Int is an alias name for System.Int32 which is a .Net Class.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET
Job Role: Analyst , IT Trainer

1 3384
Q:

A person who pretends to be what he is not?

A) Posthumous B) Glutton
C) Imposter D) Rogue
 
Answer & Explanation Answer: C) Imposter

Explanation:

A person who pretends to be what he is not is an Imposter.

Report Error

View Answer Report Error Discuss

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

1 3382
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 3381