3i Infotech Papers: Sample Questions 1239 - 1241 of 1245

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

Question number: 1239

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

How would you use the functions randomize () and random ()?

Explanation

randomize ():

  • Randomize initializes the random number generator with a random value.

  • Randomize is implemented as a macro that calls the time function prototyped in time. h

  • Include time. h when we use this routine

random ():

  • The function random () returns a pseudo random integral number.

  • This number will be in the range 0 to RAND_MAX.

  • The algorithm of rand () uses a seed to generate the series of numbers based on a seed- srand must be used to initialize the seed to some distinctive value.

  • The constant RAND_MAX is defined in standard library.

  • Return value:

  • Will return an integer value between 0 and RAND_MAX.

Question number: 1240

» Testing » Web (Client or Server)

Short Answer Question▾

Write in Short

What is the role of web server?

Explanation

  • Webserver receives HTTP request and provides HTTP response.

  • Transaction are done with HTTP requests and responses.

  • Webserver gives only an html output, it typically does not process business logic.

Question number: 1241

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What do you mean by analysis and design?

Explanation

  • Analysis:

    • Process of determining what needs to be done before how it should be done.

    • Developer refers to the existing systems and documents- simply an art of discovery.

    • Analysis emphasizes an investigation of the problem and requirements, rather than a solution.

    • “Analysis” is a broad term, best qualified, as in requirements analysis (an investigation of the requirements) or object-oriented analysis (an investigation of the domain objects).

  • Design:

    • Process of adopting/choosing the one among the many-to best accomplish user’s needs.

    • Emphasizes a conceptual solution (in software and hardware) fulfilling the requirements.

    • A description of a database schema and software objects.

    • Excludes low-level or “obvious” details—obvious to the intended consumers so that designs can be implemented. Implementation must express true and complete realized design.

    • As with analysis, the term is best qualified, as in object-oriented design or database design.

    • Summarized as “do the right thing- analysis”, and “do the things right- design”.