Placement Papers: ISoftTech Paper 2007
Doorsteptutor material for CTET/Paper-2 is prepared by world's top subject experts: get questions, notes, tests, video lectures and more- for all subjects of CTET/Paper-2.
- which has no problem with pointers int ⚹ f1 () {int n; return (n) } int ⚹ f2 () {int ⚹ p; ⚹ p = 3; return p;} int ⚹ f3 () {int ⚹ p; p = malloc () ; return p;} ans: No error
- header file ⇾ contains declarations.
- sizeof operator is executed during compile time.
- ⚹ p += 1 ⚹ p ++ are these two same? not same.
- func (int i) {static int count; count = count + i;} ans: 1 + 2 + 3 … Counts values does not go after funtion call 8. Is ( ‘a’ < ‘b’ ) true
- short int = 16 bits
- 4 stmt. Ans. Int float i
- int number [3] number [3] = 2; ans: First stmt deals with size second deals with element
- j = 4 for (int i = 0; i < 5; i ++) {j ++ ; ++ j;} output of j. Ans: 14
- char s1 [20] = “hello world” s1 [5] = “⧵0” printf ( “% d” strlen (s1) ) ; printf ( “%% . % … (not clear) ” s1) ; ans: Bad format specifier
- brace used in c for what ans: Convention 15. Parameters in c passed by ans: Value.
- when an array is passed it is by ans: Pointer. 17. Scanf can read ans: Any data type
- which cant be passed to subroutine. Ans: Preprocessor directive.
- to get string of words. Ans: Gets ()
- external variables can be accesed ans: In functions which use them. Analytical