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

What kind of Room has No Doors or Windows

Answer

Mushroom.

Report Error

View answer Workspace Report Error Discuss

2 2253
Q:

Supreme Court has banned the sale of BS-III vehicles from _____.

A) October 2, 2017 B) May 1, 2017
C) April 1, 2017 D) June 1, 2017
 
Answer & Explanation Answer: C) April 1, 2017

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

4 2253
Q:

What was the motto of the organization BSF?

A) Duty unto Death B) Service Before Self
C) Protection & Security D) Service and Loyalty
 
Answer & Explanation Answer: A) Duty unto Death

Explanation:

BSF - Border Security Force

 

The motto of the organization BSF is "Duty unto Death."

Report Error

View Answer Report Error Discuss

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

2 2253
Q:

What is a Multi-homed Host?

Answer

It is a host that has a multiple network interfaces and that requires multiple IP addresses is called as a Multi-homed Host

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

1 2252
Q:

Which of the following statement(s) is/are CORRECT?

A) Oxides of non-metals are basic B) Oxides of non-metals are acidic
C) Oxides of metals are acidic D) All options are correct
 
Answer & Explanation Answer: B) Oxides of non-metals are acidic

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

1 2252
Q:

Which property would be classified as expendable?

A) Food given to Army B) Cement
C) Paint D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Expendable properties are those properties that are consume in use or that lose their identity in use. It also include those properties that become an integral part of other property when put to use and those properties which have an expected service life of less than one year.

 

Report Error

View Answer Report Error Discuss

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

1 2252
Q:

Which statement correctly describes the role of chance in evolution?

A) An allele that increases evolutionary fitness cannot be lost from a population by chance events. B) The ultimate source of new alleles is mutation, random changes in the nucleotide sequences of an organism's DNA
C) Evolutionary change proceeds by an accumulation of changes that occur by chance. D) None of the above
 
Answer & Explanation Answer: B) The ultimate source of new alleles is mutation, random changes in the nucleotide sequences of an organism's DNA

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2251