Questions

Q:

How many times the following program would print 'Jamboree'?

main()

{

     printf ( "\nJamboree");

     main ();

}

Answer

Till the stack doesn't overflow

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

2 3491
Q:

The amount of RAM storage is measured in

A) bytes B) mega bytes
C) giga bytes D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

RAM storage capacity is measured in bytes, kilo bytes, mega bytes, giga bytes,...

Report Error

View Answer Report Error Discuss

2 3491
Q:

Name the mineral used to produce artificial diamonds.

Answer

Graphite

Report Error

View answer Workspace Report Error Discuss

Subject: General Science

39 3490
Q:

How would you check whether the contents of two structure variables are same or not?

Answer

struct emp


{


     char n[20];


      int age;


};


main()


{


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


   struct emp e2;


   scanf ("%s %d",e2.n, & e2.age);


   if( structcmp (e1,e2) ==0)


        printf ("The structures are equal");


   else


         printf ("The structures are unequal");


}


structcmp ( struct emp x, struct emp y)


{


     if (strcmp (x.n,y.n) ==0)


           if (x.age == y.age)


            return (0);


            return (1);


}


In short, if you nee to compare two structures, you'll have to write your own function to do so which carries out the comparison field by field.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3489
Q:

Classify the Hashing Functions based on the various methods by which the key value is found.

Answer

Direct method,


 Subtraction method,


 Modulo-Division method,


 Digit-Extraction method,


 Mid-Square method,


 Folding method,


Pseudo-random method

Report Error

View answer Workspace Report Error Discuss

Subject: Technology

5 3489
Q:

I am whole but incomplete. I have no eyes, yet I see. You can see, and see right through me. My largest part is one fourth of what I once was.

What am I?

Answer

A Skeleton is what is whole but incomplete, have no eyes, yet can see. We can see, and see right through it. The largest part is one fourth of what it once was i.e body.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

4 3487
Q:

A boy sitting in a train moving with a uniform velocity drops a coin outside. A man standing outside the train will find the trajectory of the coin to be

A) a parabola B) a circle
C) a horizontal straight line D) a vertical straight line
 
Answer & Explanation Answer: A) a parabola

Explanation:

Parabola, because when the coin is dropped at a particular point, it has the same velocity as the running train. So by Newton's first law, it continues its motion horizontally with that velocity. But then, it is also pulled down by earth's gravity continuously. In this situation its horizontal motion gives way to the parabolic motion until it reaches the ground.

Report Error

View Answer Report Error Discuss

Filed Under: Physics

2 3487
Q:

Select the antonym of

to envisage

 

A) oblivious B) to apprehend
C) to confront D) to visualize
 
Answer & Explanation Answer: A) oblivious

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 3486