IT Trainer Questions


Q:

What is the difference between creating String as new() and literal ?

Answer

When we create string with new() Operator, it’s created in heap and not added into string pool while String created using literal are created in String pool itself which exists in PermGen area of heap.



String s = new String("Test");

does not put the object in String pool , we need to call String.intern() method which is used to put them into String pool explicitly. its only when you create String object as String literal e.g. String s = "Test" Java automatically put that into String pool.

Report Error

View answer Workspace Report Error Discuss

1 2350
Q:

In a spreadsheet program how is data organized?

A) Rows and columns B) Layers and planes
C) Lines and spaces D) All of the above
 
Answer & Explanation Answer: A) Rows and columns

Explanation:
Report Error

View Answer Report Error Discuss

1 2348
Q:

Oracle SQL developer is an

Answer

Oracle SQL developer is an Oracle Database IDE.

Report Error

View answer Workspace Report Error Discuss

0 2348
Q:

The word length of a computer is measured in

A) centimeters B) millimeters
C) bytes D) bits
 
Answer & Explanation Answer: D) bits

Explanation:
Report Error

View Answer Report Error Discuss

3 2343
Q:

The difference of squares of two numbers is 180. The square of the smaller number is 8 times the larger number. Find two numbers.

A) 10 & 12 B) 10 & 18
C) 12 & -18 D) -12 & 18
 
Answer & Explanation Answer: D) -12 & 18

Explanation:

Given, difference of the squares of two numbers is 180.

k2 - l2 - 180

 

Also, square of the smaller number is 8 times the larger.

= l= 8k

 

Thus, k2 - 8a - 180 = 0

k2 – 18k + 10k - 180 = 0

→  k(k - 18) + 10(k – 18) = 0

= (k + 10)(k – 18) = 0

→  k = -10, 18

 

Thus, the other number is

324 - 180 = l2 

 

→ Numbers are 12, 18 or -12, 18.

Report Error

View Answer Report Error Discuss

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

0 2340
Q:

Find the correctly spelt word?

A) Addulation B) Ominous
C) Adlation D) Omineous
 
Answer & Explanation Answer: B) Ominous

Explanation:

Ominous is the correctly spelt word in the given options. It means that giving the worrying impression that something bad is going to happen.

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

Alliteration is an example of what?

A) Assonance B) Consonance
C) Tongue twisters D) None of the above
 
Answer & Explanation Answer: B) Consonance

Explanation:

Alliteration is an example of Consonance. Consonance is the repetition of consonant sounds in words that are close to one another in a piece of text.

Example is "Peter Piper picked a peck of pickled peppers."

Whereas

Assonance is the repetition of vowel sounds, sometimes creating end rhymes.

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

3 2336
Q:

What has no beginning, end or middle?

Answer

A Donut or Doughnut. Anything in the shape of a torus.

Report Error

View answer Workspace Report Error Discuss

3 2331