Questions

Q:

Point out the error, if any, in the while loop.

main()

{

  int i = 1;

  while ()

  {

     printf ( "%d", i++);

     if (i >10) 

     break ;

   }

}

Answer

The condition in the while loop is a must.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3046
Q:

public static void main string[] args Meaning is?

Answer

Here in this declaration public static void main string[] args, each keyword has its importance.


 


1. public - Here public is an access specifier which allows the main method to be accessible everywhere.


 


2. static - static helps the main method to get loaded without getting called by any instance/object.


 


3. void - void clarifies that the main method will not return any value.


 


4. main - It's the name of the method.


 


5. String[] args - Here we are defining a String array to pass arguments at the command line. args is the variable name of the String array.

Report Error

View answer Workspace Report Error Discuss

8 3046
Q:

Centralisation is said to exist if 

A) Top Management retains most of the decision making authority B) Authority is shared with Managers at lower levels
C) Employees at all levels are allowed to take initiative in work related matters D) None of the above
 
Answer & Explanation Answer: A) Top Management retains most of the decision making authority

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

6 3046
Q:

What are the key object oriented concepts used by Windows NT?

Answer

Encapsulation, Object class and instance.

Report Error

View answer Workspace Report Error Discuss

1 3045
Q:

What can you serve but never eat?

Answer

A Badminton shuttle or a tennis ball.

Report Error

View answer Workspace Report Error Discuss

10 3045
Q:

What is the main component of biogas and natural gas?

A) Carbon dioxide B) Butane
C) Hydrogen Sulphide D) Methane
 
Answer & Explanation Answer: D) Methane

Explanation:

Methane is the main component of biogas and natural gas.

Report Error

View Answer Report Error Discuss

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

5 3045
Q:

The amount of water vapor in the air is

A) Hot air B) Humidity
C) Dew D) Foam
 
Answer & Explanation Answer: B) Humidity

Explanation:

The amount of water vapor ranges from a trace amount up to 4% of the mass of air. Water vapor exists as an invisible gas in the air.

 

The amount of water vapor in the air is called absolute humidity. The amount of water vapor in the air as compared with the amount of water that the air could hold is called relative humidity.

The maximum amount of water vapor that can be in the air depends on the air temperature.

Report Error

View Answer Report Error Discuss

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

4 3045
Q:

In India, population density is defined as the number of persons

A) Per square mile B) Per square kilometre
C) Per lakh square mile D) Per lakh square kilometre
 
Answer & Explanation Answer: B) Per square kilometre

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

2 3044