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

Look at the underlined part of each sentence. Below each sentence are given three possible substitutions for the underlined part. If one of them (a), (b) or (c) is better than the underlined part, indicate your response on the Answer Sheet against the corresponding letter. If none of the substitutions imporves the sentence, indicate (d) as your response on the Answer Sheet.

He took a loan of hundred rupees from me.

A) debt B) demand
C) advance D) no improvement
 
Answer & Explanation Answer: D) no improvement

Explanation:

No improvement is required. Loan is a temporary provision of money, usage is correct. Debt is an obligation. Demand is a claim to something owed. Advance is a supply in expectation of repayment.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2324
Q:

Improve the bracketed part of the sentence.
The real principle behind love is to see the (underlied) divine consciousness in everything.

A) underlying B) underlay
C) underlie D) No improvement
 
Answer & Explanation Answer: A) underlying

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English

0 2324
Q:

Improve the bracketed part of the sentence.
The workers are bent (on) getting a full months pay as bonus.

A) for B) upon
C) to D) no improvement
 
Answer & Explanation Answer: B) upon

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2324
Q:

What was established by the Americans, the British and the Canadians at Bretton woods in 1944?

Answer

The International Monetary Fund and the international Bank for Reconstruction and development.

Report Error

View answer Workspace Report Error Discuss

0 2324
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 2324
Q:

Acceleration is the rate of change of

A) Speed B) Velocity
C) Jerk D) Jounce
 
Answer & Explanation Answer: B) Velocity

Explanation:

The rate of change of velocity is called as Acceleration.

Report Error

View Answer Report Error Discuss

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

10 2323
Q:

An electron and a proton starting from rest get accelerated through potential difference of 100kV. The final speeds of the electron and the proton are Ve and Vp respectively. Which of the following relations is correct?

A) Ve > Vp B) Ve < Vp
C) Ve = Vp D) Cannot be determined
 
Answer & Explanation Answer: A) Ve > Vp

Explanation:

Both when accelerated through a potential difference of 100KV, they will have the same energy. The mass of the electron is less than the mass of a proton, hence it will move faster(momentum).

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

3 2323