Download - Cpds Mar 2010 Reg
-
7/29/2019 Cpds Mar 2010 Reg
1/8
Code No: 09A1EC01 Set No. 1JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
I B.Tech. II Mid Examinations, March 2010COMPUTER PROGRAMMING AND DATA STRUCTURES
Objective ExamName: ______________________________ Hall Ticket No.
Answer All Questions. All Questions Carry Equal Marks. Time: 20 Min. Marks: 10.
I. Choose the correct alternative:
1. If you dont initialize a static array, what would be the elements set to? [ ]a) 0 b) an known value c) 1 d) the character constant \0
2. The amount of storage required for holding elements of the array depends on [ ]a) size b) data type c) data type & size d) Runtime requirement
3. How many values a function can return at a time [ ]
a) 2 b) any number of values c) only 1 d) no values 0
4. In which parameter passing mechanism, actual argument values are unchanged? [ ]
a) By value b) by value reference c) by name d) by reference
5. The statement : printf (%d, size of()); prints [ ]
a) zero b) 1 c) garbage d) an error message
6. One structure cannot be a member of [ ]
a) some other structure b) an array c) a union d) the same structure
7. The type of any pointer is : [ ]a) integer data type b) character data type
c) unsigned integer data type d) none of these
8. Which of the following is wrong with respect to functions [ ]a) it facilitates the top-down modular programming
b) function will provide reusability of the code
c) a function will always return some valued)reduce the length of the program
9. Structure is a data type whose members are [ ]
a) all different data types b) all same data typesc) may be different or same d) no element is defined
10. s[2][1] is same as [ ]
a) *((s+2)+1) b) *((s+2)*1) c) *(*s+2)+1) d) (*(s+2)+1)
Cont.2
-
7/29/2019 Cpds Mar 2010 Reg
2/8
Code No: 09A1EC01 :2: Set No. 1
II Fill in the blanks
11. _________is the standard library function is used to reverse the given string
12. The parameters in a function definition are called as ____________ parameters
13. ______________ input/output function is used for reading a string having multiple words
14. The pointer stores ____________of a variable
15. If one or more members are pointer to the same structure, the structure is known as ________
Structure
16. The array elements always stored in ___________memory locations
17. The ___________function is used to allocate block of memory
18. ______________is collection o f dissimilar data items
19. ____________is programming technique that allows the programmer to express operations in terms
of Themselves
20. _____________is a collection is related information that is permanently stored on the disk.
-oOo-
-
7/29/2019 Cpds Mar 2010 Reg
3/8
Code No: 09A1EC01 Set No. 2JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
I B.Tech. II Mid Examinations, March 2010COMPUTER PROGRAMMING AND DATA STRUCTURES
Objective ExamName: ______________________________ Hall Ticket No.
Answer All Questions. All Questions Carry Equal Marks. Time: 20 Min. Marks: 10.
I. Choose the correct alternative:
1. In which parameter passing mechanism, actual argument values are unchanged? [ ]a) By value b) by value reference c) by name d) by reference
2. The statement : printf (%d, size of()); prints [ ]a) zero b) 1 c) garbage d) an error message
3. One structure cannot be a member of [ ]
a) some other structure b) an array c) a union d) the same structure
4. The type of any pointer is : [ ]
a) integer data type b) character data typec) unsigned integer data type d) none of these
5. Which of the following is wrong with respect to functions [ ]a) it facilitates the top-down modular programming
b) function will provide reusability of the code
c) a function will always return some valued)reduce the length of the program
6. Structure is a data type whose members are [ ]
a) all different data types b) all same data types
c) may be different or same d) no element is defined
7. s[2][1] is same as [ ]
a) *((s+2)+1) b) *((s+2)*1) c) *(*s+2)+1) d) (*(s+2)+1)
8. If you dont initialize a static array, what would be the elements set to? [ ]
a) 0 b) an known value c) 1 d) the character constant \0
9. The amount of storage required for holding elements of the array depends on [ ]a) size b) data type c) data type & size d) Runtime requirement
10. How many values a function can return at a time [ ]
a) 2 b) any number of values c) only 1 d) no values 0
Cont.2
-
7/29/2019 Cpds Mar 2010 Reg
4/8
Code No: 09A1EC01 :2: Set No. 2
II Fill in the blanks
11. The pointer stores ____________of a variable
12. If one or more members are pointer to the same structure, the structure is known as ________
Structure
13. The array elements always stored in ___________memory locations
14. The ___________function is used to allocate block of memory
15. ______________is collection o f dissimilar data items
16. ____________is programming technique that allows the programmer to express operations in terms
of Themselves
17. _____________is a collection is related information that is permanently stored on the disk.
18. _________is the standard library function is used to reverse the given string
19. The parameters in a function definition are called as ____________ parameters
20. ______________ input/output function is used for reading a string having multiple words
-oOo-
-
7/29/2019 Cpds Mar 2010 Reg
5/8
Code No: 09A1EC01 Set No. 3JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
I B.Tech. II Mid Examinations, March 2010COMPUTER PROGRAMMING AND DATA STRUCTURES
Objective ExamName: ______________________________ Hall Ticket No.
Answer All Questions. All Questions Carry Equal Marks. Time: 20 Min. Marks: 10.
I. Choose the correct alternative:
1. One structure cannot be a member of [ ]a) some other structure b) an array c) a union d) the same structure
2. The type of any pointer is : [ ]a) integer data type b) character data type
c) unsigned integer data type d) none of these
3. Which of the following is wrong with respect to functions [ ]a) it facilitates the top-down modular programming
b) function will provide reusability of the code
c) a function will always return some valued)reduce the length of the program
4. Structure is a data type whose members are [ ]a) all different data types b) all same data types
c) may be different or same d) no element is defined
5. s[2][1] is same as [ ]
a) *((s+2)+1) b) *((s+2)*1) c) *(*s+2)+1) d) (*(s+2)+1)
6. If you dont initialize a static array, what would be the elements set to? [ ]
a) 0 b) an known value c) 1 d) the character constant \0
7. The amount of storage required for holding elements of the array depends on [ ]
a) size b) data type c) data type & size d) Runtime requirement
8. How many values a function can return at a time [ ]
a) 2 b) any number of values c) only 1 d) no values 0
9. In which parameter passing mechanism, actual argument values are unchanged? [ ]a) By value b) by value reference c) by name d) by reference
10. The statement : printf (%d, size of()); prints [ ]
a) zero b) 1 c) garbage d) an error message
Cont.2
-
7/29/2019 Cpds Mar 2010 Reg
6/8
Code No: 09A1EC01 :2: Set No. 3
II Fill in the blanks
11. The array elements always stored in ___________memory locations
12. The ___________function is used to allocate block of memory
13. ______________is collection o f dissimilar data items
14. ____________is programming technique that allows the programmer to express operations in terms
of Themselves
15. _____________is a collection is related information that is permanently stored on the disk.
16. _________is the standard library function is used to reverse the given string
17. The parameters in a function definition are called as ____________ parameters
18. ______________ input/output function is used for reading a string having multiple words
19. The pointer stores ____________of a variable
20. If one or more members are pointer to the same structure, the structure is known as ________Structure
-oOo-
-
7/29/2019 Cpds Mar 2010 Reg
7/8
Code No: 09A1EC01 Set No. 4JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
I B.Tech. II Mid Examinations, March 2010COMPUTER PROGRAMMING AND DATA STRUCTURES
Objective ExamName: ______________________________ Hall Ticket No.
Answer All Questions. All Questions Carry Equal Marks. Time: 20 Min. Marks: 10.
I. Choose the correct alternative:
1. Which of the following is wrong with respect to functions [ ]a) it facilitates the top-down modular programming
b) function will provide reusability of the code
c) a function will always return some valued) reduce the length of the program
2. Structure is a data type whose members are [ ]
a) all different data types b) all same data typesc) may be different or same d) no element is defined
3. s[2][1] is same as [ ]a) *((s+2)+1) b) *((s+2)*1) c) *(*s+2)+1) d) (*(s+2)+1)
4. If you dont initialize a static array, what would be the elements set to? [ ]
a) 0 b) an known value c) 1 d) the character constant \0
5. The amount of storage required for holding elements of the array depends on [ ]
a) size b) data type c) data type & size d) Runtime requirement
6. How many values a function can return at a time [ ]
a) 2 b) any number of values c) only 1 d) no values 0
7. In which parameter passing mechanism, actual argument values are unchanged? [ ]
a) By value b) by value reference c) by name d) by reference
8. The statement : printf (%d, size of()); prints [ ]
a) zero b) 1 c) garbage d) an error message
9. One structure cannot be a member of [ ]
a) some other structure b) an array c) a union d) the same structure
10. The type of any pointer is : [ ]
a) integer data type b) character data type
c) unsigned integer data type d) none of these
Cont.2
-
7/29/2019 Cpds Mar 2010 Reg
8/8
Code No: 09A1EC01 :2: Set No. 4
II Fill in the blanks
11. ______________is collection o f dissimilar data items
12. ____________is programming technique that allows the programmer to express operations in terms
of Themselves
13. _____________is a collection is related information that is permanently stored on the disk.
14. _________is the standard library function is used to reverse the given string
15. The parameters in a function definition are called as ____________ parameters
16. ______________ input/output function is used for reading a string having multiple words
17. The pointer stores ____________of a variable
18. If one or more members are pointer to the same structure, the structure is known as ________
Structure
19. The array elements always stored in ___________memory locations
20. The ___________function is used to allocate block of memory
-oOo-