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

In which state president rule has been imposed in 2018 December?

A) Haryana B) Delhi
C) Telangana D) Jammu & Kashmir
 
Answer & Explanation Answer: D) Jammu & Kashmir

Explanation:
Report Error

View Answer Report Error Discuss

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

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

Liquid sodium is being considered as

A) engine coolant B) bleaching agent
C) antiseptic D) None of the above
 
Answer & Explanation Answer: A) engine coolant

Explanation:

Liquid sodium is being considered as engine coolant.

Report Error

View Answer Report Error Discuss

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

2 2317
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 2317
Q:

What are the UNESCO's focus areas in the cultural field

A) The link between culture and development B) Action to conserve and protect the world cultural inheritance
C) By assisting member States in studying and preserving both physical and the non Physical heritage of their societies D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

1 2317
Q:

The partition of india in 1947 was mainly due to

A) religious lines B) land disputes
C) administration D) All of the above
 
Answer & Explanation Answer: A) religious lines

Explanation:

After 200 years of long British rule, India got independence in 1947. India was then divided into two muslim majority Pakistan and Hindu majority India.

Report Error

View Answer Report Error Discuss

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

6 2316
Q:

This is an ancient invention that allows people to see through the walls. What is it?

Answer

I am a Window, allows people to see through walls.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles Exam Prep: Bank Exams
Job Role: Bank Clerk

8 2316