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

What is a job queue?

Answer

When a process enters the system it is placed in the job queue.

Report Error

View answer Workspace Report Error Discuss

0 2129
Q:

Gopal is older than Mohan but younger than Ram. Mohan is older than Sohan but younger than Ram. Who is the oldest?

A) Gopal B) Mohan
C) Ram D) Sohan
 
Answer & Explanation Answer: C) Ram

Explanation:
Report Error

View Answer Report Error Discuss

3 2129
Q:

Who has scored fastest T20I fifty for India in women's cricket?

A) Harmanpreet Kaur B) Mithali Raj
C) Smriti Mandhana D) Anuja Patil
 
Answer & Explanation Answer: C) Smriti Mandhana

Explanation:

Smriti Mandhana has scored fastest T20I fifty for India in women's cricket in just 24 balls.

Report Error

View Answer Report Error Discuss

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

1 2129
Q:

What are * and? when using them for wildcards in windows?

Answer

* - any characters, aribitary among


? - single character

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2129
Q:

Which Indian city is known as 'The City of Pearls' as once it was the only global center of large diamonds and natural pearls made?

A) Hyderabad B) Jodhpur
C) Amdavad (Ahmedabad) D) Chennai
 
Answer & Explanation Answer: A) Hyderabad

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Places
Exam Prep: Bank Exams

10 2129
Q:

In the following passage some of the words have been left out. Read the passage carefully and select the correct answer for the given blank out of the four alternatives.


Instead of finding the root cause of_________ of Indians, the British government took to more ____________ measures. Under the Defense of India Act, it gave more power to the police to arrest persons to stop processions with ____________ movements and actions. The Act brought in the Central Legislative Assembly was defeated by one vote. Even then it was to be passed in the form of an ordinance in the "interest of the public." Bhagat Singh who was in hiding all this while, volunteered to throw a bomb in the Central Legislative Assembly where the meeting to pass the ordinance was being held. It was a carefully laid out _________, not to cause death or injury but to _____________ the attention of the government, that the modes of its suppression could no more be tolerated. It was decided that Bhagat Singh and Batukeshwar Dutt would court arrest after throwing the bomb.


to arrest persons to stop processions with ____________ movements and actions.

A) out of the ordinary B) suspicious
C) cautious D) skeptical
 
Answer & Explanation Answer: B) suspicious

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2129