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

Formatting a cell in currency you can specify

A) Percentage symbol B) Currency symbol
C) Decimal places D) Both B & C
 
Answer & Explanation Answer: B) Currency symbol

Explanation:

Formatting a cell in currency you can specify Currency symbol.

Report Error

View Answer Report Error Discuss

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

10 13852
Q:

Ashtadhyayi was written by

A) Ved vysa B) Panini
C) Shukadeva D) Balmiki
 
Answer & Explanation Answer: B) Panini

Explanation:

Ashtadhyayi was written by Panini. He was a Sanskrit grammarian who gave a comprehensive and scientific theory of phonetics, phonology, and morphology. Panini was born in Shalatula, a town near to Attock on the Indus river in present day Pakistan.

Ashtadhyayi_was_written_by1565176023.jpg image

Report Error

View Answer Report Error Discuss

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

13 13839
Q:

A semi-mechanised car park, the first of its kind in Jammu and Kashmir, was inaugurated by ___________.

A) Mehbooba Mufti B) Narendra Modi
C) Nitin Gadkari D) Pranab Mukherjee
 
Answer & Explanation Answer: A) Mehbooba Mufti

Explanation:

A semi-mechanised car park, the first of its kind in Jammu and Kashmir, was inaugurated by Chief Minister Mehbooba Mufti who hoped the facility would ease traffic congestion in and around Lal Chowk. The multi-level car park, located near the old KMD bus stand on Maulana Azad Road, has been set up at a cost of Rs 27.15 crore and has a capacity to hold 288 vehicles.

Report Error

View Answer Report Error Discuss

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

11 13810
Q:

A web page is located using a

A) Universal Record Locator B) Universal Resource Locator
C) Uniform Record Linking D) Universal Record Linking
 
Answer & Explanation Answer: B) Universal Resource Locator

Explanation:

A web page is located using a URL (Universal Resource Locator). Universal Resource Locator is also known as web address.

 

It basically refers to a web resource which is meant for the specification of its location on the network of computer. It is also a mechanism through which information can be retrieved.

Report Error

View Answer Report Error Discuss

12 13801
Q:

Latitude of place is indicated of its

A) Time B) Altitude
C) Amount of rain D) Temparature
 
Answer & Explanation Answer: D) Temparature

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

23 13798
Q:

Mahalanobis Model has been associated with which Five Year Plan

A) First Five Year Plan B) Second Five Year Plan
C) Third Five Year Plan D) Fourth Five Year Plan
 
Answer & Explanation Answer: B) Second Five Year Plan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

21 13776
Q:

Who was the man to attend the Imperial Durbar in 1877 dressed in hand-spun Khadi and was one of the founders of the Poona Sarvajanik Sabha in 1807?

A) M.G.Ranade B) S.N. Banerjee
C) Ganesh Vasudev Joshi D) Bal Gangadhar Tilak
 
Answer & Explanation Answer: C) Ganesh Vasudev Joshi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

103 13774