Documente Academic
Documente Profesional
Documente Cultură
Learning Centre Of
For(int i=0;i<2;i++)
{
SMU
Part - I
1) C is a
a) high level language
language
c) object based language
these
Printf(%d,i);
b) low level
d) none of
}
a) 01
c) error
2) printf() belongs to
a) ctype.h
b)string.h
d) stdio.h
d) conio.h
3) printf(%d,printf(my first c program))
Will show the output
a) 18
b) 15
c) will generate error
d) none if these
4) int is a
a) keyword
b)identifier
c) data type d) none of these
5) \r is used for
a) backspace
c) tab
b)carriage return
d) new line
b) OR
d)none of these
b) post
b) post
9) int x,a=4;
x=(a>=4)?2:3;
shows that
a) 0
b) 3
c) 2
d)1
10) integer takes
a) 4 bytes
b) 1 bytes
c) 2 bytes
d) 0 bytes
11) Formal Parameter is declared in
a) function prototype
b) function definition
c) function calling
d) none of this
12) In UNION we can access
a) 2 members atatime
b) 1 member atatime
c) all variables atatime d) none of this
12) find the output
main()
{
Int i=2;
Printf(%d,i++);
Printf(%d,++i);
}
a) 2,2
b) 2,4
c)2,3
d) none of this
13) find the errors:
main()
{
b) 012
d) 0