3i Infotech Placement: Sample Questions 1214 - 1215 of 1245

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 1214

Edit

Describe in Detail

Essay▾

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 1215

Question

MCQ▾

Size of Tablespace can be increased by …

Choices

Choice (4)

a.

Cannot be increased

b.

Adding one or more Datafiles

c.

Increasing the size of one of the Datafiles

d.

Question does not provide sufficient data or is vague

Answer

b.

Explanation

  • Size of tablespace can be increased by adding one or more datafiles.
  • The max datafile size is 32gb for a tablespace defined with an 8K block size and 64gb for a tablespace.
  • It is defined with a 16K block size.
  • If our tablespace is larger than these max file sizes, we will need multiple datafiles.

Developed by: