Computer Concept & Programming In C - Unit IV - 23



[I] Choose Correct Answers
1. Which of the following is not a data structure?
(a) Stack (b) Variable (c) Queue (d) List.      (AKTU. 2008-09)

2. What will a PUSH statement do in a stack?
(a) Insert an element between two elements (b) Delete an element
(c) Always add element at top (d) None of the above.       (AKTU. 2008-09)

3. How many elements will be there in A[10][5] array?
(a) 50 (b) 56 (c) 55 (d) None of the above           (AKTU. 2008-09)

4. A stack is
(a) LIFO (Last in first out) (b) FIFO (First in first out)
(c) LILO (Last last out) (d) None of the above.       (AKTU. 2009-10)

5. An array can store
(a) Finite data of similar type (b) Infinite data of similar type
(c) Finite data of mix type (d) All of the above.        (AKTU. 2009-10)

6. Which of the following is not a functional programming language
(a) SML (b) HASKELL (c) C   (d) LISP.                    (AKTU. 2009-10)

7. A pointer in C language
(a) is a address of some location (b) is useful in describing linked list
(c) can be used to access the elements of an array (d) all of the above.        (AKTU. 2009-10)     
8. Select the odd man out :
(a) Integer (b) Structure (c) Union (d) Array.                              (AKTU. 2009-10)

9. Which keyword is used to define structure ?
(a) structure (b) STRUCTURE
(c) STRUCT (d) None of the above.             (AKTU. 2010-11)

10. Which method of input-output is used in stack ?
(a) First In First Out (b) First In Last Out
(c) Both A & B (d) None of the above.                  (AKTU. 2010-11)

11. How many elements will be there is A[5] [5] array ?
(a) 5 (b) 25 (c) 50     (d) None of the above.           (AKTU. 2010-11)

12. By default, array index in C language starts from
(a) 2 (b) l (c) 0 (d) - 1             (2010 - 11)

13. The complement of the relational operator (a = = b) is:                (AKTU. 2010-11)
(a) (a <= b) (b) (a > = b) (c) (a ! b) (d) All of the above.

14.  By default the return type of a function is:
(a) char (b) float (c) mt (d) void.                        (AKTU. 2010-11)

15. Which of the following is an example of secondary memory:             (AKTU. 2010-11)
(a) RAM (b) ROM (c) Cache Memory  (d) None of the above

[II] True or False Statements

1. During the evaluation of mixed expression, an implicit cast is generated automatically.                                                              (AKTU. 2008-09)

2. All static variables are automatically initialized to zero.      (AKTU. 2008-09)

3. A struct type in C is a built in data types.                          (AKTU. 2008-09)

4. Initialization of all elements of an array can be done at the time of declaration and definition.                                                                         (AKTU. 2010-11)

5. List is a non linear data structure.                                (AKTU. 2010-11)

6. A function in C cannot be invoked by other function.                  (AKTU. 2010-11)

7. The name of an array is a pointer only to the first element, not the whole array.                                                                       (AKTU. 2010-11)

[III] Fill in the Blank

1. The __________ header file contains mathematical functions.    (AKTU. 2008-09)

2. The statement ................... will declare pa as pointer to character variable.                                                        (AKTU. 2010-11)






Choose Correct Answers

1. (b) 2. (c) 3. (a) 4. (a) 5. (a) 6. (d) 7. (d) 8. (a) 9. (c)
10. (b)         11. (b) 12. (c) 13. (c) 14. (d) 15. (d)

True or False Statements

1. (T) 2. (F) 3. (F) 4. (T) 5. (T) 6. (F) 7. (T)

Fill in the Blank

1. <math.h> 2. char*pa;