3i Infotech Papers: Sample Questions 1199 - 1201 of 1245

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

Question number: 1199

» Languages » Java

Short Answer Question▾

Write in Short

What is meant by session? Explain something about HTTP Session class?

Explanation

  • A session includes all requests that a client makes to a server in a specific time.

  • A session is user specific and for each user a new session tracks the requests from that user.

  • A separate session variable on server is associated with each session.

HTTP Session Class

Http Session is an interface that identifies a user across more that one page request and stores state about that user across pages.

Question number: 1200

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What is similarity between a structure, Union and enumeration?

Explanation

Difference between a structure, Union and enumeration

Difference between a structure, Union and enumeration

Structure

Union

Enumeration

A structure allocates the total size of all elements in it.

A union allocates as much memory as its largest element requires.

A user define data type that consist of integral constants

The keyword struct is used to declare a structure.

The keyword union is used to declare a union.

Uses the keyword enum.

All data members in a structure are active at time

Only one data member is active at a time.

Enumeration can take only one of the enumerated values.

Question number: 1201

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

Can you use the function fprint () to display the output on the screen?

Explanation

Yes function fprint () can display the output on the screen.

fprintf syntax:

int fprint (FILE * stream, const char * format, parameters);

  • When stream is stdout output is directed to the screen. For example fprintf (stdout, “yes”); will print yes on the screen. Note that

    • Stdout is standared output stream.

    • Stdin is standard input stream

    • Stderr is standard error stream

  • This happens because stdout is also a file pointer to the standard output (screen).