Вы находитесь на странице: 1из 8

Code No: 09A1EC01 Set No. 1 JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD I B.Tech.

II Mid Examinations, March 2010 COMPUTER PROGRAMMING AND DATA STRUCTURES Objective Exam Name: ______________________________ Hall Ticket No. A Answer All Questions. All Questions Carry Equal Marks. Time: 20 Min. Marks: 10. I. 1. Choose the correct alternative: 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 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 How many values a function can return at a time a) 2 b) any number of values c) only 1 [ ]

2.

3.

[ 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 The statement : printf (%d, size of()); prints a) zero b) 1 c) garbage d) an error message One structure cannot be a member of a) some other structure b) an array The type of any pointer is : a) integer data type c) unsigned integer data type

5.

6.

[ c) a union d) the same structure [ b) character data type d) none of these [

7.

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 value d)reduce the length of the program 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 s[2][1] is same as a) *((s+2)+1) b) *((s+2)*1)

9.

10.

[ c) *(*s+2)+1) d) (*(s+2)+1)

Cont.2

Code No: 09A1EC01 II 11. 12. 13. 14. 15. Fill in the blanks

:2:

Set No. 1

_________is the standard library function is used to reverse the given string The parameters in a function definition are called as ____________ parameters ______________ input/output function is used for reading a string having multiple words The pointer stores ____________of a variable If one or more members are pointer to the same structure, the structure is known as ________ Structure The array elements always stored in ___________memory locations The ___________function is used to allocate block of memory ______________is collection o f dissimilar data items ____________is programming technique that allows the programmer to express operations in terms of Themselves _____________is a collection is related information that is permanently stored on the disk.

16. 17. 18. 19.

20.

-oOo-

Code No: 09A1EC01 Set No. 2 JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD I B.Tech. II Mid Examinations, March 2010 COMPUTER PROGRAMMING AND DATA STRUCTURES Objective Exam Name: ______________________________ Hall Ticket No. A Answer All Questions. All Questions Carry Equal Marks. Time: 20 Min. Marks: 10. I. 1. Choose the correct alternative: In which parameter passing mechanism, actual argument values are unchanged? a) By value b) by value reference c) by name d) by reference The statement : printf (%d, size of()); prints a) zero b) 1 c) garbage d) an error message One structure cannot be a member of a) some other structure b) an array The type of any pointer is : a) integer data type c) unsigned integer data type [ ]

2.

3.

[ c) a union d) the same structure [ b) character data type d) none of these [

4.

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 value d)reduce the length of the program 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 s[2][1] is same as a) *((s+2)+1) b) *((s+2)*1)

6.

7. 8.

[ c) *(*s+2)+1) d) (*(s+2)+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 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 How many values a function can return at a time a) 2 b) any number of values c) only 1

9.

10.

[ d) no values 0

Cont.2

Code No: 09A1EC01 II 11. 12. Fill in the blanks

:2:

Set No. 2

The pointer stores ____________of a variable If one or more members are pointer to the same structure, the structure is known as ________ Structure The array elements always stored in ___________memory locations The ___________function is used to allocate block of memory ______________is collection o f dissimilar data items ____________is programming technique that allows the programmer to express operations in terms of Themselves _____________is a collection is related information that is permanently stored on the disk. _________is the standard library function is used to reverse the given string The parameters in a function definition are called as ____________ parameters ______________ input/output function is used for reading a string having multiple words

13. 14. 15. 16.

17. 18. 19. 20.

-oOo-

Code No: 09A1EC01 Set No. 3 JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD I B.Tech. II Mid Examinations, March 2010 COMPUTER PROGRAMMING AND DATA STRUCTURES Objective Exam Name: ______________________________ Hall Ticket No. A Answer All Questions. All Questions Carry Equal Marks. Time: 20 Min. Marks: 10. I. 1. Choose the correct alternative: One structure cannot be a member of a) some other structure b) an array The type of any pointer is : a) integer data type c) unsigned integer data type [ c) a union d) the same structure [ b) character data type d) none of these [ ] ] ]

2.

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 value d)reduce the length of the program 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 s[2][1] is same as a) *((s+2)+1) b) *((s+2)*1)

4.

5. 6.

[ c) *(*s+2)+1) d) (*(s+2)+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 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 How many values a function can return at a time a) 2 b) any number of values c) only 1

7.

8.

[ 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 The statement : printf (%d, size of()); prints a) zero b) 1 c) garbage d) an error message

10.

Cont.2

Code No: 09A1EC01 II 11. 12. 13. 14. Fill in the blanks

:2:

Set No. 3

The array elements always stored in ___________memory locations The ___________function is used to allocate block of memory ______________is collection o f dissimilar data items ____________is programming technique that allows the programmer to express operations in terms of Themselves _____________is a collection is related information that is permanently stored on the disk.

15.

16. 17. 18. 19. 20.

_________is the standard library function is used to reverse the given string The parameters in a function definition are called as ____________ parameters ______________ input/output function is used for reading a string having multiple words The pointer stores ____________of a variable If one or more members are pointer to the same structure, the structure is known as ________ Structure

-oOo-

Code No: 09A1EC01 Set No. 4 JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD I B.Tech. II Mid Examinations, March 2010 COMPUTER PROGRAMMING AND DATA STRUCTURES Objective Exam Name: ______________________________ Hall Ticket No. A Answer All Questions. All Questions Carry Equal Marks. Time: 20 Min. Marks: 10. I. 1. Choose the correct alternative: 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 value d) reduce the length of the program 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 s[2][1] is same as a) *((s+2)+1) b) *((s+2)*1) [ ]

2.

3. 4.

[ c) *(*s+2)+1) d) (*(s+2)+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 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 How many values a function can return at a time a) 2 b) any number of values c) only 1

5.

6.

[ 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 The statement : printf (%d, size of()); prints a) zero b) 1 c) garbage d) an error message One structure cannot be a member of a) some other structure b) an array The type of any pointer is : a) integer data type c) unsigned integer data type

8.

9.

[ c) a union d) the same structure [ b) character data type d) none of these

10.

Cont.2

Code No: 09A1EC01 II 11. 12. Fill in the blanks

:2:

Set No. 4

______________is collection o f dissimilar data items ____________is programming technique that allows the programmer to express operations in terms of Themselves _____________is a collection is related information that is permanently stored on the disk. _________is the standard library function is used to reverse the given string The parameters in a function definition are called as ____________ parameters ______________ input/output function is used for reading a string having multiple words The pointer stores ____________of a variable If one or more members are pointer to the same structure, the structure is known as ________ Structure The array elements always stored in ___________memory locations The ___________function is used to allocate block of memory

13. 14. 15. 16. 17. 18.

19. 20.

-oOo-

Вам также может понравиться