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

6 6897
Q:

Who is the first British footballer to play 100 champions League matches and the highest paid player in the world ?

Answer

David Beckham

Report Error

View answer Workspace Report Error Discuss

2 6896
Q:

Which team Won the 2017 Santosh Trophy, the final of which was held in Bambolim, Goa.

 

A) Services B) Kerala
C) West Bengal D) Goa
 
Answer & Explanation Answer: C) West Bengal

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

1 6893
Q:

Major coalfields of India are located in the river valley of

A) Damodar B) Godavari
C) Mahanadi D) Wardha
 
Answer & Explanation Answer: A) Damodar

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

4 6891
Q:

Who of the following threw a bomb in the Central Legislative Assembly along with Bhagat Singh ?

A) B.K. Dutt B) Sukhdev
C) Jatin Das D) Rajguru
 
Answer & Explanation Answer: A) B.K. Dutt

Explanation:

Bhagat Singh and B.K. Dutt threw bombs in the Legislative Assembly as a protest against "Passage of public Safety bill".

Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk

23 6888
Q:

Rearrange the parts of the sentence in correct order.

We should learn our lesson
P-from this history and stay away
Q-of our neighbours
R-from interfering in the messy domestic politics

A) PRQ B) PQR
C) QPR D) RPQ
 
Answer & Explanation Answer: A) PRQ

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 6885
Q:

Quantitatively, the inertia of an object is measured by ______________.

 

A) its weight B) the product of its mass and velocity
C) its mass D) the product of its mass and acceleration
 
Answer & Explanation Answer: C) its mass

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams , CAT

0 6882
Q:

The first-ever World Tuna Day (WTD) is observed by the United Nations (UN) on which date  ?

A) May 2, 2017 B) May 1, 2017
C) April 2, 2017 D) May 3, 2017
 
Answer & Explanation Answer: A) May 2, 2017

Explanation:

The United Nations has marked the first World Tuna Day (WTD) on May 2, 2017 to conserve one of the globe’s most popular fish to be caught and eaten and to highlight the vital socio-economic importance of tuna to people around the world. Tuna plays a critical role in sustainable development, food security, economic opportunity, and livelihoods of people around the world. At present more than 80 States have tuna fisheries, thousands of tuna fishing vessels operate in all the oceans and tuna fishery capacity is still growing in the Indian and Pacific Oceans. The Day was designated in December 2016 resolution of the UN General Assembly.

Report Error

View Answer Report Error Discuss

Filed Under: Important Days and Years
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk

4 6881