Questions

Q:

Rewrite the following set of statements using conditional operators.

int a =1, b ;

if ( a > 10 )

b = 20; 

Answer

int a = 1, b , dummy;


a > 10 ? b = 20 : dummy =1;


 


Note that the following would not have worked:


a > 10 ? b = 20 : ;;


 

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

3 5081
Q:

Answer the Following Puzzle.

Number Puzzles Questions and Answers

A) 9 B) 5
C) 4 D) 6
 
Answer & Explanation Answer: D) 6

Explanation:

Looking at the diagram in  rows, the central circle equals half the sum of the numbers in the other circles to the left and right of the centre.

 

Looking at the diagram in rows, the central circle equals half the sum of the numbers in the other circles to the left and right of the centre. - See more at: https://www.theonlinetestcentre.com/number-puzzles.html#1
Report Error

View Answer Report Error Discuss

Filed Under: Number Puzzles

21 5079
Q:

Rolling friction is caused by ____ from the following?

A) Non-elastic effects B) Gravity
C) Power dissipation D) Buoyancy
 
Answer & Explanation Answer: A) Non-elastic effects

Explanation:

Rolling friction or rolling drag is the force resisting the motion when a body rolls on a surface. It is mainly caused by non-elastic effects, that is, not all the energy needed for deformation of the wheel, roadbed, etc... is recovered when the pressure is removed.

Another cause of rolling resistance lies in the slippage between the wheel and the surface, which dissipates energy.

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE
Job Role: Bank Clerk , Bank PO

10 5077
Q:

Logical puzzle

You have 10 coins….arrange them in 4 straight lines such that each line contains 4 coins.

Report Error

View answer Workspace Report Error Discuss

27 5076
Q:

What goes up and down the stairs without moving?

A) Umbrella B) Lift
C) Stairs D) All the above
 
Answer & Explanation Answer: C) Stairs

Explanation:

Those are stairs which goes up and down without moving.

Report Error

View Answer Report Error Discuss

4 5076
Q:

The Cholas were the only known rulers in the history of india to have undertaken successful overseas naval expeditions. Who of the following Chola rulers successfully invaded Laccadives, Maldives, Sri Lanka and Sumatra?

A) Parantaka - I B) Rajaraja - I
C) Rajendra - I D) Both (b) and (c)
 
Answer & Explanation Answer: C) Rajendra - I

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

3 5073
Q:

Name the military exercise that is going on between Japanese and US military in northern Japan ?

A) Northern Viper B) Rimpac
C) Indra D) Valiant Shield
 
Answer & Explanation Answer: A) Northern Viper

Explanation:
Report Error

View Answer Report Error Discuss

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

6 5073
Q:

National Institute of Nutrition is located at which of the following places?

A) Pune B) Bangalore
C) Mumbai D) Hyderabad
 
Answer & Explanation Answer: D) Hyderabad

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Places

14 5072