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

The Mayan pyramids and temples were made from

A) Limestone B) Wood
C) Marble D) Granite
 
Answer & Explanation Answer: A) Limestone

Explanation:

The Mayans were an ancient civilization located in what is known as Mesoamerica, a geographical region comprised of Mexico and parts of Central America. They were extremely adept in matters of mathematics, astronomy, and art, and architecture.

 

The Mayan pyramids and temples were built with bricks and covered with limestone.

Report Error

View Answer Report Error Discuss

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

0 2120
Q:

If x + (1/x) = 2, then what is the value of x64 + x121?

A) 0 B) 1
C) 2 D) -2
 
Answer & Explanation Answer: A) 0

Explanation:
Report Error

View Answer Report Error Discuss

0 2120
Q:

Non-Gonococcal Urethritis is most often caused by

A) chlamydia B) gonorrhea
C) progesterone D) herpes genitalis
 
Answer & Explanation Answer: A) chlamydia

Explanation:

Chlamydial infection is very common in both males and females.

 

NGU (Non-Gonococcal Urethritis) is an infection of the urethra caused by pathogens (germs) other than gonorrhea.

 

Several types of germs cause NGU. The most common and serious is chlamydia.

Report Error

View Answer Report Error Discuss

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

0 2120
Q:

In the following question, four words are given out of which one word is incorrectly spelt. Select the incorrectly spelt word.

A) Usable B) Defense
C) Inventor D) Annaul
 
Answer & Explanation Answer: D) Annaul

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2120
Q:

In the following question, a sentence has been given in Active/Passive voice. Out of the four alternatives suggested, select the one which best expresses the same sentence in Passive/Active voice.

He saw him conducting the seminar on personality development.

A) He was seen by me to conduct the seminar on personality development. B) He was seen conducting the seminar on personality development.
C) He saw the seminar on personality development being conducted by him. D) He saw the seminar on personality development to be conducted by him.
 
Answer & Explanation Answer: C) He saw the seminar on personality development being conducted by him.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2119
Q:

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

Diminish in value over a period of time

A) Escalate B) Augment
C) Aggrandise D) Depreciate
 
Answer & Explanation Answer: D) Depreciate

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2119
Q:

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

 

One who runs away from justice.

A) Plaintive B) Fugitive
C) Accretive D) Adventives
 
Answer & Explanation Answer: B) Fugitive

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2119