3i Infotech Papers: Sample Questions 1112 - 1114 of 1245

Examrace Placement Series prepares you for the toughest placement exams to top companies.

Question number: 1112

» Languages » Assembly Language

Essay Question▾

Describe in Detail

A thread is

Explanation

Understanding of thread process in image

Understanding of Thread Process in Image

Understanding of thread process in image

  • A thread is a flow of control through a program with a single execution point.

  • There can be several threads of execution within a process.

  • A heavyweight process has a single thread of control.

  • Multitasking allows many processes to run concurrently, while multithreading allows many sub-processes to run concurrently.

  • The thread allows a program to be re-entered on behalf of different users.

  • Multithreading is also used extensively in computer-generated animation.

Question number: 1113

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

Where does global, static, local, local, register variables, free memory and C program instructions get stored?

Explanation

Local is stored in the stack. Register variables are stores in the registers. Global, static variables are stored in the Heap.

Question number: 1114

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What is difference between structure and union?

Explanation

Difference between structure and union?

Difference between structure and union?

Structure

Union

The keyword struct is used to define a structure.

The keyword union is used to define a union.

Every member within a structure is assigned unique storage area of location.

Memory allocated is shared by individual members of union.

Individual member can be accessed at a time.

Only one member can be accessed at a time.

Altering value of a member does not affect the other members of the structure.

Altering any one value of member will affect the other member values.

Several members of a structure can be initialized at once.

Only the first member of a union can be initialized.

Structure contains all the members

Union at runtime is only one of its members