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

Who deciphered the Brahmi and Kharoshthi scripts?

A) Piyadassi B) Colin Mackenzie
C) Alexander Cunningham D) James Prinsep
 
Answer & Explanation Answer: D) James Prinsep

Explanation:

The inscriptions of Asoka were first deciphered by James Princep in 1837. They are written in Pali language and in some places Prakrit was used. The Brahmi script was employed for writing.In the northwestern India Asokan inscriptions were found in Karoshti script.

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

1 3324
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 3324
Q:

Which part of the flame is the hottest?

A) Blue Zone B) Luminous Zone
C) Dark Zone D) Non - Luminous Zone
 
Answer & Explanation Answer: A) Blue Zone

Explanation:

Blue Zone is the hottest part of the flame that is where the flame has the most Oxygen and you are getting complete combustion. It is about 1400 degrees Centigrades. The Reddish part (Non - Luminous Zone) is the coolest part, about 800 deg C.

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

1 3324
Q:

Kuldip Nayarr, a journalist was appointed as a high commissioner in 

A) UK B) Pakistan
C) Sri Lanka D) Australia
 
Answer & Explanation Answer: A) UK

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

1 3323
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 3323
Q:

In which of the following activities silicon carbide is used

A) Disinfecting water of ponds B) Making casts for statues
C) Making cement and glass D) Cutting very hard substances
 
Answer & Explanation Answer: D) Cutting very hard substances

Explanation:

In_which_of_the_following_activities_silicon_carbide_is_used1553082795.jpg image

Silicon carbide is used in Cutting very hard substances.

Report Error

View Answer Report Error Discuss

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

3 3322
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 3322