Questions

Q:

Who is the author of the book "The way of Knife: The CIA, A secret army and a war at the ends of the earth" ?

A) Mark Twain B) Irika John
C) Mario Pujo D) Mark Mazzetti
 
Answer & Explanation Answer: D) Mark Mazzetti

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

8 3796
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 3795
Q:

Which of the following layers of the earth is believed to have the heavist mineral materials of highest density

A) Central core B) Crust
C) Mantle D) Both (B) and (C)
 
Answer & Explanation Answer: A) Central core

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

0 3795
Q:

What is the capital of Peru?

A) Warsaw B) Lima
C) Dakar D) Victoria
 
Answer & Explanation Answer: B) Lima

Explanation:

Lima is the capital of Peru

Report Error

View Answer Report Error Discuss

Filed Under: Country Capitals

10 3794
Q:

Name the movie that voted 2016’s Best Film by Indian film critics’ poll?

A) Pink B) Sultan
C) Mohenjadaro D) Dangal
 
Answer & Explanation Answer: D) Dangal

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards
Exam Prep: CAT , GATE
Job Role: Bank Clerk , Bank PO

6 3794
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 3793
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 3793
Q:

With which Bank, Solar energy services company Freyr Energy has tied up to offer term loans ?

A) Axis Bank B) United Bank
C) SBI D) Union Bank
 
Answer & Explanation Answer: A) Axis Bank

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

8 3793