Questions

Q:

Point out the error, if any, in the following program.

# include "stdio.h"

main()

{

     FILE *fp;

     char str[80];

     fp = fopen ("trail", "r");

     while (!feof (fp))

    {

           fgets (str, 80, fp);

           puts (str);

     }

     fclose (fp);

}

Answer

The last line from the file "trial" would be read twice. To avoid this, ues:


       While ( fgets (str, 80, fp) ! = NULL)


               puts (str);

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3146
Q:

How long are profissional Golf tour players alloted per shot

A) 45 seconds B) 25 seconds
C) 1 minutes D) 2 minutes
 
Answer & Explanation Answer: A) 45 seconds

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

2 3145
Q:

Geet Sethi is associated with which game?

A) Billiards B) Cricket
C) Hockey D) Chess
 
Answer & Explanation Answer: A) Billiards

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

3 3144
Q:

Which of the following governs and regulates telecommunication in India?

A) TRAI B) BHEL
C) HAL D) NMDC
 
Answer & Explanation Answer: A) TRAI

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

2 3144
Q:

Which payment gateway does Amazon use?

A) CCAvenue B) Payzippy
C) Amazon Pay D) Citrus Pay
 
Answer & Explanation Answer: C) Amazon Pay

Explanation:

Amazon, is an American electronic commerce and cloud computing company.

 

Payment gateways process credit card payments and other forms of internet transactions, in a secured format via any website or web-enabled device. They facilitate these transactions by transferring critical information between payment portals and the front-end processor, which is usually a bank.

Which_payment_gateway_does_Amazon_use1537422204.jpg image

 

Amazon uses its own payment gateway Amazon Pay Payment gateway.

Report Error

View Answer Report Error Discuss

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

2 3144
Q:

Shock resisting steels should have

A) toughness B) low wear resistance
C) low tensile strength D) low hardness
 
Answer & Explanation Answer: A) toughness

Explanation:

Shock resisting steels should have toughness.

S-5 is a silico-manganese shock resisting steel that offers good ductility.

Report Error

View Answer Report Error Discuss

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

0 3144
Q:

The technique of DNA fingerprinting in human was developed for first time by _________

A) Lalji Singh B) Alec Jeffreys
C) R. Ericson D) J. Black
 
Answer & Explanation Answer: B) Alec Jeffreys

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

6 3143
Q:

Galloping inflation is also known as

A) Hyperinflation B) Jumping inflation
C) Moderate inflation D) None
 
Answer & Explanation Answer: B) Jumping inflation

Explanation:

Galloping inflation is also known as jumping inflation.

 

It refers to a type of inflation that occurs when the prices of goods and services increase at the two-digit or three-digit rate per annum.

Report Error

View Answer Report Error Discuss

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

2 3143