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

Which statement concerning the diagnosis of ADHD is true?

A) Boys are more likely to be diagnosed with ADHD than girls B) Most children "outgrow" symptoms of ADHD
C) About 20 percent of school-age children are diagnosed with ADHD D) Racial minority status is a good predictor of being diagnosed with ADHD
 
Answer & Explanation Answer: A) Boys are more likely to be diagnosed with ADHD than girls

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE
Job Role: Analyst

3 2126
Q:

How CNG is a cleaner fuel?

I. It produces oxides of Sulphur and Nitrogen in very small amounts.
II. It makes environment less polluted.
III. It emits less greenhouse gases.

A) Only I and II B) Only II and III
C) Only I and III D) All I, II and III
 
Answer & Explanation Answer: D) All I, II and III

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science

3 2126
Q:

Subordinate courts are supervised by___________

A) Supreme Court B) District Court
C) High Court D) Parliament
 
Answer & Explanation Answer: C) High Court

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 2125
Q:

Which one of the following statements is not correct with respect to protection of individuals being tried for offences?

A) A confession can never be used as evidence against the accused. B) The accused must have violated an existing law.
C) An accused cannot be tried and punished for the same offence again. D) The quantum of punishment must be provided in law as it existed on the date of commission of an offence.
 
Answer & Explanation Answer: A) A confession can never be used as evidence against the accused.

Explanation:

Article-20 of the Constitutiongrants protection against arbitrary and excessive punishment to an accused person. It contains three provisions in that direction No Ex-post-facto Law No person shall be convicted of any offence except for violation of a law in force at the time of the commission of the Act nor subjected to a penalty greater than that prescribed by the law in force at the time ofthe commission of the Act.No Double Jeopardy No person shall be prosecuted and punished for the same offence more than once.No Self-incrimination No person accused of any offence shall be compelled to be a witness against himself.As per the Constitution, a person/entity can be tried retrospectively in certain instances as provided by the law

Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams

0 2125
Q:

The least penetrating power ray is

A) Gamma rays B) Beta rays
C) Alpha rays D) None of the above
 
Answer & Explanation Answer: C) Alpha rays

Explanation:

The least penetrating power ray is Alpha rays.

Report Error

View Answer Report Error Discuss

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

1 2125
Q:

What is the difference in writing the test cases for Integration testing and system testing?

Answer

Integration testing is done at module level when various modules are integrated with each other to form a system or sub-system. Its main purpose is to ensure that interfaces between various modules are working properly; i.e. modules which are working individually are also working correctly together.


System testing is done on a complete, integrated system to evaluate the system’s compliance with its specified requirements. It validates that the system meets its functional and non-functional requirements.


From these definitions, it is clear that the purpose of Integration and purpose of System Testing are different. Therefore, Integration test cases focus more on the interfaces between modules (interface integrity) - the data transfer and their interaction with each other. System test cases focus on testing the product as a whole; i.e. whether the functional, non-functional requirements of the System are met or not. Since System Testing is the final phase before delivery of the product, System test cases should pinpoint configuration related errors along with testing for performance, security, reliability etc.

Report Error

View answer Workspace Report Error Discuss

Subject: Software Testing

1 2125
Q:

Prithviraja III (1168-1192) was a best known ___________ ruler.

A) Chahamana B) Gahadavala
C) Chalukya D) Brahmana
 
Answer & Explanation Answer: A) Chahamana

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

1 2125