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

If 3$8 = -50, 3$5 = -20 and 2$3 = -10, then find the value of 9$1 = ?

 

A) 10   B) -20  
C) 90   D) 80
 
Answer & Explanation Answer: D) 80

Explanation:
Report Error

View Answer Report Error Discuss

1 19307
Q:

Smallest gulf in the world is

A) Gulf of Mexico B) Persian Gulf
C) Gulf of Oman D) Gulf of California
 
Answer & Explanation Answer: D) Gulf of California

Explanation:

A gulf in geography is a large bay that is an arm of an ocean or sea.

 

The second smallest sea on Earth is the Sea of Cortez, more commonly called the Gulf of California. This sea is about 62,000 square miles. It lies between Mexico and the Baja California Peninsula.

Report Error

View Answer Report Error Discuss

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

28 19288
Q:

Whose signature on Indian currency notes?

A) Finance minister B) RBI Governor
C) Prime minister D) President
 
Answer & Explanation Answer: B) RBI Governor

Explanation:

Except a one rupee note, all other denomination currencies have the signature of RBI Governor on it. One rupee note will have the sign of finance secretary of India.

whose_signature_on_indian_currency_notes1553773379.jpg image

Report Error

View Answer Report Error Discuss

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

11 19274
Q:

Which is Highest Gallantry Award in India ?

Answer



Paramveer Chakra


 

Report Error

View answer Workspace Report Error Discuss

41 19270
Q:

Sodium carbonate crystal lose water molecules this property is called

A) hygroscopy B) deliquescence
C) efflorescence D) None of these
 
Answer & Explanation Answer: C) efflorescence

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

63 19269
Q:

A statistical method for identifying which factors may influence specific variables of a product or process under development or in production is called

A) cost benefit analysis. B) sensitivity analysis.
C) cost of quality analysis. D) design of experiments.
 
Answer & Explanation Answer: D) design of experiments.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: PMP Certification

29 19263
Q:

You are my brother, but I am not your brother.

Answer

I am your SISTER.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles Exam Prep: Bank Exams

69 19252