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

There were 42 students in a hostel. Due to the admission of 13 new students, the expenses of the mess increase by Rs. 30 per day while the average expenditure per head diminished by Rs. 3. What was the original expenditure of the mess ?

A) Rs. 630 B) Rs. 580
C) Rs. 470 D) Rs. 690
 
Answer & Explanation Answer: A) Rs. 630

Explanation:
Report Error

View Answer Report Error Discuss

0 2316
Q:

The NAM sumit which demanded expansion of the United Nation Security Council had met at

A) Cairo B) Jakarta
C) Teheran D) Harare
 
Answer & Explanation Answer: B) Jakarta

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

1 2315
Q:

Who is the author of Meghdoot?

A) Shundraka B) Vishakhadatta
C) Kalidasa D) Chanakya
 
Answer & Explanation Answer: C) Kalidasa

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: Bank Exams

0 2315
Q:

Which of the following is a micro nutrient?

A) Mg B) Cl
C) P D) Ca
 
Answer & Explanation Answer: B) Cl

Explanation:

The micronutrients (or trace minerals): boron (B), chlorine (Cl), manganese (Mn), iron (Fe), zinc (Zn), copper (Cu), molybdenum (Mo), nickel (Ni). and cobalt (Co).

Report Error

View Answer Report Error Discuss

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

1 2315
Q:

A person who does not believe in any religion

A) Atheist B) Rationalist
C) Pagan D) Philatelist
 
Answer & Explanation Answer: A) Atheist

Explanation:

A person who does not believe in any religion or god is called as Atheist.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO

0 2314
Q:

What is Mail Gateway

Answer

It is a system that performs a protocol translation between different electronic mail delivery protocols

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

0 2313
Q:

Where does protein synthesis take place?

A) Nucleus B) Ribosomes
C) On the cell wall D) All of the above
 
Answer & Explanation Answer: B) Ribosomes

Explanation:

Protein synthesis take place in the cytoplasm where ribosomes are located as they are the machinery which are responsible for the protein synthesis.

Report Error

View Answer Report Error Discuss

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

3 2313