Questions

Q:

Write a program to generate the Fibonacci series in c?

Answer

 #include<stdio.h>
int main(){
    int k,r;
    long int i=0l,j=1,f;

    //Taking maximum numbers form user
    printf("Enter the number range:");
    scanf("%d",&r);

    printf("FIBONACCI SERIES: ");
    printf("%ld %ld",i,j); //printing firts two values.

    for(k=2;k<r;k++){
         f=i+j;
         i=j;
         j=f;
         printf(" %ld",j);
    }
 
    return 0;
}

Sample output:
Enter the number range: 15
FIBONACCI SERIES: 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2303
Q:

The headquaters of food and agriculture organisation is in

A) Paris B) Rome
C) Madrid D) Washington
 
Answer & Explanation Answer: B) Rome

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

0 2302
Q:

Which nutrient provides maximum energy?

A) Fats B) Carbohydrates
C) Proteins D) None of the above
 
Answer & Explanation Answer: A) Fats

Explanation:

The nutrient which provides the maximum energy is Fat. It provides the energy of 9 calories/gram.

Report Error

View Answer Report Error Discuss

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

5 2302
Q:

When moon's orbit is closest to earth is called as

A) Perigee B) Apogee
C) Perihelion D) Aphelion
 
Answer & Explanation Answer: A) Perigee

Explanation:

When moon's orbit is closest to earth is called as Perigee.

The distance between the Moon and Earth varies throughout the month and the year since the moon's orbit around the earth is elliptical. The distance is about 382,900 kilometers from the Moon's center to the center of Earth.

 

Hence, the point on the Moon's orbit closest to Earth is called the perigee.

Report Error

View Answer Report Error Discuss

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

0 2302
Q:

What is source route?

Answer

It is a sequence of IP addresses identifying the route a datagram must follow. A source route may optionally be included in an IP datagram header

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

1 2302
Q:

Which equation is an example of a synthesis reaction?

A) 2H2 + O2 → 2H2O B) Na + Cl → NaCl
C) HA + BOH → H2O + BA D) NaCl + AgNO3 → NaNO3 + AgCl
 
Answer & Explanation Answer: B) Na + Cl → NaCl

Explanation:

When two or more chemical species combine to form a single product, the reaction is said to be synthesis reaction. It is also called as Direct Combination reaction.

 

Here in the given options, Sodium (Na) combines with Chlorine (Cl) to form a more complex single product Sodium Chloride (NaCl).

Report Error

View Answer Report Error Discuss

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

2 2302
Q:

The unit of energy in MKS system is

A) Joule B) Ohm
C) Erg D) Volt
 
Answer & Explanation Answer: A) Joule

Explanation:

The unit of energy in MKS system is Joule.

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

M is a 7 letter word, M is impossible for GOD, The poor have M and The rich look for M from the poor, If you eat M you will die, M is more important than your life. I swear i will give you M if you get the answer. What is M?

Answer

The required 7 letter English word is NOTHING.

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: Bank Exams

7 2301