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

Rearrange the parts of the sentence in correct order.
There is a deeper
P-fissure here that goes
Q-from western theory
R-beyond explanations

A) PRQ B) PQR
C) QPR D) RPQ
 
Answer & Explanation Answer: A) PRQ

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2327
Q:

Read the passage carefully and choose the best answer to each question out of the four alternatives and click the button corresponding to it.

We set out for the gallows. Two warders marched on either side of the prisoner, with their rifles at the slope; two others marched close against him, gripping him by his arm and shoulder, as though, at once pushing and supporting him. The rest of us, magistrates and the like, followed behind. Suddenly, when we had gone ten yards, the procession stopped short without any order or warning. A dreadful thing had happened ­ a dog, come goodness knows whence, had appeared in the yard. It came bounding among us with a loud volley of barks, and leapt round us wagging its whole body, wild with glee at finding so many human beings together. It was a large woolly dog, half Airedale, half Pariah. For a moment, it pranced round us, and then, before anyone could stop it, it had made a dash for the prisoner, and jumping up tried to lick his face. Everyone stood aghast, too taken aback even to grab at the dog.

What was surprising about the actions of the dog?

A) It ran up and down the path B) It bit the guards
C) It barked at the magistrates D) It licked the prisoner's face
 
Answer & Explanation Answer: D) It licked the prisoner's face

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2327
Q:

Is international relations essay writing service useful for the academic works

Answer

Many students are always depending on the essay writing services but they do not know which one is more genuine for their works.International relations essay writing service is providing the useful writing guidelines for the students.And also they are providing sample essay for the stdudents. For more information about these services Visit clazwork

Report Error

View answer Workspace Report Error Discuss

3 2326
Q:

Which country is the largest producer of Rice in the world?

A) Russia B) China
C) Brazil D) India
 
Answer & Explanation Answer: B) China

Explanation:

China is the largest producer of Rice in the world.

Report Error

View Answer Report Error Discuss

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

1 2326
Q:

How does molecular shape affect polarity?

Answer

Polarity :: 


The polarity of a molecule defines its other physical properties such as melting point, boiling point, surface tension, vapor pressure etc... Simply, polarity occurs when the electron distribution in a molecule is asymmetric. This results in a net dipole moment in the molecule. One end of the molecule is charged negative while the other gets a positive charge.


 


The polarization of a molecule greatly depends on the shape of the molecule. A diatomic molecule like HF mentioned above has no issue of shape. The net dipole moment is only due to the uneven distribution of electrons between the two atoms. However, when there are more than two atoms involved in making a bond, there are many complexities.


 


The water molecule is of bent shape. Therefore, when the two pair of electrons shared by oxygen with two hydrogen atoms is pulled towards oxygen, the net dipole moment results in the direction of the oxygen atom. There is no other force to cancel out the resultant dipole moment. Hence, the water molecule is highly polar.


 


Ammonia molecule is of a pyramid shape and the electronegative N atom pulls the electrons towards itself. The three N-H bonds are not in the same plane; hence the dipole moments created do not get canceled out. This makes ammonia a polar molecule.


 


However, the dipole moments sometimes get canceled due to the shape of the molecules, making the molecule non-polar. Carbon dioxide is such a molecule.

Report Error

View answer Workspace Report Error Discuss

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

4 2326
Q:

The caves of Ajanta are famous for

A) paintings B) terra-cotta
C) sculpture D) temples
 
Answer & Explanation Answer: A) paintings

Explanation:

The caves of Ajanta are famous for paintings.

Report Error

View Answer Report Error Discuss

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

0 2325
Q:

The part of the Himalayas lying between Satluj and Kali rivers is known as ____________.

A) Punjab Himalaya B) Nepal Himalayas
C) Kumaon Himalayas D) Assam Himalayas
 
Answer & Explanation Answer: C) Kumaon Himalayas

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

3 2325