Questions

Q:

If the following structure is written to a file using fwrite(), can fread() read it back successfully?

struct emp

{

    char *n;

    int age;

};

struct emp e = { "Sujay",15};

FILE *fp;

fwrite (&e, sizeof (e), 1, fp);

Answer

No, since the structure contains a char pointer while writing the structure to the disk using fwrite() only the value stored in the pointer n would get written. When this structure is read back the address would be read back but it is quite unlikely that the desired string would be present at this address in memory

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3312
Q:

How long are profissional Golf tour players alloted per shot

A) 45 seconds B) 25 seconds
C) 1 minutes D) 2 minutes
 
Answer & Explanation Answer: A) 45 seconds

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

2 3312
Q:

Who designed the Bombay Secretariat in the 1870s?

A) H.St. Clair Wilkins B) Sir Cowasjee Jehangir Readymoney
C) Purushottamdas Thakurdas D) Nusserwanji Tata
 
Answer & Explanation Answer: A) H.St. Clair Wilkins

Explanation:

The Bombay Secretariat was completed in 1874 and designed by Captain Henry St. Clair Wilkins in the Venetian Gothic style. With its arcaded verandahs and huge gable over the west facade, it was a monument to the civic pride of Bombay's British rulers.

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

1 3312
Q:

Student specific scholarships are awarded to students who

A) have impressive academic achievements B) are members of a certain group
C) have impressive athletic accomplishments D) demonstrates a specific skill
 
Answer & Explanation Answer: A) have impressive academic achievements

Explanation:

A scholarship is an award of financial aid that helps students to continue their studies further by a popular donor or from the scheme of the government. Student specific scholarships are awarded to students who have impressive academic achievements.

Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

3 3311
Q:

Where are the Balearic Islands located ?

A) Mediterranean Sea B) BLack Sea
C) Baltic Sea D) North Sea
 
Answer & Explanation Answer: A) Mediterranean Sea

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

1 3311
Q:

Copying the logs on the standby/backup server is an operation of Log Shipping

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

It is one of the operation of Log Shipping

Report Error

View Answer Workspace Report Error Discuss

0 3310
Q:

Who among the following was known during the days of the Revolt of 1857 as 'Danka Shah'?

A) Shah Mal B) Maulavi Ahmadullah Shah
C) Nana Sahib D) Tantia Tope
 
Answer & Explanation Answer: B) Maulavi Ahmadullah Shah

Explanation:

Ahmadullah Shah Madrasi alias Danka Shah (1789-1858), a descendant of the Qutub Shahi family of the Deccan, was in Faizabad when the sepoys mutinied in Meerut. He threw himself into the movement then and there. This was why he also came to be known as Ahmadullah Shah Faizabadi.

 

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

1 3310
Q:

Which animal exclusively eat only eucalyptus leaves and nothing else?

A) Koala B) Arctic tern
C) Catfish D) Tropical cockroach
 
Answer & Explanation Answer: A) Koala

Explanation:

Koala is a animal that exclusively eat only eucalyptus leaves and nothing else.

Which_animal_exclusively_eat_only_eucalyptus_leaves_and_nothing_else1537791367.jpg image

Report Error

View Answer Report Error Discuss

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

3 3309