Questions

Q:

' In CUstody ' , an english novels, is written by which one of the following

A) Vikram Seth B) Shoba De
C) Anita Desai D) VS.Naipaul
 
Answer & Explanation Answer: C) Anita Desai

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

4 3787
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 3787
Q:

If I use the following printf() to print a long int why I am not warned about the type mismatch?

printf ("%d",num );

Answer

When a function accepts a variable number of arguments , its prototype cannot provide any information about the number of arguments and type of those variable arguments. Hence the compiler cannot warn about the mismatches. The programmer must make sure that arguments match or must manually insert explicit typecast.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3784
Q:

Incorporation creates a local government and

A) determines who will serve as mayor and council members. B) divides a state into separate counties with their own leaders.
C) manages the court system on the county and city level. D) creates geographic boundaries for villages, towns, and cities.
 
Answer & Explanation Answer: B) divides a state into separate counties with their own leaders.

Explanation:

Incorporation is a legal process that enables the formation of a local government and divides a state into separate counties with their own leaders.

 

The different counties become self governing entities under the laws of the state in which they fall and are given the authority to function as independent units but within the jurisdiction of the state laws.

 

Report Error

View Answer Report Error Discuss

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

1 3784
Q:

' Crime and Punishment ' was written by

A) Alexander Solzhenitysn B) Lewis Carroll
C) Fyodor Dostoevsky D) Valdimir Nabakov
 
Answer & Explanation Answer: C) Fyodor Dostoevsky

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

2 3783
Q:

I am an English word which starts with 'T' and ends with 'T' and has 'T' in it.

Answer

The English word that starts & ends with T and has T (Tea) in it is " TEAPOT ".


teapot1586508959.jpg image


 

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: CAT , Bank Exams

4 3783
Q:

I am always infront of you, but you will never see me. Who am I?

A) Mirror B) Shadow
C) Future D) None of the above
 
Answer & Explanation Answer: C) Future

Explanation:

Yes, future is always infront of us, but no one can see it.

Report Error

View Answer Report Error Discuss

3 3783
Q:

A restrictive clause is one that

A) usually occurs at the beginning of a sentence B) should be set off by commas
C) limits the meaning of the word it describes D) functions as an adverb
 
Answer & Explanation Answer: C) limits the meaning of the word it describes

Explanation:

A restrictive clause is one that limits the meaning of the word it describes.

For example :: 

The girl who lives next door is beautiful.

This restrictive clause limits "the girl" to say it's specifically the one next door.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

1 3783