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 3240
Q:

Who has been appointed by Flipkart as an in-charge of the newly acquired e-Bay India business ?

A) Anil Goteti B) S Aparna
C) Rajeev Kumar D) Kalyan Krishnamurthy
 
Answer & Explanation Answer: A) Anil Goteti

Explanation:
Report Error

View Answer Report Error Discuss

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

9 3239
Q:

The sentence that states the main idea of the paragraph

A) Thesis B) Topic sentence
C) Both A & B D) None of the above
 
Answer & Explanation Answer: C) Both A & B

Explanation:

The sentence that states the main idea of the paragraph is called as Thesis or the topic sentence.

Report Error

View Answer Report Error Discuss

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

0 3239
Q:

PAS is a drug used in the treatment of

A) Cancer B) Typhoid
C) Malaria D) Tuberculosis
 
Answer & Explanation Answer: D) Tuberculosis

Explanation:

Para-amino salicylic acid (PAS) is used in the treatment of Tuberculosis.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

4 3238
Q:

Why was the 1955 UN General Assembly called "Menon Session" or "Menon Assembly"?

Answer

Because V K Krishna Menon spoke for 13hours continuously while representing india.

Report Error

View answer Workspace Report Error Discuss

3 3237
Q:

Suppose you have a computional circuit between two registers driven by a clock. What will you do if the delay of the combinational circuit is greater than your clock signal?

Answer

Use the concept of register-retiming.


divide the totla combinatorial delay in two segments such that individually the delay is less the clock period.


this can be done by inserting a flip-flop in the combinational path.


e.g.,


clock period --- 5 ns


total cominational delay ---- 7


then divide the 7ns path in two path of 4 or 3 (best resutls are obtained if delays are  same for both path i.e 3.5ns) by inserting a flip-flop in between.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 3237
Q:

Bangkok lies on river

A) Kizil B) Spree
C) Karnaphuli D) Menam
 
Answer & Explanation Answer: D) Menam

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

3 3237
Q:

What English word has three consecutive double letters?

Answer

Bookkeeper is the only English word that has three consecutive double letters.

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: CAT , Bank Exams
Job Role: Bank Clerk

5 3236