Questions

Q:

Write a c program to check whether a number is strong or not.

Answer

#include<stdio.h>
int main(){
  int num,i,f,r,sum=0,temp;

  printf("Enter a number: ");
  scanf("%d",&num);
 
  temp=num;
  while(num){
      i=1,f=1;
      r=num%10;

      while(i<=r){
         f=f*i;
        i++;
      }
      sum=sum+f;
      num=num/10;
  }
  if(sum==temp)
      printf("%d is a strong number",temp);
  else
      printf("%d is not a strong number",temp);

  return 0;
}

Sample output:
Enter a number: 145
145 is a strong number

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2027
Q:

Which among the following was 1st Municipal Corporation of India?

A) Allahabad B) Madras
C) Bombay D) Kolkata
 
Answer & Explanation Answer: B) Madras

Explanation:

The first municipal corporation was set up in India in the year 1687 at Madras, preceding the Bombay and Delhi municipal corporations.

Report Error

View Answer Report Error Discuss

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

3 2027
Q:

When was Indian Navy Act passed?

A) 1927 B) 1937
C) 1947 D) 1957
 
Answer & Explanation Answer: A) 1927

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: AIEEE , Bank Exams

0 2027
Q:

Which city will host the "Global Healthcare Summit" 2019?

A) Hyderabad B) Mumbai
C) Kolkata D) Bangalore
 
Answer & Explanation Answer: A) Hyderabad

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

2 2027
Q:

If an electron and a photon have the same wavelength, then they will have the same

A) velocity B) linear momentum
C) angular momentum D) energy
 
Answer & Explanation Answer: B) linear momentum

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

1 2027
Q:

Which mirror is used as rear view mirror in vehicles?

A) Concave B) Plane
C) Convex D) Any of the above
 
Answer & Explanation Answer: C) Convex

Explanation:

Convex mirror is used as rear view mirror in vehicles. Because the image is smaller, more image can fit onto the mirror, so a convex mirror provides for a larger field of view than a plane mirror. This is why they are useful.

Report Error

View Answer Report Error Discuss

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

5 2027
Q:

In the following question, out of the four alternatives, select the alternative which is the best substitute of the words/sentence.

Well chosen or suited to the circumstances

A) Bias B) Disparity
C) Asperity D) Felicitous
 
Answer & Explanation Answer: D) Felicitous

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2027
Q:

A change in which one or more new substances are formed is called _________.

A) Physical Change B) Chemical Change
C) Rusting D) Galvanisation
 
Answer & Explanation Answer: B) Chemical Change

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

1 2027