2
JNTUWORLD 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. Choose the correct alternative: 1. If you don’t initialize a static array, what would be the elements set to? [ A ] 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 [ C ] a) size b) data type c) data type & size d) Runtime requirement 3. How many values a function can return at a time [ C ] 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 ] a) By value b) by value reference c) by name d) by reference 5. The statement : printf (“%d”, size of(“”)); prints [ B ] 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 : [ C ] 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 [ C ] 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 9. 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 10. s[2][1] is same as [C ] a) *((s+2)+1) b) *((s+2)*1) c) *(*s+2)+1) d) (*(s+2)+1) Cont….2 www.jntuworld.com www.jntuworld.com

2010

Embed Size (px)

DESCRIPTION

DOS Commands

Citation preview

Page 1: 2010

JNTUWORLD

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. Choose the correct alternative: 1. If you don’t initialize a static array, what would be the elements set to? [ A ]

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 [ C ] a) size b) data type c) data type & size d) Runtime requirement 3. How many values a function can return at a time [ C ] 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 ]

a) By value b) by value reference c) by name d) by reference

5. The statement : printf (“%d”, size of(“”)); prints [ B ] 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 : [ C ] 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 [ C ] 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 9. 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 10. s[2][1] is same as [C ] a) *((s+2)+1) b) *((s+2)*1) c) *(*s+2)+1) d) (*(s+2)+1)

Cont….2

www.jntuworld.com

www.jntuworld.com

Page 2: 2010

JNTUWORLD

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 [ans: strrev()]

12. The parameters in a function definition are called as ____________ parameters [Ans:formal]

13. ______________ input/output function is used for reading a string having multiple words [gets()/puts()]

14. The pointer stores ____________of a variable[Ans:address]

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 [Ans:contigues or sequential]

17. The ___________function is used to allocate block of memory [Ans:malloc()]

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-

www.jntuworld.com

www.jntuworld.com