Questions

Q:

In the following pieces of code, B and D will compile without any error. True or false ?

A: StringBuffer sb1 = "abcd";

B: Boolean b = new Boolean("abcd");

C: byte b = 255;

D: int x = 0x1234;

E: float fl = 1.2;

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

Explanation:

The code segments B and D will compile without any error. A is not a valid way to construct a StringBuffer, you need to create a StringBuffer object using "new". B is a valid construction of a Boolean (any string other than "true" or "false" to the Boolean constructor will result in a Boolean with a value of "false"). C will fail to compile because the valid range for a byte is -128 to +127 (i.e., 8 bits, signed). D is correct, 0x1234 is the hexadecimal representation in java. E fails to compile because the compiler interprets 1.2 as a double being assigned to a float (down-casting), which is not valid. You either need an explicit cast, as in "(float)1.2" or "1.2f", to indicate a float.

Report Error

View Answer Workspace Report Error Discuss

16 12431
Q:

Which is the largest epic in world ?

Answer



Mahabharat


 

Report Error

View answer Workspace Report Error Discuss

69 12431
Q:

Which structural formula represents a dipole?

dipole1526886238.jpg image

A) 4 B) 3
C) 2 D) 1
 
Answer & Explanation Answer: D) 1

Explanation:

What is Dipole :

 

when two atoms in a molecule have substantially different electronegativity: One atom attracts electrons more than another, becoming more negative, while the other atom becomes more positive.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams , AIEEE
Job Role: Bank Clerk , Analyst

12 12410
Q:

Which is the largest gulf ?

Answer


The Gulf of Mexico is the largest among all the gulfs in the world.


 


the_largest_gulf_in_the_world_is1552973222.jpg image


 


A gulf is nothing but a large inlet from the ocean into the landmass, typically with a narrower opening than a bay.


 


The Gulf of Mexico is an ocean basin mostly surrounded by the North American continent. It is a unique, semi-enclosed sea located between the Yucatan and Florida peninsulas, at the southeast shores of the United States.

Report Error

View answer Workspace Report Error Discuss

Subject: Longest, Shortest, Deepest Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

60 12404
Q:

If a band is played on the moon the sound will

A) reverberate B) be heard by us faintly
C) be heard upto 10km from it D) not be heard at any distance at all from it
 
Answer & Explanation Answer: D) not be heard at any distance at all from it

Explanation:

As there is no atmosphere surrounding the moon, the sound from any band that is played there cannot travel outwards there is no material medium  surrounding it for its propagation.

Report Error

View Answer Report Error Discuss

Filed Under: Physics

39 12399
Q:

Who is considered as the master of Greek comedy ?

A) Aeschylus B) Sophocles
C) Aristophanes D) Philip
 
Answer & Explanation Answer: C) Aristophanes

Explanation:

"Aeschylus" was the founder of Greek tragedy, he was author of "Promethus Bound".

"Sophocles" is considered as the greatest Greek tragedians.

"Philip" was the father of Alexander.

Report Error

View Answer Report Error Discuss

Filed Under: World History

28 12393
Q:

Ayurveda Owes its Origin to

A) Yajurveda B) Atharvaveda
C) Rigveda D) Samaveda
 
Answer & Explanation Answer: B) Atharvaveda

Explanation:

Ayurveda Owes its Origin to Atharvaveda.

 

The early history of ayurveda asserts that around 1500 BC, ayurveda's fundamental and applied principles got organised and enunciated. In this historical construction, Ayurveda traces its origins to the Vedas, Atharvaveda in particular, and is connected to Hindu religion. Atharvaveda (one of the four most ancient books of Indian knowledge, wisdom and culture) contains 114 hymns or formulations for the treatment of diseases. Ayurveda originated in and developed from these hymns. In this sense, ayurveda is considered by some to have divine origin. Indian medicine has a long history, and is one of the oldest organised systems of medicine. Its earliest concepts are set out in the sacred writings called the Vedas, especially in the metrical passages of the Atharvaveda.

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: CAT , Bank Exams , AIEEE
Job Role: Bank PO , Bank Clerk , Analyst

31 12370
Q:

Which is the simplest file structure?

A) Sequential B) Indexed
C) Random D) None
 
Answer & Explanation Answer: A) Sequential

Explanation:

Sequential is the simplest file structure

Report Error

View Answer Report Error Discuss

Filed Under: Software Testing

8 12358