Questions

Q:

Explain the concept of Reentrancy?

Answer

It is a useful, memory-saving technique for multiprogrammed timesharing systems. A Reentrant Procedure is one in which multiple users can share a single copy of a program during the same period. Reentrancy has 2 key aspects: The program code cannot modify itself, and the local data for each user process must be stored separately. Thus, the permanent part is the code, and the temporary part is the pointer back to the calling program and local variables used by that program. Each execution instance is called activation. It executes the code in the permanent part, but has its own copy of local variables/parameters. The temporary part associated with each activation is the activation record. Generally, the activation record is kept on the stack.


Note: A reentrant procedure can be interrupted and called by an interrupting program, and still execute correctly on returning to the procedure.

Report Error

View answer Workspace Report Error Discuss

0 3318
Q:

What part of the atom has a positive charge?

A) Neutron B) Proton
C) Electron D) All the above
 
Answer & Explanation Answer: B) Proton

Explanation:

Protons carry a positive electrical charge, electrons carry a negative electrical charge and neutrons carry no electrical charge at all. The protons and neutrons cluster together in the central part of the atom, called the nucleus, and the electrons 'orbit' the nucleus.

Report Error

View Answer Report Error Discuss

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

3 3318
Q:

 Which of the following occurs when a transaction rereads data it has previously read and finds modification or deletions caused by a committed transaction?

A) Nonrepeatable read B) Phantom read
C) Dirty read D) Consistent read
 
Answer & Explanation Answer: A) Nonrepeatable read

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

0 3317
Q:

Who is the author of book ' Arctic Summer'.

Answer

Dammon Galgut

Report Error

View answer Workspace Report Error Discuss

2 3317
Q:

Point out the error, if any, in the following program.

#include "stdio.h"

main()

{

      unsigned char;

       FILE *fp;

       fp = fopen ("trail", "r");

       while (( ch = getc (fp)) ! = EOF)

               printf ("%c", ch);

       fclose (fp);

}  

Answer

EOF has been defined as #define EOF -1 n the file "stdio.h" and an unsigned char ranges from 0 to 255 hence when EOF is read from the file it cannot be accommodated in ch. Solution is to declare ch as an int.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 3317
Q:

Which of the following is the single most important source of the history of Ashoka?

A) Sri Lankan chronicles_ Dipavamsa and Mahavamsa B) Buddhist works Divyavadana and Ashokavadana
C) Inscriptions of Ashoka D) Archaeological Sources and the Puranas
 
Answer & Explanation Answer: C) Inscriptions of Ashoka

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

3 3316
Q:

Per Captain Income of a country derived from

A) National Income B) Population
C) National Income and Population both D) none of these
 
Answer & Explanation Answer: C) National Income and Population both

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

1 3316
Q:

Which Article deals Protection against Arrest and detention?

A) Art-24B B) Art-23
C) Art-22 D) Art-21A
 
Answer & Explanation Answer: C) Art-22

Explanation:

Article-22 :: Protection against arrest and detention.

No person who is arrested shall be detained in custody without being informed of the grounds for such arrest nor shall he be denied the right to consult and to be defended by a legal Practioner of his choice.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams , CAT
Job Role: Analyst , Bank PO

15 3316