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

If (a+c+1) = 0, then find the value of a3 + c3 + 1 - 3ac

 

 

A) -1 B) 1
C) 2 D) 0
 
Answer & Explanation Answer: D) 0

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards
Exam Prep: Bank Exams

0 18089
Q:

Which of the following countries is not a member of the Nuclear Suppliers Group(NSG)

A) France B) Russia
C) USA D) Iran
 
Answer & Explanation Answer: D) Iran

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

38 18055
Q:

 What does Mean Time to Repair (MTTR) mean?

A) Average uptime of a service B) Average downtime of a service
C) Average time between two consecutive incidents D) Average time of the breakdown-free period within a measured period
 
Answer & Explanation Answer: B) Average downtime of a service

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: ITIL Certification

16 18041
Q:

What do eukaryotic cells have that prokaryotic cells do not?

A) Nucleus B) Cytoplasm
C) Ribosomes D) DNA
 
Answer & Explanation Answer: A) Nucleus

Explanation:

ep1527656002.jpg image

Eukaryotic cells contain membrane-bound organelles, including a nucleus. Eukaryotes can be single-celled or multi-celled, such as you, me, plants, fungi, and insects.

 

Whereas Prokaryotic cells do not contain a nucleus or any other membrane-bound organelle. Bacteria are an example of prokaryotes.

Report Error

View Answer Report Error Discuss

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

34 18030
Q:

Which one of the following rulers of Magadha was the contemporary of Alexander, the great

A) Mahapadamnanda B) Dhanananda
C) Sukalp D) Chandragupta Maurya
 
Answer & Explanation Answer: B) Dhanananda

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

32 18022
Q:

The famous figure of a dancing girl found in the excavation of Mohenjodaro was made up of

A) terracotta B) Steatite
C) bronze D) red limestone
 
Answer & Explanation Answer: C) bronze

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

33 18018
Q:

What bet can never be won?

Answer

ALPHABET is the bet can never be won.

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: AIEEE , Bank Exams , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO

118 18014