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

Who among the following pioneered Khilafat Movement?

A) Mahatma Gandhi B) Ali Brothers
C) M.A. Jinnah D) Sir Syed Ahmed Khan
 
Answer & Explanation Answer: B) Ali Brothers

Explanation:

The Khilafat movement, also known as the Indian Muslim movement (1919–24), was a pan-Islamist political protest campaign launched by Muslims of British India led by Shaukat Ali, Mohammad Ali Jauhar and Abul Kalam Azad.

Report Error

View Answer Report Error Discuss

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

5 2428
Q:

What is the Currency of Qatar?

A) Riyal B) kwanza
C) Nuevo Sol D) Peso
 
Answer & Explanation Answer: A) Riyal

Explanation:

Currency of Qatar -RiyalCurrency of Angola -kwanzaCurrency of Peru –Nuevo SolCurrency of Philippines –PesoCurrency of Iraq –Dinar

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

0 2428
Q:

Four statements are given below at A, B, C and D. There may be some errors in the given statement(s). The incorrect statement is your answer.

A) A. People as many as those in a small nation can be seen, at stations, commuting from faraway places every day. B) B. People from faraway places are poured out by the stations of numerical small nations.
C) C. The stations pour out people commuting from faraway places every day, of the numerical magnitude of small nations. D) D. People of a numerical magnitude of small nations commuting from faraway places are poured out by the stations every day.
 
Answer & Explanation Answer: B) B. People from faraway places are poured out by the stations of numerical small nations.

Explanation:

Ans. B.
Option B- ‘stations of numerical small nations’ is incorrect.
The other statements make complete sense, hence are correct.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: CAT , GRE , TOEFL

0 2428
Q:

What is the general formula for a straight-chain alkane?

A) C2nH2n+3. B) CnH2n+2
C) CnH2n D) CnH3n+2.
 
Answer & Explanation Answer: B) CnH2n+2

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2428
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 2428
Q:

In the following question, out of the given four alternatives, select the one which is opposite in meaning of the given word.

Discordant

A) Aggressive B) Agreeable
C) Noisy D) Differ
 
Answer & Explanation Answer: A) Aggressive

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: CAT , GRE , TOEFL
Job Role: Bank Clerk , Bank PO

0 2428
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.


There is a time in every man's education when he arrives at the conviction that envy is ignorance; that imitation is suicide; that he must take himself for better, for worse, as his portion; that though the wide universe is full of good, no kernel of nourishing corn can come to him but through his toil bestowed on that plot of ground which is given to him to till. The power which resides in him is new in nature, and none but he knows what that is which he can do, nor does he know until he has tried. Not for nothing one face, one character, one fact, makes much impression on him, and another none. This sculpture in the memory is not without pre-established harmony. The eye was placed where one ray should fall, that it might testify of that particular ray. We but half express ourselves, and are ashamed of that divine idea which each of us represents. It may be safely trusted as proportionate and of good issues, so it be faithfully imparted, but God will not have his work made manifest by cowards. A man is relieved and gay when he has put his heart into his work and has done his best; but what he has said or done otherwise, shall give him no peace. It is a deliverance which does not deliver. In the attempt his genius deserts him; no muse befriends; no invention, no hope.

 

What does the word 'Manifest' mean?

A) Display B) Hide
C) Shout D) Try
 
Answer & Explanation Answer: A) Display

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2428