Practice Question and Answer
8Q: How does DB2 determine what lock- size to use? 948 05b5cc7dbe4d2b41977751595
5b5cc7dbe4d2b41977751595- Show AnswerHide Answer
- Workspace
- SingleChoice
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 05b5cc7dce4d2b419777515bb
5b5cc7dce4d2b419777515bb- Show AnswerHide Answer
- Workspace
- SingleChoice
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 06464a417c899b466f44ffcd4
6464a417c899b466f44ffcd4
- 1168 quintalstrue
- 2172 quintalsfalse
- 3182 quintalsfalse
- 4190 quintalsfalse
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 1. "168 quintals "
Q: Choose the word that is opposite in meaning to the given word.
Devious
947 0644b96700c6225ce35621ca9
644b96700c6225ce35621ca9- 1Outspokentrue
- 2Circuitousfalse
- 3Clandestinefalse
- 4Serpentinefalse
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 1. "Outspoken"
Q: What is a cursor ? Why should it be used in DB2? 946 05b5cc7dbe4d2b41977751598
5b5cc7dbe4d2b41977751598- Show AnswerHide Answer
- Workspace
- SingleChoice
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 0651293bb56a7b2508cb4db19
651293bb56a7b2508cb4db19- 1GDP – Indirect Tax + Subsidytrue
- 2GNP – depreciationfalse
- 3NNP + depreciationfalse
- 4GDP – subsidy + indirect tax.false
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 1. "GDP – Indirect Tax + Subsidy"
Q: Which of the following comes under the jurisdiction of high court and supreme court-
946 0653258652f3bde70c149f119
653258652f3bde70c149f119- 1Protection against the violation of constitutionfalse
- 2Dispute between states and centrefalse
- 3Dispute among statesfalse
- 4Protection of fundamental rightstrue
- Show AnswerHide Answer
- Workspace
- SingleChoice
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 05b5cc785e4d2b41977750278
5b5cc785e4d2b41977750278- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer :
Explanation :
Azizia (Libya,Africa) 136 F

