Sunday, August 26, 2012

JNTU ONLINE EXAMINATIONS [Mid 2 - ppl]
1. _ _ _ _ _ _ _ subprogram does have the return type [01D01]
a. for
b. while
c. procedure
d. function
2. A _ _ _ _ _ _ _ provides the protocol, but not the body, of the subprogram [01D02]
a. subprogram declaration
b. subprogram definition
c. subprogram itself
d. subprogram code
3. A _ _ _ _ _ _ _ is the first line of the definition, including the name, the kind of subprogram, and the formal
parameters. [01M01]
a. Subprogram
b. structure
c. iteration
d. subprogram header
4. The _ _ _ _ _ _ _ of a subprogram is its parameter profile [01M02]
a. protocol
b. subprogram
c. structure
d. iteration
5. The caller is _ _ _ _ _ _ _ during execution of the called subprogram [01S01]
a. continues its execution
b. suspended
c. terminated
d. can`t predict
6. Control always returns to the _ _ _ _ _ _ _ _ _ _ , when the called subprogram's execution terminates [01S02]
a. beginning of program
b. end of program
c. caller
d. next program
7. An _ _ _ _ _ _ _ _ _ _ _ _ _ subprogram is one that has the same name as another subprogram in the same
referencing environment. [01S03]
a. overloaded
b. generic
c. static
d. dynamic
8. _ _ _ _ _ _ _ subprogram does not have return type [01S04]
a. for
b. while
c. procedure
d. function
9. An _ _ _ _ _ _ _ _ _ _ represents a value or address used in the subprogram call statement [01S05]
a. actual parameter
b. formal parameter
c. normal parameter
d. usual parameter
10. An _ _ _ _ _ _ _ _ _ _ _ _ _ subprogram is one whose computation can be done on data of different types with
different calls. [01S06]
a. overloaded
b. generic
c. static
d. dynamic
11. If local variables are stack-dynamic, advantage is _ _ _ _ _ _ _ _ [02D01]
a. Allocation/deallocation time
b. Indirect addressing
c. Subprograms cannot be history sensitive
d. They support recursion
12. Life time of variables declared as auto is [02D02]
a. Within all block
www.creativeworld9.blogspot.com
To get more please visit: www.examsadda.blogspot.com
b. Within the blocks
c. Through out the program
d. Within two corresponding blocks
13. _ _ _ _ _ _ _ _ _ variables are opposite to stack-dynamic variables [02M01]
a. static
b. stack
c. queue
d. formal
14. The _ _ _ _ _ _ _ _ of a variable is the time between creation and termination [02M02]
a. scope
b. lifetime
c. context
d. range
15. The default initial value of static variable is _ _ _ _ [02M03]
a. Zero
b. Garbage value
c. One
d. Null
16. _ _ _ _ _ _ _ _ _ _ _ _ variables are bound to memory cells before execution begins and remains bound to the
same memory cell throughout execution. [02S01]
a. auto
b. extern
c. Static
d. range
17. The _ _ _ _ _ _ _ _ _ _ _ of a variable is the range of statements in a program over which its visible [02S02]
a. lifetime
b. scope
c. life
d. activation
18. The period of time between an allocation and its subsequent disposal is called [02S03]
a. Scope
b. binding
c. lifetime
d. longevity
19. The _ _ _ _ _ _ _ of a program unit or block are those that are visible within the program unit or block but are not
declared there. [02S04]
a. Local variables
b. non local variables
c. constants
d. identifiers
20. Scope of static variable is [02S05]
a. Local to the block in which the variable is defined
b. Within all blocks
c. Through out the program
d. Within two corresponding blocks
21. Default initial value of a register variable is [02S06]
a. Zero
b. Garbage value
c. One
d. Null
22. In C and C++ functions locals are stack dynamic unless specifically declared to be [03D01]
a. static
b. dynamic
c. auto
d. register
23. _ _ _ _ _ _ _ _ compilation is compilation of some of the units of a program separately from the rest of the
program, using interface information to check the correctness of the interface between the two parts. [03D02]
a. aIndependent
b. separate
c. combined
d. mixed
24. The advantage of _ _ _ _ _ _ _ _ parameters is that they can appear in any order in the actual parameter list
[03M01]
a. positional parameters
b. keyword parameters

0 comments:

Post a Comment