Practice Question and Answer

Q: How does DB2 determine what lock- size to use? 948 0

  • Show AnswerHide Answer
  • Workspace

Answer :
Explanation :

1. Based on the lock-size given while creating the table space 2. Programer can direct the DB2 what lock-size to use 3. If lock - size ANY is specified, DB2 usually chooses a lock-size of PAGE

Q: Can I increase the size of a dynamically allocated array? < Yes / No> if yes, how? 948 0

  • Show AnswerHide Answer
  • Workspace

Answer :
Explanation :

Yes, using the realloc() function as shown below: main() {         int *p;         p = ( int *) malloc (20) ;         t = p;         t = (int *) realloc ( p, 40);         if ( t == NULL )         Printf (" Cannot reallocate, leaves previous allocated region unchanged ");        else        {               if ( p ==t )               ;  / * the array expanded at the same region */              else             {                   free ( p ); / * deallocate the original array */                  p = t;  /* set p to newly allocated region */              }       } }

Q:

Directions: Study the following bar graph carefully to answer the questions.

If the yield per acre is arranged in ascending order, then what is the difference between the yield per acre of first three countries and last three countries?

948 0

  • 1
    168 quintals
    Correct
    Wrong
  • 2
    172 quintals
    Correct
    Wrong
  • 3
    182 quintals
    Correct
    Wrong
  • 4
    190 quintals
    Correct
    Wrong
  • Show AnswerHide Answer
  • Workspace

Answer : 1. "168 quintals "

Q:

Choose the word that is opposite in meaning to the given word.

Devious

947 0

  • 1
    Outspoken
    Correct
    Wrong
  • 2
    Circuitous
    Correct
    Wrong
  • 3
    Clandestine
    Correct
    Wrong
  • 4
    Serpentine
    Correct
    Wrong
  • Show AnswerHide Answer
  • Workspace

Answer : 1. "Outspoken"

Q: What is a cursor ? Why should it be used in DB2? 946 0

  • Show AnswerHide Answer
  • Workspace

Answer :
Explanation :

Cursor is a programming device that allows the SELECT to find a set of rows but return them one at a time. Cursor should be used because the host language  can deal with only one row at a time.

Q:

GDP at factor cost equals–

946 0

  • 1
    GDP – Indirect Tax + Subsidy
    Correct
    Wrong
  • 2
    GNP – depreciation
    Correct
    Wrong
  • 3
    NNP + depreciation
    Correct
    Wrong
  • 4
    GDP – subsidy + indirect tax.
    Correct
    Wrong
  • Show AnswerHide Answer
  • Workspace

Answer : 1. "GDP – Indirect Tax + Subsidy"

Q:

Which of the following comes under the jurisdiction of high court and supreme court-

946 0

  • 1
    Protection against the violation of constitution
    Correct
    Wrong
  • 2
    Dispute between states and centre
    Correct
    Wrong
  • 3
    Dispute among states
    Correct
    Wrong
  • 4
    Protection of fundamental rights
    Correct
    Wrong
  • Show AnswerHide Answer
  • Workspace

Answer : 4. "Protection of fundamental rights "
Explanation :

The Protection of fundamental rights comes under the jurisdiction of high court and supreme court.

Fundamental rights are generally regarded set of legal protections in the context of a legal system, where such system is itself based upon this same set of basic, fundamental, or inalienable rights. Such rights thus belong without presumption or cost of privilege to all human beings under such jurisdiction.

Q: Which is the Hottest Place in the World ? 945 0

  • Show AnswerHide Answer
  • Workspace

Answer :
Explanation :

Azizia (Libya,Africa) 136 F

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully