Placement Papers: INautix Placement Paper Technical C
Get unlimited access to the best preparation resource for CTET/Paper-1 : get questions, notes, tests, video lectures and more- for all subjects of CTET/Paper-1.
- main () {char ⚹⚹ p == “Hello” printf ( “% s” ⚹⚹ p) ;} Ans: Garbage or nothing
- main () {printf ( “% d % c⧵n” ) ; printf ( “% d % c⧵n” ) ;} Ans: Garbage Value
- main () {int x == 5; printf ( “% d % d” x ++ , ++ x) ;} Ans == 6 6
- main () {int x == 4; printf ( “% d” printf ( “% d % d” x, x) ) ;} Ans: 4 4 5
- main () {union {int i; char p; {int t; char e; char o;} w;} l; printf ( “% d⧵n” sizeof (l) ) ;} Ans: 4
- main () {int i == 0, n == 6; while (n--0) ; i += = n; printf ( “% d⧵n” i) ;} Ans: 1
- main () {char a [] == “Hello” printf ( “% c⧵n” ⚹ a ++) ;} Ans: Error
- a == 3, b == 2, c == 1; what՚s the value of k? k == a < b < c − 1; Ans: 0
- main () {int a == 3; do {printf ( “% d” a) ; a == -1;} } while (a0) ; Ans: 3
- It is not “exact” Question; But the given Answers is:
main () {char c == -32; int i == -64; unsigned u == -26; if (ci) printf ( “PASS1” ) ; if (i < c) printf ( “PASS2” ) ; else printf ( “FAIL1” ) ; if i printf ( “PASS2” ) ; else printf ( “FAIL2” ) ;}
Ans: PASS1 PASS2 PASS1