Questions

Q:

Who is the author of ' The Accidental Prime Minister - The Making and Unmaking of Manmohan Singh'

Answer

Sanjaya Baru

Report Error

View answer Workspace Report Error Discuss

3 2655
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 2655
Q:

Monopotassium tartarate was used in

A) Fertiliser B) Explosives
C) Photography D) Baking
 
Answer & Explanation Answer: D) Baking

Explanation:

Monopotassium tartarate was used in baking powder.

Report Error

View Answer Report Error Discuss

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

0 2655
Q:

Two metallic wires made from copper have same length but the radius of wire 1 is half of that of wire 2. The resistance of wire 1 is R. If both the wires are joined together in series, the total resistance becomes

 

A) 2R B) R/2
C) 5R/4 D) 3R/4
 
Answer & Explanation Answer: C) 5R/4

Explanation:

So, resistance of Wire 2 is R/4 as radius is half of wire 1, so area would be 4 times of wire 1.

Now for resistance in series. R= R1 + R2.

Therefore, Final R= R + R/4 = 5R/4

 

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

3 2655
Q:

Backup means

A) Protecting data by copying it from the original source to a different destination B) Accessing data on tape
C) Filtering old data from the new data D) Adding more components to your network
 
Answer & Explanation Answer: A) Protecting data by copying it from the original source to a different destination

Explanation:

Protecting data by copying it from the original source to a different destination is called as Backup. When an original data is lossed, to restore the information by copying the data from the source to other destination is called as Backup or Data backup.

Report Error

View Answer Report Error Discuss

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

4 2654
Q:

Which one of the following is a search engine?

A) Bing B) Reddit
C) Pinterest D) Twitter
 
Answer & Explanation Answer: A) Bing

Explanation:
Report Error

View Answer Report Error Discuss

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

2 2654
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 2654
Q:

In a computer game, a builder can build a wall in ten hours while a destroyer can demolish such a wall completely in fourteen hours. Both, the builder and the destroyer were initially set to work together on level ground. But after 7 hours the destroyer was taken out. What was the total time (in hrs) taken to build the wall ?

A) 17 B) 15
C) 24 D) 35
 
Answer & Explanation Answer: B) 15

Explanation:
Report Error

View Answer Report Error Discuss

5 2654