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:

Who has won the Hero Indian Golf Open 2017 ?

A) Gavin Green B) S.S.P. Chawrasia
C) Anirban Lahiri D) Scott Jamieson
 
Answer & Explanation Answer: B) S.S.P. Chawrasia

Explanation:

Chawrasia, became the first Indian to successfully defend a European Tour title and the first player to win their first four events in their home country.

Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams , CAT
Job Role: Bank PO

8 3335
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:

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:

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

Pearl Harbour is located in

Answer

Hawai

Report Error

View answer Workspace Report Error Discuss

Subject: World History

4 3331