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 6895
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:

Which of the statements given below are correct?


A) In 2017 Pro Kabaddi League, Sandeep Narwal played for Bengaluru Bulls.


B) In 2017, Dani Pedrosa raced in MotoGP for Honda.


C) In 2017, Glenn Maxwell captained the IPL team Kolkata Knight Riders.

 

A) Only B B) Both A and B
C) Both A and C D) A, B and C
 
Answer & Explanation Answer: B) Both A and B

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

1 6889
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:

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

Which of the following products implemented the CODASYL DBTG model?

A) IDMS B) DB2
C) dBase-II D) R:base
 
Answer & Explanation Answer: A) IDMS

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

0 6878
Q:

Most websites have a main page , the ______ which acts as a doorway to the rest of the website pages.

A) Search engine B) Home page
C) Browser D) URL
 
Answer & Explanation Answer: B) Home page

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

9 6874
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 6872