Questions

Q:

C program to find the factorial of a given number

Answer

 #include<stdio.h>
int main(){
  int i=1,f=1,num;

  printf("Enter a number: ");
  scanf("%d",&num);

  while(i<=num){
      f=f*i;
      i++;
  }

  printf("Factorial of %d is: %d",num,f);
  return 0;
}

Sample output:
Enter a number: 5
Factorial of 5 is: 120

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2034
Q:

Improve the bracketed part of the sentence.
(Hardly nothing) was offered to the victims of the earthquake.

A) Hardly something B) Hardly anything
C) Hardly little D) No improvement
 
Answer & Explanation Answer: B) Hardly anything

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2034
Q:

A sentence/a part of the sentence is underlined. Four alternatives are given to the underlined part which will improve the sentence. Choose the correct alternative and click the button corresponding to it. In case no improvement is needed, click the button corresponding to “No improvement”.

Both of us had a different opinion about it.

A) Both of us has  B) Each of us had 
C) Each of us have  D)  No improvement 
 
Answer & Explanation Answer: B) Each of us had 

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2034
Q:

Improve the bracketed part of the sentence.
The doctor (has advice) him to take proper diet.

A) has advised B) had been advised
C) was advised D) No improvement
 
Answer & Explanation Answer: A) has advised

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2033
Q:

Polyploidy is involved in which of the following examples?

A) XYY males B) Some plants alternate between haploid and diploid phases
C) XO females D) A normal watermelon has 22 chromosomes but seedless watermelons have 33 chromosomes
 
Answer & Explanation Answer: D) A normal watermelon has 22 chromosomes but seedless watermelons have 33 chromosomes

Explanation:
Report Error

View Answer Report Error Discuss

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

2 2033
Q:

In the following question, some part of the sentence may have errors. Find out which part of the sentence has an error and select the appropriate option. If a sentence is free from error, select 'No Error'.

No beggar who comes(A)/to our doors(B)/goes back empty handed.(C)/No error(D)

A) A B) B
C) C D) D
 
Answer & Explanation Answer: B) B

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2033
Q:

The Shiites believed that the Umayyad

A) should pray more B) should not be in power
C) got special treatment D) should rule
 
Answer & Explanation Answer: B) should not be in power

Explanation:
Report Error

View Answer Report Error Discuss

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

3 2033
Q:

Which one of the following crops is not cultivated in Karewas, the lacustrine deposit's of sand, clay, loam, silt and boulders?

 

A) Saffron B) Almond
C) Walnut D) Ling nut
 
Answer & Explanation Answer: D) Ling nut

Explanation:

Karewa sediments are treasures of many human civilizations and habitations. In fact, the agriculture of the valley dominantly survives and sustains on Karewa soils. The world famous saffron from Pampore and apples from Shopian are best examples.The famous almond orchids are best grown in the soils of karewas.

The karewas are mainly devoted to the cultivation of saffron, almond, walnut, apple and orchards.Ling nuts (singharas) grow throughout the East of India: West Bengal, Jharkhand, and Bihar are examples of such regions.

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

0 2033