Questions

Q:

What would be the output of the following program?

main()

{

   struct emp

   {

        char *n;

        int age;

   };

   struct emp e1 = { "Dravid", 23};

   struct emp e2 = e1;

   strupr (e2.n);

   printf ("\n%s",e1.n);

}

Answer

DRAVID


When a structure is assigned, passed, or returned, the copying is done monolithically. This means that the copies of any pointer fields will point to the same place as the original. In other words, anything pointed to is not copied. Hence, on changing the name through e2.n it automatically changed e1.n

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2768
Q:

What procedure you will follow when taking a customer’s call?

Answer

Answer this question around the following steps :


1. Greet customer.


2. Tell your name to the customer.


3. Ask customer how you can be of any assistance to him/her.


4. Listen carefully and patiently to the customers query or requirement.


5. Provide the customer with the best solution or assistance without making him/her wait for long.


6. Inquire if customer is satisfied with the assistance or help provided.


7. Ask the customer if he needs any further assistance.

Report Error

View answer Workspace Report Error Discuss

Subject: Call Center

2 2768
Q:

Project authorization is one of the processes that is associated with the initiation phase of a project. Authorization can come in many different forms, and projects are generally authorized by all of the following except

A) Technological Advances B) Customer request or market demand
C) Executive year - end bonuses D) Business or Social needs
 
Answer & Explanation Answer: C) Executive year - end bonuses

Explanation:

Project authorization should not be exclusively based upon the impact of an executive's bonus (many people would agree that it should not ever be based upon an executive's bonus). Answer A, B, and D are common events that predicate the need for project authorization and can evolve into large scope projects.

Report Error

View Answer Report Error Discuss

Filed Under: PMP Certification

0 2768
Q:

Write a c program for binary search.

Answer

#include<stdio.h>
int main(){

    int a[10],i,n,m,c=0,l,u,mid;

    printf("Enter the size of an array: ");
    scanf("%d",&n);

    printf("Enter the elements in ascending order: ");
    for(i=0;i<n;i++){
         scanf("%d",&a[i]);
    }

    printf("Enter the number to be search: ");
    scanf("%d",&m);

    l=0,u=n-1;
    while(l<=u){
         mid=(l+u)/2;
         if(m==a[mid]){
             c=1;
             break;
         }
         else if(m<a[mid]){
             u=mid-1;
         }
         else
             l=mid+1;
    }
    if(c==0)
         printf("The number is not found.");
    else
         printf("The number is found.");

    return 0;
}

Sample output:
Enter the size of an array: 5
Enter the elements in ascending order: 4 7 8 11 21
Enter the number to be search: 11
The number is found.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2767
Q:

Which of the following countries is not a member of the UN

A) Nepal B) Iran
C) Kampuchea D) Switzerland
 
Answer & Explanation Answer: C) Kampuchea

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

2 2767
Q:

Which statements about viruses are true?

A) HIV contains reverse transcriptase. B) A retrovirus contains RNA.
C) Both A & B D) All RNA-containing viruses are retroviruses.
 
Answer & Explanation Answer: C) Both A & B

Explanation:

The statements true about viruses are :

 

1. The capsid enters the host cell if the virus is enveloped.

2. Enveloped viruses bud from the host cell. 

3. HIV contains reverse transcriptase.

4. A retrovirus contains RNA.

Report Error

View Answer Report Error Discuss

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

1 2767
Q:

A feature of catabolic reactions is that they

A) occur only in mitochondria B) occur only during loss of body weight
C) involve release of energy D) involve consumption of energy
 
Answer & Explanation Answer: C) involve release of energy

Explanation:
Report Error

View Answer Report Error Discuss

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

5 2767
Q:

Shahi Litchi of which recently got a GI tag?

A) Telangana B) Bihar
C) Odisha D) Maharastra
 
Answer & Explanation Answer: B) Bihar

Explanation:

Shahi Litchi of Bihar recently got a GI tag and got official recognition for Muzaffarpur in Bihar.

Report Error

View Answer Report Error Discuss

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

3 2767