3i Infotech Papers: Sample Questions 1117 - 1119 of 1245

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

Question number: 1117

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

How would you obtain segment and offset addresses from a far address of a memory location?

Explanation

  • Pointer to far objects are stored using four bytes that is 32 bits (on 32 bit machines).

  • The bytes are stored little endian or low to high order.

  • The first word contains the 14-bit memory offset.

  • The second word contains the page number.

  • The memory address is calculated as bellow:

Variable address = (page*) +offset

Function Address = (segment * ) +offset

Question number: 1118

» Languages » Assembly Language

MCQ▾

Question

Max number of satellite hops allowed in voice communication is:

Choices

Choice (4) Response

a.

Four hops

b.

Only one

c.

More than 1

d.

Two hops

Answer

d.

Explanation

  • Max satellite hops allowed in voice communication is two.

  • Maximum performance out of the satellite segment is required for reasonable cost of the service.

  • In a local or geographical networks, satellites are the bottleneck, because of the delay and throughput constraints.

  • At the same time large number of persons living in remote areas achieve a broadband access to the internet using satellites.

  • Limiting the number of hops to is a compromise between connecting remote locations and providing reasonable quality of service.

Question number: 1119

» Languages » Java

Appeared in Year: 2004

MCQ▾

Question

Session Listerner defines following methods

Choices

Choice (4) Response

a.

Session Destroyed, Session Replaced

b.

Session Created, Session Destroyed

c.

Session Created, Session Replaced

d.

All of the above

Answer

b.

Explanation

  • Session Created:

    • void session Created (Http Session Event se)

      • Receives notification that a session has been created.

      • Parameters:

      • Se- The Http Session Event containing the session

      • SessionDestroyed:

    • Void session Destroyed (Http Sessionvent se)

    • Receives notification that a session is about to be invalidated.

    • Parameters:

  • Se: The Http Session vent containing the session.