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

How many hours does it take for a housefly's egg to hatch?

Answer

24 hours

Report Error

View answer Workspace Report Error Discuss

Subject: General Science

15 3336
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 3334
Q:

"National Volunteer Day" is observed on ____ ?

A) 1st October B) 21st September
C) 11th October D) 29th September
 
Answer & Explanation Answer: B) 21st September

Explanation:

"National Volunteer Day" & "International Peace Day" are observed on 21st september every year.

Report Error

View Answer Report Error Discuss

Filed Under: Important Days and Years
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

7 3334
Q:

 A transaction for which all committed changes are permanent is called:

A) atomic. B) consistent.
C) isolated. D) durable.
 
Answer & Explanation Answer: D) durable.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

1 3334
Q:

When a piece of pure silicon is doped with aluminium, then

A) the conductivity of the doped silicon piece will remain the same B) the doped silicon piece will become n-type
C) the doped silicon piece will become p-type D) the resistivity of the doped silicon piece will increase
 
Answer & Explanation Answer: C) the doped silicon piece will become p-type

Explanation:

p type of semiconductor is obtained when Silicon is doped with a trivalent impurity like Aluminium. Aluminium is a p-type dopant, which means that when a semiconductor i.e. silicon is doped with aluminium, it creates a hole (positively charged carrier) by accepting an electron from the silicon atom. Electrical conductivity of semiconductors increasesand resistivity remains the same

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

3 3333
Q:

'New Horizons' spacecraft was launched by NASA to study which of the following planet ?

A) Earth B) Mercury
C) Pluto D) Venus
 
Answer & Explanation Answer: C) Pluto

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

4 3332
Q:

East African Valleys, streching from East Africa through Red Sea to Syria is an example of

A) river valley B) rift valley system
C) glaciated valley D) a canyon
 
Answer & Explanation Answer: B) rift valley system

Explanation:

A rift valley is formed either due to upheaval of blocks on either sides of a fracture or due to subsidence of block between them.

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

1 3332