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

What are system calls?

Answer

System calls provide the interface between a process and the operating system. System calls for modern Microsoft windows platforms are part of the win32 API, which is available for all the compilers written for Microsoft windows.

Report Error

View answer Workspace Report Error Discuss

1 2129
Q:

In the following questions, one part of the sentence may have an error. Find out which part of the sentence has an error and click the button corresponding to it. If the sentence is free from error, click the "No error" option.
A. The trek is difficult
B. but it is far worth
C. the endeavour
D. No Error

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

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

A) Colonel B) Hypocracy
C) Offence D) Strength
 
Answer & Explanation Answer: B) Hypocracy

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2129
Q:

In the following question, out of the given four alternatives, select the alternative which best expresses the meaning of the Idiom/Phrase.

Argus eyed

A) A pretence B) Flatterer
C) Short tempered D) Observant
 
Answer & Explanation Answer: D) Observant

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English

4 2129
Q:

In the given question, a part of the sentence is printed in bold. Below the sentence three alternatives to the bold part are given which may help improve the
sentence. Choose the option that reflects the correct use of the phrase in the context of the sentence. In case the given sentence is correct, your answer is (E) i.e. No correction required.
For the people living below the poverty line, it is important to find jobs that had provided enough money to attain a minimum standard of living.
i. will have provided
ii. has provided
iii. provide

A) A. Only i B) B. Only ii
C) C. Only iii D) D. i and ii
 
Answer & Explanation Answer: C) C. Only iii

Explanation:

Ans. C.
The statement is in general sense and doesn’t talk in past or future context specifically. Therefore one must use the present tense of the verb. Thus, 'provide' is the correct answer.

Report Error

View Answer Report Error Discuss

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

0 2129
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".

I and my parents live together.

A) Me and my parents B) My parents and I
C) My parents and me D) No improvement
 
Answer & Explanation Answer: B) My parents and I

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2129
Q:

___________ states that internal energy is a function of state and the increase in internal energy is equal to the sum of the heat supplied to system and work done by the system.

A) First law of thermodynamics B) Hooke's Law
C) The coulomb's law D) Faraday's Law
 
Answer & Explanation Answer: A) First law of thermodynamics

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

1 2129