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 2411
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 2410
Q:

What are the followers of Hinduism called

A) Brahmans B) Hindus
C) Sindhus D) Indus
 
Answer & Explanation Answer: B) Hindus

Explanation:

The followers of Hinduism are called Hindus.

Report Error

View Answer Report Error Discuss

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

3 2410
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.

Another marvel on the far side of the lake was a little farm that felt like a secret in the city. Some of the gaunt Karnataka labourers even looked away when children came to dig and eat. But the greatest pleasure, this side of the lake, was the jamun tree. A few months back, Kalu and Sunil had a feast in the branches, shaking down a few berries for Mirchi.

That's when they came to know the second-coolest thing about the jamun tree : There were parrots nesting in it. Since then, some other road boys had been capturing the parrots one by one to sell at the Marol Market, but Sunil had brought Kalu around to the belief that the birds should be left as they were. Sunil listened for their squawks each morning, to make sure they hadn't been abducted in the night.

Kalu's expertise was in the recycling bins inside airline catering compounds. Private waste collectors emptied these dumpsters on a regular basis, but Kalu had mastered the trash truck's schedules. The night before pickup, Kalu would climb over the barbed-wire fences and raid the overflowing bins.

Kalu's routine had become known by the local police, however. He kept getting caught, until some constables proposed a different arrangement. Kalu could keep his metal scrap if he'd pass on information he picked up on the road about local drug dealers.


What was the second coolest thing about the Jamun tree?

A) Shaking down the berries for Mirchi B) There were parrots nesting in the tree
C) Selling parrots in the Marol Market D) Capturing parrots in the tree
 
Answer & Explanation Answer: B) There were parrots nesting in the tree

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2410
Q:

Which of the following requires one byte of storage?

A) Character B) Sentence
C) Page D) Paragraph
 
Answer & Explanation Answer: A) Character

Explanation:

A Unicode character requires between one and four bytes of storage, depending on the encoding format used. Hence, a character requires one byte of storage.

Report Error

View Answer Report Error Discuss

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

7 2409
Q:

Which one of the following fishing banks is located off the coast of the United Kingdom?

A) Great Fisher Bank B) Grand Banks
C) Dogger Bank D) Reed Bank
 
Answer & Explanation Answer: C) Dogger Bank

Explanation:

Dogger Bank (Dutch: Doggersbank, German: Doggerbank, Danish: Doggerbanke) is a large sandbank.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 2409
Q:

Motion of a train is an example of ______.

A) Rotatory motion B) Spin motion
C) Projectile motion D) Translatory motion
 
Answer & Explanation Answer: D) Translatory motion

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

2 2409
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 2409