Thursday, September 22, 2016

3rd CSE C Programming - TT Evening 22nd 6 to 8 pm

1.int x=10,20; value of x?
A. error
B. 10
C. 20
D. 30

2. float f=10.3456F; int x=f;
 what was the value of x?
A.  10.3
B.  10
C.  10.345
D.  10.346

3.# include 
int main()
{ int a=2, b=7,c=10; 
c=a==b; 
printf("\n%d",c); 
}
A.  0
B.  1
C.  2
D.  10
4.   int i=1; i=2+2*i++; i value is?
A.  4
B.  5
C.  6
D.  none

5 . 
int i=5; 
int j; 
j=++i + ++i + ++i; 
printf("%d",j);

A.  21
B.  18
C.  24
D.  15

6. 
int a=0,b=1; 
if(a=0)
 { printf("\ntrue"); }
 else
 { printf("\nfalse"); }
A.  none
B.  true
C.  syntax error
D.  false
7.   int x; x=10,20,30; printf("%d",x);
A.  60
B.  30
C.  10
D.  20
8.
printf(" %d %d %d",sizeof(3.14) , sizeof(3.14F), 

sizeof(3.14L));
A.  8 4 10
B.  4 4 4
C.  8 8 8
D.  4 4 10
9
 if(-7) printf("YES"); else printf("NO");
A.  error
B.  YES
C.  YES NO
D.  NO
10.which of the following are unary operators
 1. !     2. sizeof      3. ~        4. &&
A.  1,2
B.  1,3
C.  1,2,3
D.  2,4
11.char f=255; f++; printf("%d ",sizeof(f));
A.  2
B.  4
C.  compilation error
D.  1
12.
int a; a=sizeof(!5.6); printf("%d",a);
A.  2
B.  4
C.  10
D.  8
13.
int a=(10,20,40); a value is
A.  10
B.  20
C.  40
D.  70
14.     int a; a=10>20; a value is
A.  1
B.  0
C.  error
D.  none
15. int i=7;
 i=++i + i++ + ++i; printf("\n%d",i);
A.  27    B.  21   C.  28    D.  24

16.By default a real value treated as ....
A.  float    B.  far double
C.  double   D.  long double

17.int i=10;
 if(i++==10 && i==10) 
printf("\ntrue"); 
else 
printf("\nfalse");
A.  true   B.  error  C.  none   D.  false
18.  
int i=10;
 if(i++==10 && i==10);
 printf("\ntrue"); 
else
 printf("\nfalse");
A.  false
B.  error
C.  none
D.  true
19.   int a=10;
    int b=a<=10;
    printf("%d",b);
a.  1    b. 0    c.error   d  none

20.    int x=2;
    int y;
    y=x++*2;
    y val?
a. 6   b.error    c.none     d.4

Tuesday, September 13, 2016

CSE RPRA & RGAN 2nd yr TT 6 to 8.30 test-1




2. c dev by ....................
3. float f=10.3456F; int x=f;
 what was the value of x?
A.  10.3
B.  10
C.  10.345
D.  10.346

4.# include
int main()
{ int a=2, b=7,c=10;
c=a==b;
printf("\n%d",c);
}
A.  0
B.  1
C.  2
D.  10
5.   int i=1; i=2+2*i++; i value is?
A.  4
B.  5
C.  6
D.  none

6 .
int i=5;
int j;
j=++i + ++i + ++i;
printf("%d",j);

A.  21
B.  18
C.  24
D.  15

7.
int a=0,b=1;
if(a=0)
 { printf("\ntrue"); }
 else
 { printf("\nfalse"); }
A.  none
B.  true
C.  syntax error
D.  false
8.   int x; x=10,20,30; printf("%d",x);
A.  60
B.  30
C.  10
D.  20
9.
printf(" %d %d %d",sizeof(3.14) , sizeof(3.14F),

sizeof(3.14L));
A.  8 4 10
B.  4 4 4
C.  8 8 8
D.  4 4 10
10
 if(-7) printf("YES"); else printf("NO");
A.  error
B.  YES
C.  YES NO
D.  NO
11.which of the following are unary operators
 1. !     2. sizeof      3. ~        4. &&
A.  1,2
B.  1,3
C.  1,2,3
D.  2,4
12.char f=255; f++; printf("%d ",sizeof(f));
A.  2
B.  4
C.  compilation error
D.  1
13.
int a; a=sizeof(!5.6); printf("%d",a);
A.  2
B.  4
C.  10
D.  8
14.
int a=(10,20,40); a value is
A.  10
B.  20
C.  40
D.  70
15.     int a; a=10>20; a value is
A.  1
B.  0
C.  error
D.  none
16. int i=7;
 i=++i + i++ + ++i; printf("\n%d",i);
A.  27    B.  21   C.  28    D.  24

17.By default a real value treated as ....
A.  float    B.  far double
C.  double   D.  long double

18.int i=10;
 if(i++==10 && i==10)
printf("\ntrue");
else
printf("\nfalse");
A.  true   B.  error  C.  none   D.  false
19. 
int i=10;
 if(i++==10 && i==10);
 printf("\ntrue");
else
 printf("\nfalse");
A.  false
B.  error
C.  none
D.  true
20.   int a=10;
    int b=a<=10;
    printf("%d",b);
a.  1    b. 0    c.error   d  none

21.    int x=2;
    int y;
    y=x++*2;
    y val?
a. 6   b.error    c.none     d.4



  














































3. float f=10.3456F; int x=f;
 what was the value of x?
A.  10.3
B.  10
C.  10.345
D.  10.346

4.# include
int main()
{ int a=2, b=7,c=10;
c=a==b;
printf("\n%d",c);
}
A.  0
B.  1
C.  2
D.  10
5.   int i=1; i=2+2*i++; i value is?
A.  4
B.  5
C.  6
D.  none

6 .
int i=5;
int j;
j=++i + ++i + ++i;
printf("%d",j);

A.  21
B.  18
C.  24
D.  15

7.
int a=0,b=1;
if(a=0)
 { printf("\ntrue"); }
 else
 { printf("\nfalse"); }
A.  none
B.  true
C.  syntax error
D.  false
8.   int x; x=10,20,30; printf("%d",x);
A.  60
B.  30
C.  10
D.  20
9.
printf(" %d %d %d",sizeof(3.14) , sizeof(3.14F),

sizeof(3.14L));
A.  8 4 10
B.  4 4 4
C.  8 8 8
D.  4 4 10
10
 if(-7) printf("YES"); else printf("NO");
A.  error
B.  YES
C.  YES NO
D.  NO
11.which of the following are unary operators
 1. !     2. sizeof      3. ~        4. &&
A.  1,2
B.  1,3
C.  1,2,3
D.  2,4
12.char f=255; f++; printf("%d ",sizeof(f));
A.  2
B.  4
C.  compilation error
D.  1
13.
int a; a=sizeof(!5.6); printf("%d",a);
A.  2
B.  4
C.  10
D.  8
14.
int a=(10,20,40); a value is
A.  10
B.  20
C.  40
D.  70
15.     int a; a=10>20; a value is
A.  1
B.  0
C.  error
D.  none
16. int i=7;
 i=++i + i++ + ++i; printf("\n%d",i);
A.  27    B.  21   C.  28    D.  24

17.By default a real value treated as ....
A.  float    B.  far double
C.  double   D.  long double

18.int i=10;
 if(i++==10 && i==10)
printf("\ntrue");
else
printf("\nfalse");
A.  true   B.  error  C.  none   D.  false
19. 
int i=10;
 if(i++==10 && i==10);
 printf("\ntrue");
else
 printf("\nfalse");
A.  false
B.  error
C.  none
D.  true
20.   int a=10;
    int b=a<=10;
    printf("%d",b);
a.  1    b. 0    c.error   d  none

21.    int x=2;
    int y;
    y=x++*2;
    y val?
a. 6   b.error    c.none     d.4