Searching for "at"

Q:

Rewrite the following set of statements using conditional operators.

int a =1, b ;

if ( a > 10 )

b = 20; 

Answer

int a = 1, b , dummy;


a > 10 ? b = 20 : dummy =1;


 


Note that the following would not have worked:


a > 10 ? b = 20 : ;;


 

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

Q:

What would be the output of the following program?

main()

{

    extern int fun ( float );

    int a;

    a = fun ( 3. 14 );

    printf ("%d", a);

}

int fun ( aa )

float aa ;

{

     return ( (int) aa );

}

Answer

Error occurs because we have mixed the ANSI prototype with K & R style of function definition.


When we use ANSI prototype for a function and pass a float to the function it is promoted to a double. When the function accepts this double into a float a type mismatch occurs hence the error.


The remedy for this error could be to define the function as :


int fun (float aa)


{


  ....


}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

Q:

What is the difference between the following declarations?

extern int fun();

int fun();

Answer

There is no difference except for the fact that the first one gives a hint that the function fun() is probably in another source file.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

Q:

What would be the output of the following program?

main()

{

  extern int i;

   i = 20;

  printf( "%d", sizeof(i) );

}

Answer

extern int i is a declaration and not a definition, hence Error occured.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

Q:

What is ‘Crossed Cheque’ ?

Answer

A crossed cheque indicates the amount should be deposited into the payees account and cannot be cashed by the bank over the counter. Here in the image, number#2, you can see two cross-lines on the left side corner of the cheque that indicates crossed cheque.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Bank Interview

Q:

What is Line of credit?

Answer

Line of credit is an agreement or arrangement between the bank and a borrower, to provide a certain amount of loans on borrower’s demand. The borrower can withdraw the amount at any moment of time and pay the interest only on the amount withdrawn. For example, if you have $5000 line of credit, you can withdraw the full amount or any amount less than $5000 (say $2000) and only pay the interest for the amount withdrawn (in this case $2000).

Report Error

View answer Workspace Report Error Discuss

Subject: Bank Interview

Q:

What ACH stands for?

Answer

ACH stands for Automated Clearing House, which is an electronic transfer of funds between banks or financial institutions.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Bank Interview

Q:

What is Demat Account ?

Answer

The way in which a bank keeps money in a deposit account in the same way the Depository company converts share certificates into electronic form and keep them in a Demat account.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Bank Interview