Questions

Q:

C program to find whether a number is palindrome or not.

Answer

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

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

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

    return 0;
}

Sample output:
Enter a number: 131
131 is a palindrome

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 2188
Q:

Number of chambers in reptiles heart? 

A) 4 B) 2
C) 3 D) 1
 
Answer & Explanation Answer: C) 3

Explanation:

Except crocodile which has 4 chambers, all the reptiles have 3 chambers in their heart.

Report Error

View Answer Report Error Discuss

Filed Under: Animals and Birds
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

12 2187
Q:

Which error are you likely to get when you run the following program?

main()

{

  struct emp

  {

      char name[20];

      float sal;

  };

  struct emp e[10];

  int i;

  for ( i = 0 ; i <= 9; i++)

        scanf ( "%s %f" , e[i].name, &e[i].sal );

}

Answer

Floating point formats not linked

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2187
Q:

India become a member of the United Nations in which of the following years?

A) 1944 B) 1945
C) 1942 D) 1950
 
Answer & Explanation Answer: B) 1945

Explanation:
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 2187
Q:

In which language did Vardhaman Mahavira taught?

A) Prakrit B) Hindi
C) Pali D) Sanskrit
 
Answer & Explanation Answer: A) Prakrit

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

2 2187
Q:

Which country has the oldest National Flag?

A) Denmark B) Japan
C) India D) China
 
Answer & Explanation Answer: A) Denmark

Explanation:

Denmark has the oldest National Flag.

Report Error

View Answer Report Error Discuss

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

0 2187
Q:

The sentences given with blanks are to be filled with an appropriate word(s). Four alternatives are suggested for each question. For each question, choose the correct alternative and click the button corresponding to it.

We can __________ see anything in the dim light.

A) badly B) scarcely
C) fairly D) rather
 
Answer & Explanation Answer: B) scarcely

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2187
Q:

Where is Zoroastrianism practiced?

A) India B) Iran
C) Both A & B D) None of the above
 
Answer & Explanation Answer: C) Both A & B

Explanation:

Zoroastrianism, the ancient pre-Islamic religion of Iran that survives there in isolated areas and, more prosperously, in India, where the descendants of Zoroastrian Iranian (Persian) immigrants are known as Parsis, or Parsees.

Report Error

View Answer Report Error Discuss

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

2 2187