3i Infotech Papers: Sample Questions 228 - 230 of 1245

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

Question number: 228

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What is the output of the following program?

  1. #if something = = 0
  2. int some = 0;
  3. #endif
  4. main ()
  5. {
  6.     int thing = 0;
  7.     printf ( “%d %d ” something);
  8. }

Explanation

In the program

Table shows the program

Table shows the program

#if something == 0

int some = 0;

#endif

  • Preprocessor expressions are not the same as the ordinary expressions.

main ()

{

int thing = 0;

printf (“%d % d ” some, thing);

}

  • If a name is not known the preprocessor treats it to be equal to zero.

  • So, the answer is 0 0.

Question number: 229

» Database » Oracle

MCQ▾

Question

What does DLL stands for?

Choices

Choice (4) Response

a.

Dynamic Link Library

b.

Dynamic Load Library

c.

Dynamic Language Library

d.

Question does not provide sufficient data or is vague

Answer

a.

Explanation

  • DLL- Dynamic Link Library

  • Contains code and data that can be used by more than one program at the same time.

  • Contain functions, classes, variable and resources.

  • Enable the cluster service to communicate and manage the Oracle Database and listener resources.

  • Used for implementing procedures for windows programs.

  • Can be translated to static library by using MSIL dissembler.

Question number: 230

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

  1. main ()
  2. {
  3.     int i = 400j = 300;
  4.     printf( “%d. %d” );
  5. }

Explanation

  • In a program

Table shows the program

Table shows the program

int i = 400, j = 300;

Assign the integer variables I and j value.

printf (“%d. %d”);

Printf takes the values of the first two assignments of the program

  • Any number of print’s may be given.

  • All of them take only the first two values.

  • If more number of assignments given in the program, then printf will take garbage values.