3i Infotech Papers: Sample Questions 919 - 922 of 1245

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

Question number: 919

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

Which one is equivalent is multiplying by 2: left shifting a number by 1 or left shifting an unsigned int or char by 1?

Explanation

  • Left shifting by 1 is multiplying by 2.

  • Right shifting by 1 is dividing by 2.

Question number: 920

» Languages » Java

Short Answer Question▾

Write in Short

What is user defined exception?

Explanation

Understanding of java exception parts.

Understanding of Java Exception Parts.

Understanding of java exception parts.

  • User defines an exception or custom exception by creating an exception class. This exception is thrown using throw keyword.

  • Exceptions are already set to trigger on pre-defined conditions such as “divide by zero” triggers Arithmetic Exception.

Question number: 921

» Languages » Java

Essay Question▾

Describe in Detail

What is the functionality stubs and skeleton?

Explanation

Stubs:

  • A stub is a proxy for a remote object that runs on the client computer.

  • Forwords a client’s remote method invocations to skeleton.

  • It forwords them on to the appropriate server objects.

The functionality stubs

The Functionality Stubs

The functionality stubs

Skeleton:

  • A skeleton is a proxy for a remote object that runs on the server.

  • Retuns the results of server method invocations to clients via stubs.

The functionality Skeleton

The Functionality Skeleton

The functionality Skeleton

Question number: 922

» Languages » Java

Essay Question▾

Describe in Detail

What is the difference between process and threads?

Explanation

Difference between process and thread

Difference between process and thread

Process

Thread

Processes are heavy weight operations

Threads are light weight operations

Every process has its own memory space.

Threads use the memory of the process they being to.

Program in execution

Separate path of execution of one or more threads is called a process.

Context switching the process is more expensive.

Context switching between threads of the same process is less expensive

Processes do not share the memory with other processes.

Threads share the memory with other thread of the same process.