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

IRDP stands for

A) International Rural Development Programme B) Integrated Rural Development Programme
C) Indian Rural Development policy D) None of these
 
Answer & Explanation Answer: B) Integrated Rural Development Programme

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

78 14468
Q:

How many joining conditions are required to join 4 tables in SQL?

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

Explanation:

To join 'n' tables 'n-1' conditions should be satisfied.

So to join 4 tables 3 conditions should be satisfied.

Report Error

View Answer Report Error Discuss

38 14467
Q:

The world famous 'Khajuraho' sculptures are located in

A) Gujarat B) Madhya Pradesh
C) Orissa D) Maharashtra
 
Answer & Explanation Answer: B) Madhya Pradesh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Places

58 14451
Q:

Why are CPM, GERT, and PERT not considered sufficient to create a project schedule?

A) All three are tools and techniques of schedule development, not the actual schedule B) As mathemetical analysis tools, they simply provide the dates that are posible, and do not consider resource pool limitations
C) They are sufficient. Each calculates early and late start and finish dates for each activity D) They are Monte Carlo techniques used to provide what-if analysis for adverse external factors on a project
 
Answer & Explanation Answer: B) As mathemetical analysis tools, they simply provide the dates that are posible, and do not consider resource pool limitations

Explanation:

Answer A is tempting because it is true by definition, but Answer B is correct because it properly answers the question, in that these techniques do not take into account resource pool constraints. Answer C is incorrect because it provides possible early and late start and finish dates, but not the actual schedules. Answer D is incorrect because none of the the three are simulation techniques. 

Report Error

View Answer Report Error Discuss

Filed Under: PMP Certification

20 14444
Q:

Who among the following is the author of Sri Lanka's national anthem?

 

A) Ananda Samarkone B) Kumaratunga Munidasa  
C) Siri Gunasinghe   D) P.B. Jayasekara  
 
Answer & Explanation Answer: A) Ananda Samarkone

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities
Exam Prep: Bank Exams

0 14437
Q:

The oldest type of energy known to man is _____?

A) Geothermal Energy B) Solar Power
C) Wind Power D) Tidal Power
 
Answer & Explanation Answer: A) Geothermal Energy

Explanation:

Geothermal energy is heat energy generated and stored in the Earth. Geothermal energy has been used for thousands of years in some countries for cooking and heating. It is simply power derived from the Earth's internal heat.

Report Error

View Answer Report Error Discuss

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

26 14429
Q:

The National Highway -1 connects Delhi to ________

A) Chennai B) Kolkata
C) Mumbai D) Amritsar
 
Answer & Explanation Answer: D) Amritsar

Explanation:

It passes through Ambala and Jalandhar

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

40 14424