Neopat Technical Week 1
Neopat Technical Week 1
■
■
t zat a - I -
■
I
I
I
I
I
I• I L'
V
I An II r h r
I • i nclude s4oio.h
I _
3
int main
{
0 Somegoroagc-
o roagc-
I 4
S
6
short ::.nt ? ;
scan• ~~c· ~ &i );
print• \nd'~ i);
I 8
7
}
re.:urr. 0; Dee
I
I
I
Ml_MCQ_Dot□types and
V
• ,, " Sr,;9 Chaitra Ravi
aa Question No 4 20
Ir Answer here
■m
2 int main()
3 {
10 3 SO'l'lCQO' ,age 110 u
■ II
.:I inti= 18, j = 3, k = 3;
5 printf( "%ct 4.d ", i, j, k);
G }
■ II 0 103
■■
■■
■■
II M O_Dototypes ond
1, r.,c-o (20)
r Jr 5ree Chcntro Ravi
111 Question No 5 20
Answer here
I■
I■
I■
MI_M::Q_Ootatypes ond
I I I 1,h... Q llC) V
I 1r "' Sre° Choltro Ravi
aa Question No .3 20
J An s,11er her e
■a
2 int main()
3 {
print f( · .- 6 . 2g ", .0080009) ; 0 9e-07
■ II
0
4
5 }
■ II e9
■■
■■
■■
Ml M~Q Dotatvpes ond I I t.k()(.iO)
• I l JI V I r <- Sree Cha1tta Rav1
an Qu :.tion No 2. I .:o
Answer here
■ II
2 void main{)
3 {
Va UCO! b s~
int a = S;
I■
4
s int b " ++a + a++ - - -a;
6 printf("Value of b is "'", b);
I■ 7 } Vaiucot > ,;
8
I■
I■
I■
I■
I■ Multi Choice Type Question
I■
I■
d
I■
I■
I■
I■
l■
• }
Ml MCQ_DOtOt)?>es and
@ )f I r MCQ Uo) .141
V
~ u Sree Chaltro ROiif
■D
Question No 8 1 20
) Ans·11er here
I■ 2
3
int main :) {
int x = 10; {
I■
4 int ~ = 0; 10
s printf("".;d",x);
6 }
I■ 7
8 }
return 0; 2
I■
I■
I■
Mt M-.Q_Oatotypes Ond _
·.a IC)J I I I MCQ (20) 242 V
I 1 - Sree Chcltra Ravi
aa Question No 9 / 20
Answer here
■ II
W'"'ot wi
1 t include stdio.h >
■ II
2 int main () { 0 1234 2322 4d2
3 int x = 1234, y = 02322, : = 0x4D2; 1234,1234 1234
■ II
4 printf ( "%d %0 %x\n", x, x, x);
S printf ("%d %d %d\n", x, y, :);
6 }
■ II
123 2324d
123 123 123
■■ 234 322 d2
I■ 234 234 234
I■
MI_MCQ_Dototype and
V
Sree Clloitra ffovl
• ~nt t s C code?
■ II
t CLt Jt 01 t"
1 • include stdio.h>
■ II
2 int main()
3 {
0
■■
4 int X = 2, Y = 0;
5 int :;
6 : = (}++, y);
■■ 7
8
printf ( "!'.d", :) ;
return 0;
Undct "ed .>e"o
■■
9 }
■■
■■
R _botatype nd It( 1 _,Q\
V
Sree Chaltro 11W
I■
N
Answer here
I■ ·,,t - .J
I■
I■ S"O t S - 4
I■
I■
I■
MI_MCQ_Datatypes end I I I MCQ (lu) 1../.8 V
t 1r ,. Sree Choma Ravi
■ II
Ql..est,.:m No 12 ~0
.J AnsNer here
■ II
2 \ Cid main()
3 {
7
■ II
J in~ I = 8;
5 int m = 7;
6 I < m ? I•++ : m = k;
■ II 7
8 }
printf( "~d", k) ; RU " f "11 0
■■
9
■■
■■
MI_ M ... Q_DotatyPes ond
J.J.4 V
, Jf " Sr1?1? cna,tra Flovt
1111 Question No 13 20
Ans·uer here
I■
I■
I■
■■
■■ Multi Choice T)rpe Question
■■
■■
gC od
■■
■■
■■
■
■
■
M l MCQ _ DototyPes and
I "-tCO(:lll)
V
Stee Cno tro Ravi
aa Que:sti.:>n No 5 'O
Answer herp
■ II 1
3
int main ()
{
■■
4 int i = S; 'TH) erne"tat:, d f
s i = i / 3;
6 printf (''':'..d\n", i);
I■ 7
8 }
return 0;
3
I■
I■
I■
IM Oato Ond
rI Ill''
V
fff a
ID ""( e nr-.
Ans11er here
,a V, "O t
l
.:,0 t"e ou~..>ut of t..,c to ovl"g progra'TI?
r■
2 int g = :0;
3 int main( l,
4 char g = a; va ueof g - :c
■ s
6 re-::u~n 0·,
..
P"".:.r.t...- ( alue of g = !'ac"> g);
■ 0
7 } Compile Time E'-o
■
■
■
Ml M-.;Q_Datotypes Ond
I MC'"Q (..!Ll} V
Sree Cl'laltra ACM
■D
Question N., - 20
Answer here
■a
>IC d 'TIO ""
■■
'
""tx - I;. - 3
""t - ). 3
-I
■■
"'tt d .., y) 21474836..i.:>
■■
I■
I■
Dotatypes ond _
",;, 1 r I I I t.tCQ (20)
V t _J Sree Chaltra RCNI
DII Question No 18 / 20
Answer here
■ II
What wi l:>e tne output of tne follow·ng progra'T)?
I Go oagp VO u
1 #include stdio.h)
■ II
2 int main () {
3 printf ("id \d", s i::eof( void));
4 Gar ,age va u
11••·
I■
4 }
I■
I■
I■
Ml M Q_Dotatyµe?, on a
I I I f..J('Q (20) I J. V
SreeChaltraRavt
■ II
Question No 1~ 20
Answer h ere
■ II
2 int ma i n()
3 {
21,28,0o
I■
.; int <;
5 x: 21,28,05;
6 printf ( ":'od"', x);
I■ 7
8 }
return 0; 28
I■
I■
I■
M M O_DotatyPes ond
I "' ..) t.20} V
SrHChaltra RCM
ID Answer h-=re
111 l
Lil
• include , ~tdio.h ~
C
2
111 2
3
int main()
{
0 Ascii value of cra·oct-:
I■
.J int lC = 1;
s int } = x == 1? getchar(): 2;
6 printf(""od \ n", :,);
,■ 7 } Como·c t'T'
,■
I■
■