Sunday, October 26, 2008

Programming and Debugging_3rd_yr_Paper_October08

Programming and Debugging(3rd year)


1.

main()

{

int i=10;

printf("%d %d",i+++i,i---i);

}

1)compiler error 2)21 1 3)19 1 4)22 1




2.

main()

{

int u,v,t;

u=35;

v=28;

while(v!=0)

{

t=u%v;

u=v;

v=t;

}

printf("%d\n",u);

}

1)28 2)7 3)infinite loop 4)35


3.

main()

{

int array[10];

printf("%p %u %x %X",array,array,&array,&(&array));

}

1)error 2)ffcc 65484 FFCC FFCC

3)ffcc 65484 ffcc FFCC 4)FFCC 65484 ffcc FFCC







4.

#define PRINTX printf("%d\n",x)

main()

{

int x=2,y,z;

x*=3 + 2; PRINTX;

x*= y = z = 4; PRINTX;

x = y == z; PRINTX;

x==(y=z); PRINTX;

}

1)8 32 1 1 2)10 40 1 1 3)8 32 1 4 4)10 40 1 4



5.

main()

{

int i=10;

for(;i-->5;i=(i<5?i:i-1))

printf("\n%d",i);
}

1)9 7 2)9 3)9 7 5 4)9 7 5 3


6.

int func(int i)

{

if(i==0)

return 1;

else

return (i/func(i-1));

}

main()

{

int i=4;

printf("\n%d",func(i));

}

1)4 2)1 3)error:divide by zero 4)no output








7.

main()

{

int x=10,y,z;

z=y=x;

y-=x--;

z-=x--;

x-=--x-x--;

printf("%d %d %d\n",x,y,z);

z-= -x-- - --y;

printf("%d",z);
}

1)7,0,1,7 2)6,0,1,6 3)7,1,2,7 4)7,1,2,9




8.

#define A 100

#include

main()

{

printf("%d",++A);

}

1)101 2)100 3)error 4)66
















9.

main()

{

int i;

for(i=0;i<5;(++i)+1)

printf("%d ",i);

}

1)0,1,2,3,4 2)0,2,4 3)0,1,2,4 4)0,1,4
10.

#define sqr(x) (x)*x

main()

{

int a,b=3;

a=sqr(b+1);

printf("%d",a);

}

1)7 2)13 3)9 4)garbage value





11.

main()

{

char a= 'A';

if( (a=='Z')||( (a='L')&&( a=='A')))

a=a;

printf("%c",a);

}

1)A 2)no output 3)L 4)garbage value
















12.

int f(int n);

int f(int n)

{

int i;

static int j=0;

for(i =1;i<=n;i++)

f(n-i);

j++;

return j;

}

main()

{

int j=f(7);

printf("j=%d",j);
}

1) 128 2)127 3)255 4)256








13.

void main()

{

char a[5] = "abcd";

int b = 3;

printf("%c\n",a[b]);

printf("%c\n",((char *) b)[(int) a]);

}

1)d,b 2)d,d 3)error 4)d,garbage value










14.

#define colums 4

#define rows 3

main()

{

int i,j,k;

int a[rows][colums]={1,2,3,4,5,6,7,8,9,10,11,12};

i=j=k=99;

for(i=0;i
for(j=0;j
if(a[k][j]
k=a[i][j];

printf("\n%d\n",k);
}

1)garbage value 2)4 3)1 4)99




15.

main()

{

char c1;

int i=0;

c1='a';

while(c1>='a' && c1 <='z')

{

c1++;

i++;

}

printf("\n%d",i);

}

1)error 2)26 3)25 4)0











16.

#define mydef define

#mydef MAX 10

main()

{

printf("%d",MAX*MAX);

}

1)error 2)100 3)10 4)50




17.

main()

{

int binary1,binary2;

binary1 =0100;

binary2=0111;

printf("%d",binary1+binary2);
}

1)1011 2)211 3)137 4)118




18.

#define pxx(a,v) printf("%d",a##v)

main()

{

int x1=12,x2=24,x3=35;

pxx(x,1);

pxx(x,2);

pxx(x,2+1);
}

1)12,24,25 2)12,24,35 3)12,24,14 4)none of these








19.

main()

{

char *name="ITCENTRE";

name++;

printf("%s",++name);

++name;

if(name[2]=='T')

printf("\t YES");

else

printf("\t NO");
}

1)CENTER,YES 2)ERROR 3)ITCENTER,NO 4)ITCENTER,YES





20.

main()

{

#ifdef A

int a=10;

#else

int a=20;

#endif

int b=20;

printf("\n%d",a+b);

}

1)40 2)30 3)20 4)garbage value



21.

Which of the following is the correct syntax for suggesting that the JVM performs garbage collection



1)System.free();

2)System.memory.gc();

3)System.gc();

4)System.callGc();





22.

What is the result of invoking the method substring(2, 4) on the string "example"?
1)am 2)amp 3)xam 4)xa




23.

What is the code name of Java 5.0 during its development?

1)Oak 2)Tiger 3)Dolphin 4)Sun



24.

What is the full form of ANSI?

1)American National Specified Identifiers

2)American National Specified Integration

3)American National Standard identifiers

4)American National Standard Institute




25.

main() {

char s1[] = "Hagrid";

char s2[] = "Hagrid";

if (s1==s2)

printf ("Same");

else

printf ("Different");

}

1)same 2)different 3)error 4)no output


Answers:
3
2
4
2
3
1
2
3
1
2
3
1
2
3
2
1
3
1
1
1
3
1
2
4
2

Aptitude Paper_October08

Aptitude

1) How many pair of x and y satisfy the equations 4x+6y=16 and 6x+9y=24?

a)0 b)1 c)infinite d)none of these

ANS:___________

2)The total monthly sales of two companies A and B are in the ratio 2:3 and their total monthly expenditure are in the ratio 3:4. Find the ratio of the profits of two companies given that company A's profit is eual to a fifth of its sales?

a)8:15 B)13:15 c)6:13 d)5:9

ANS:___________

3) If a,b and c are in continued proportion then which of the following equals c:a?

a)b^2:a^2 2)(c^2-b^2):(b^2-a^2) 3)c^2:b^2 4)All of these

ANS:___________

4) If the price of tea goes up by 10%, then what should be the percentage decrease in the quantity consumed so that the total expenditure on tea remains the same?

a)6% b) 7% c) 8.18% 4)9.99%

ANS:___________

5) Ajit buys a certain number of bananas at 8 for Rs.10 and an equal number at 10 for Rs.15. If he sells them at 15 for Rs.20, what is his loss percentage?

a)3.03% b)4.67% c)2% d)6%

ANS:___________



6) The commission paid to the working partner of a business is eual to 30% of the profit left after his comission is paid. If his comission is known to be Rs. 24000, then find the total profit?

a)Rs.72000 b)Rs.38000 c)Rs.104000 d)Rs. 36000

ANS:___________

7) A person invests Rs. 28200 in 10% stock at 94. He then sells it when it is quoting at 106. He then reinvests the money in 6% stock at 100 which he sells when the stock is quoting at 107. Find the overall profit of the transaction?

a)Rs.5826 b)Rs.4684 c)Rs.2856 d)Rs.4946

ANS:___________

8) Which of the statements is true about 31^n-1?

a)Always divisilbe by 32. b)divisible by 32 when n is odd

c)Never divisible by 30 d)Always divisible by 30.

ANS:___________

9) 11^103+14^103 is divisible by

a)45 b)35 c)25 d)75

ANS:___________

10) A and B leave at the same time, A travels North at 18 km/hr and B travels west at a speed of 24 km/hr. Find the distance between A ands B in km/hr after two hours?

a)30 b)45 c)60 d)55

ANS:___________

11) A swimming pool 150m long and 50m wide is 1m deep at the shallow end ande 6m deep at the deep end. Find the volume of the pool?

a)52500 b)26250 c) 46820 d)none

ANS:___________



12) A man can row 3/7th of a kilometre upstream in 36 minutes and return in 12 minutes. Find the speed of water current?

a)5/7 b)10/7 c)15/7 d)20/7

ANS:___________

13) Find the angle in degrees between the hands of the clock when the time is 4:40?

a)95 b)100 c) 105 d)110

ANS:___________

14) Fifteen men take 20 days to complete a job working 8 hours a day. How many hours a day should 20 men to complete the job in 12 days?

a)8 b)10 c)12 d) 15

ANS:___________

15) Three taps A,B and C together can fill an emnpty tank in 4 hours. After 1 hour, C is closed and the tank is filled in 6 more hours. Find the time in which C alone can fill the empty tank?

a)6 b)7 c)8 d)9

ANS:___________

16) There is a 60 litre solution of milk and water in which milk forms 84%. How much water in liters must be added to this solution to make it a solution in which milk forms 64%?

a)22 b)12.65 c)15.36 d)18.75

ANS:___________

17) Sanjay borrowed Rs.14000 at 10% p.a. He repaid Rs.8000 at the end of the 1st year. What amount should he pay at the end of the 2nd year to completely discharge the loan, compound interest being reckoned anually?

a) Rs.8140 b)Rs.7650 c)Rs.8360 d) Rs.7990

ANS:___________

18) In a game of 80 points, A can give B 5 points and C 15 points. Then how many points B can give C in a game of 60?

a)4 b)6 c)8 d)10

ANS:___________

19) Pure Ghee costs Rs. 100 per Kg. After diluting it with vegetable oil costing Rs. 50 per kg, a shopkeeper sells the mixture ratio of Rs. 96 per Kg, thereby making a profit of 20%. In what ratio does he mix the two?

a)1:4 b)3:2 c)2:3 d)4:1

ANS:___________

20) When a producer allows 36% comission on the retail price of his product, he earns a profit of 8.8%. Ehat would be his profit percent if the comission is reduced by 24%?

a)33.33 b)66.66 c)45 d)49.6

ANS:___________

21) The first republic day of India was celebrated on 26th january,1950. It was

a)Tuesday b)wednesday c)Thursday d)Friday

ANS:___________

22) The last day of a centuary cannot be

a)Monday b)Wednesday c)Friday d) Tuesday

ANS:___________

23) A bill falls due in 1 year. The creditor agress to accept immediate payment of the half and to defer the payment of the other half for 2 years. By this arrangement he gains Rs. 40. What is the amount of the bil, if the money be worth is 25/2%?

a) Rs.3600 b)Rs. 4500 c)Rs.5400 d)Rs. 6300

ANS:___________



24) The banker's gain on a certain sum due 3/2 years hence is 3/25of the banker's discount. The rate percent is:

a) 26/5% b)90/9% c)65/9% d) 37/6%

ANS:___________

25) Find the odd one out of the series

1,3,10,21,64,129,356,777

a)10 b)21 c)64 d)356

ANS:___________

26) A garrison of 500 men had provisons for 27 days. After 3 days a reinforcement of 300 men arrived. For how many more days will the remaining food last now?

a)15 b)16 c)35/2 d)18

ANS:___________

27) Rajan got married 8 years ago. His present age is 6/5times his age at the time of his marriage. Rajan sister was 10 years younger to him at the time of his marriage. The ago of Rajan's sister is:

a)32 years b)36 years c)38 years d)40 years

ANS:___________

28) Manvick recieved Rs.6000 as his share out of the total profit of Rs. 9000 which he and Raunaq earned at the end of one year. If Manick invested his amount for the whole year, What was the amount invested by Raunaq?

a)Rs.4000 b)Rs.5000 c)Rs.6000 d)Rs. 10000

ANS:___________



29) Find the least possible number which leaves remainders of 8,16 and 7 when divided by 19, 17 and 8 repectively.

a)319 b)315 c)415 d)407

ANS:___________

30) The fourth and the fifth term of a series s, are 18 and 36 reepectively. S1 is the series formed by taking the differences of adjacent terms of s and s2 is the series formed by taking the difference s of adjacent terms of s1. Each term in S is greater than its previous term and the same is the case for the terms in s1. If each term of s2 is 4, What is the eight term of the series?

a)100 b)108 c)112 d)114

ANS:___________

31)What is the remainder when 3^1000 is divided by 91?

a)3 b)9 c)27 d)81

ANS:___________

32) Find the area of the region bounded by the graph |x-7|+|y-9|=12?

a)288 b) 200 c)100 d)144

ANS:___________

33)The number 27x47y2 is divisible by 72 where x and y are single digit natural numbers. If p=x+y how many possibles values can p aasume

a)2 b)1 c)3 d)4

ANS:___________

34) A trinagular sheet of side 8cm, 6cm and 10cm is rotated along the six centimer side. Find volume (in cc) of the solid formed.

a) 192*(pi) b)104*(pi) c)128*(pi) d)108*(pi)

ANS:___________

35) A circle of radius 3 cm is inscribed in a triangle. If one of the exterior angles of the triangle is 120 and the altitude drawn from one of the vertices is the bisector of the internal angle at that vertex. Find the perimeter (in cm) of the triangle. [root() indicates square root]

a) 18*root(3) b)27*root(3) c)18 d) cannot be determined

ANS:___________

36) How many non-negative roots does the equation 3^y-(2y+1)=0 have?

a) 0 b) 1 c) 2 d) 3

ANS:___________

37) Find the reflection of the point (7,11 ) about the line x+y=0

a)(-11,-7) b) (11,-7) c)(-7,-11) d) none

ANS:___________

38) A coin is biased such that heads occurs as frequenlty as tails. Another coin is biased such that heads occurs 65% of the times. When the two coins are tossed simultaneously what is the probability of btleast one tail turning up.

a) 35% b)87% c)48% d)73%

ANS:___________

39) A four digit number is such that the number 56 is the part of the number. If the number formed by the digits, if any, to the left of 56 is always less than 56, how many such four digit number sare possible.

a)236 b)189 c)216 d)235

ANS:___________



40) In a box there are 90 slips numbered from 1 to 90. Ramu picks up 4 slips at random one after the other without replacement. What is the probability that the numbers on the slips, in the order he picks them up, are in ascending order

a)1/6 b)1/12 c)1/24 d)2/45

ANS:___________

41) Fourteen boys went to collect berries and returned with a total of 80 berries amoung themselves . If every boy collected atleast one berry each, then what is the minimum number of pairs of boys that must have collected the same number of berries.

a)0 b)1 c)2 d)3

ANS:___________

42) What is the least possible value of the expression (x-1)(x-3)(x-4)(x-6)+10, for real values of x

a)1 b)10 c)9 d)10

ANS:___________

43) The people of Koho, an island in the Indian Ocean play a game similar to chess, but on a board that has 8x12 squares instead of 8x8 squares. Find total number of squares of all possible sizes taht are there on the board

a)312 b)298 c)276 d)348

ANS:___________

44) N is an 8 digit number and s(N) denotes the sum of its digits. If N+s(N)=100000000, find the tens digit of N.

a)6 b)4 c)2 d)8

ANS:___________

45) There are 12 distinct balls to be divided into 3 boxes labelled B1, B2 and B3 such that each box contains 4 balls. In how many ways can this be done?

a)12!/((3!)^4) b)12!/(((3!)^4)*4!) c)12!/(((4!)^3)*3!) d)12!/((4!)^3)

ANS:___________




Answers:

3
3
4
4
1
3
1
4
3
3
2
1
2
2
3
4
1
3
2
4
3
4
1
2
4
1
3
2
4
4
4
1
1
3
1
3
1
3
4
3
4
1
4
2
4

Saturday, October 25, 2008

Winners of ITSA October08 Events

Event Name              Winners                         Year


1.Programming&Debugging A Srikanth, 3rd yr
D SivaGanesh Varma 1st Year
2.Technical Quiz(team) A Srikanth, 3rd yr
Vivek 1st Year
3.Aptitude Sujitha 3rd year
4.Sudoku V Sruthi 1st year
5.SIT(team) A Sujitha, 3rd yr
Abhijith, 1st yr
Vivek 1yr
6.TechInterviews Atul Mishra,(first) 3rd yr
Sunanda(first) 3rd yr
7.HowzDat K Manideep 1st Year
8.GD Atul Mishra,(first) 3rd yr
Sujitha (second) 3rd yr
9.Volleyball(team) Aravind,sandeep,Lokesh,
Anwesh,Ramachandulu,Deepak First Years C6Section
10.Singing N Sreenivasa rao(first), 3rd yr
T Hima Sagar(second) 1st yr
K Srividya Deepthi(second) 1st yr



1&2 years Programming and Debugging Paper _October08

1.
void main()
{
int d=5;
printf("%f",d);
}
1)5 2)5.000000 3)no output 4)error
Ans: 3

2.
void main()
{
int i;
for(i=1;i<4;i++)
switch(i)
{
case 1: printf("%d",i);break;
{
case 2:printf("%d",i);break;
case 3:printf("%d",i);break;
}
}
switch(i) case 4:printf("%d",i);
}
1)1 4 2)1 2 3 4 3)1 4 4 4 4)none
Ans: 2

3.
void main()
{
float j;
j=1000*1000;
printf("%f",j);
}
1)100000 2)16960.000000 3)100000.000000 4)error
Ans: 2

4.
void func()
{
int x = 0;
static int y = 0;
y++;
printf( "%d -- %d\n", x, y );
}
int main()
{
func();
func();
return 0;
}
1)0 - -0,0 - - 0 2)error 3)0 - -1.,0 - -2 4)0 - -1,0 - -1
Ans : 3


5.
void main()
{
int a,b=5,c=10;
a = (b-c) > (c-b) ? b : c;
printf(“%d”,a);
}
1)10 2)5 3)-5 4)-10
Ans:1

6.
main()
{int i=4;
fun(i=i/4);
printf("%d", i);
}
fun(int i)
{return i/2;
}
1)1 2)0 3)no output 4)error
Ans: 4

7.
main()
{char str[]="Geneius";
printf("%s",str);
}
print(char *s)
{if(*s)
print(++s);
printf("%c",*s);
}
1)Geneius 2)eneius 3)error 4)garbage value
Ans: 1

8.
main()
{
static int a[]={5,10,15,20};
int * ptr=a;
int ** ptr_ptr=&ptr;
printf("\n %d",**ptr_ptr++);
}
1)5,10 2)10,15 3)error 4)5
Ans: 4

9.
void main()
{
char buffer[10]={"Genesis"};
printf("%d",&buffer[4]-(buffer));
}
a) 3
b) 4
c.)0
d) illegal pointer subtraction
Ans: 4

10.
main()
{
int a[5]={1,3,6,7,0};
int *b;
b=&a[2];
printf("%d", b[-1]);
}
1)error 2)3 3)garbage value 4)6
Ans: 4

11.
#include
char*g()
{
static char x[1024];
return x;
}
main()
{
char*g1="First String";
strcpy(g(),g1);
g1=g();
strcpy(g1,"Second String");
printf("Answer is:%s", g());
}
A) Answer is: First String (B) Answer is: Second String
(C) Run time Error/Core Dump (D) None of these
Ans: 2


12.
func(int i)
{
if(i%2) return 0;
else return 1;
}
main()
{
int i=3;
i=func(i);
i=func(i);
printf("%d",i);
}
(A) 3 (B) 1 (C) 0 (D) 2
Ans:1

13.
main()
{ int a=500,b,c;
if(a>400)
b=300;
c=2--;
printf("\n%d%d",b,c);
}
1)300,1 2)0,0 3)300,2 4)error
Ans: 4

14.
void main(void)
{
int i=100,j=20;
i++=j;
i*=j;
printf("%d\t%d\n",i,j);
}
1)21,420 2)100,20 3)error 4)21,20
Ans:3

15.
main()
{
const int x=5;
int *ptrx;
ptrx=&x;
*ptrx=10;
printf("%d",x);
}
a) 5 b) 10 c) Error d) Garbage value
Ans: 3


16.
main()
{
int n=5;
printf("\nn=%*d",n,n);
}
a) n=5 b) n=5,5 c) n= 5 d) error
Ans: 3

17.
void main()
{
int a=5,b=10;
int &ref1=a,&ref2=b;
ref1=ref2;
++ ref1;
++ ref2;
printf("%d %d",a,b);
}
a)5 and 12
b)Error
c)11 and 11
d)5 10
Ans:3

18.
void main()
{
enum bool{true,false};
if(true==(2==3))
printf("hai");
else
printf("Hello");
}
1)hai 2)Hello 3)no output 4)haiHello
Ans: 1

19.
void main()
{
printf("%d",(float)3/2);
}
1)1.50000 2)0 3)1.5 4)1
Ans: 2



20.
main()
{
char *a="hello";
char *b="bye";
char *c="hai";
int x=10,y=100;
c=(xprintf("%s",c);
}
1)hai 2)bye 3)hello 4)no ouput
Ans: 3


21.
# define MAX(a, b) a>b ? a:b
main()
{
int m, n;
m = 3 + MAX(2, 3);
n = 2 * MAX(3, 2);
printf("m = %d, n = %d\n", m, n)
}
1)m=2,n=3 2)m=3,n=2 3)m=3,n=3 4)m=2,n=2
Ans : 1

22.
main()
{
int n=0;
int i;
i=2;
switch(1)
{
case 0:do{
case 1:n++;
case 2:n++;
}
while(--i>0);
}
printf("\nn==%d",n);
}
1)2 2)3 3)4 4)none
Ans: 3



23.
void main()
{
printf("%d",printf("ABC\\"));
}
(a) ABC\\
(b) 1
(c) ABC\4
(d) ABC\3
Ans:3

24.
int compute(int n)
{
if(n>0)
{
n=compute(n-3)+compute(n-1);
return(n);
}
return(1);
}

void main()
{
printf("%d",compute(5));
}
(a) 6
(b) 9
(c) 12
(d) 13
Ans: 2

25.
void main()
{
int i;
for(i=0;i<3;i++)
{
int i=100;
i--;
printf("%d..",i);
}
}

(a0..1..2..
(b)99..98..97..
(c)100..100..100..
(d)99..99..99..
Ans: 4

26.
void main()
{
int a[]={10,20,30,40,50};
int *p;
p= (int*)((char *)a + sizeof(int));
printf("%d",*p);
}
(a)10
(b)20
(c)30
(d)40
Ans: 2

Technical Quiz Final Paper _October08

Technical Quiz Finals

Rapid fire: Each team will be asked a series of 10 questions which they will have to answer in 1 minute, maximum of 10 questions. (+10)

Buzzer Round: Series of 10 questions will be asked, the team hitting the buzzer first is allowed to answer. (+10,-5)

Find them out: This is also a buzzer round.5 picture slides will be shown one after the other. The team hitting the buzzer first is allowed to answer. (+10,-5)

Tricky programs: This is a1buzzer round.10 tricky programs will be asked. The team hitting the buzzer first is allowed to answer. (+10,-5)

Show Down: In this round each team will be asked to guess the output of 2 programs round wise. Each program should be answered in maximum of 1 min. (+10,-5). Passable round.


Team A Rapid fire:
1) ISP stands for

a) Internet Service Provider
b) Information Services Provider
c) International Services Program
d) Industrial Services program

2) Which of the following can be used for Monitors ?
a) LCD
b) LAN
c) PIN
d) SQL

3) Which of the following can return a value?
a) Function
b) Procedure
c) Both A and B
d) None of the Above

4) Which of the following files are linked to C program?
a) stdin
b) stderr
c) stdout
d) All the Above

5) When malloc is unable to allocate the requested memory, it returns
a) Zero
b) garbage value
c) a null pointer
d) 1

6) list the 4 dynamic memory functions in C++.
Answer: malloc,calloc,realloc,free

7) The interrupt that comes from an I/O device is said to be
a)software interrupt
b)External interrupt
c)Internal Interrupt
d)Priority Interrupt

8) Which of the following reads a single character but does not display the character on screen?
a) getche
b) getch
c) Both A and B
d) None of the Above

9) Which of the following is a national net work ?
a) WAN
b) NICNET
c) WWW
d) HTTP

10) List the extensions of all files during execution of a C source code in order.
Answer: .C .I .ASM .OBJ .EXE


Team B Rapid fire:

1) BIOS stands for
a) Basic Input Output System
b) Base Input Output System
c) Broad Information Output System
d) Basic Information Operating System

2) MICR stands for
a) Magnetic Ink Character Recognition;
b) Magnetic Ink Charter Recognition
c) Magnetic Ink Charter Release;
d) Magnetic Ink Character Release

3) The communication equipment used in the computer is
a) CPU
b) MODEM;
c) Monitor
d) Mouse

4) The difference between the concept of structures and unions in C language is in terms of
a) speed
b) storage
c) Both A and B
d) None of the Above

5) Which of the following are components of command line arguments?
a) argv
b) argc
c) Both A and B
d) None of the Above

6) Mod (%) operator cannot be used on ______
Answer: float

7) ______ tag is an extension to HTML that can enclose any number of JavaScript statements.

Answer: SCRIPT


8) What does the data link layer look for as it sends a frame from one link to another?
a) Host id
b) IP address
c) Domain name
d) Station address

9) The number of memory references required for CPU to execute immediate address instructions:
a) Zero
b) One
c ) Two
d) Three

10) Which of the following denote invalid variable names in C?
a) exforsys
b) float
c) abcd
d) None of the Above


Team C Rapid fire:

1) Choose the odd one
1. Linux
2. Windows NT
3. Sql server
4. Unix

2) What does that acronym VGA stand for?
a) Extended Graphics Adapter
b) Enhanced Graphics Array
c) Video Graphics Array
d) Color Graphics Array

3) One KB equals
a) 1000 Bytes;
b) 1000MB;
c) 1024 bytes;
d) 1024 MB

4) The global variables are also called as
a) Register variables
b) External variables
c) Static variables
d) None of the Above

5) What is the Range of double?
Answer: -1.7e308 to 1.7e308

6) Of the following tree structure, which is, efficient considering space and time complexities?
a) Incomplete Binary Tree
b) Complete Binary Tree
c) Full Binary Tree
d) all the above

7) What is the keyword that is used to handle unhandled conditions in switch-case?
a) after
b) default
c) else
d) all

8) Which of the following is used for International Inter Bank Financial Communications?
a) SWIFT
b) CBS
c) WWW
d) SPNS

9) Which type of inheritace is not available in JAVA?
a) Single
b) Multiple
c) Hybrid
d) Hierarchical

10) Expand USB
Answer: universal serial bus


Team D Rapid fire:

1) LAN means
a) Land Acquisition Notification;
b) Local Area Network;
c) Large Area Network;
d) Low Area Network

2) One MB equals
a) 1000 bytes;
b) 1000GB;
c) 1024 KB;
d) 1024 GB

3) Which of the following not used in the Computers?
a) Key Board
b) Monitor
c) Power (AC/DC)
d) Handle

4) Google was first named as?
Answer: googol

5) In which of the following loop construct the condition is tested after the first iteration?
a) while loop
b) do-while loop
c) Both A and B
d) None of the Above

6) Which of the following operating system was C originally developed?
a) Windows
b) DOS
c) UNIX
d) None of the Above

7) The notation for preprocessor directive is
a) $
b) !
c)@
d) #

8) Which of the following denotes a new line character in C program?
a) n
b) /n
c)t
d) /t

9) Choose the odd one
1.http
2.arp
3.smtp
4.sap
Answer: sap

10) Strict binary tree of n leaves has _______ nodes
Answer: (2n-1)



Buzzer Round
1) Which one the following is a reserved words for windows?
a) Windows
b) Start
c) CON
d) Run

2) Which of the following company does not produce motherboards?
a) Intel
b) MSI
c) GigaByte
d) Microsoft

3) The upcoming version of windows OS is?
a) Vista Extreme
b) Windows 7
c) Windows2009
d) Windows XP9

4) A system file is named as tquiz.dll. What does the extension dll stands for?
a) Direct Linking Loader
b) Dynamic Linking Loader
c) Dynamic Linking Library
d) Direct Linking Library

5) ASCII value for blank space?
a) 30
b) 32
c) 55
d) 145

6) SIM in mobile phones stand for?
a) Subscriber Identity Module
b) SmartCard Integrated Mobile
c) SmartCard Integrated Module
d) Search Indian Mobile

7) Which package is always imported by default in JAVA?
Answer: The java.lang package is always imported by default.

8) Difference Between truncate and delte commands in Oracle?
Answer: Truncate does auto commit.

9) Which Operator in oracle performs pattern matching?
Answer: LIKE operator

10) Tell the syntax of Group by command in oracle?
Answer: SELECT column_name, aggregate_function(column_name) FROM table_name WHERE column_name operator value GROUP BY column_name;



Find them out:
1. Larry Page and Sergy Brin (Founders of Google)
2. Jerry Yang and David Filo (Founders of Yahoo)
3. Ken Thompson (Language B was invented by him)
4. Tim Berners Lee -- Founder of the World Wide Web
5. James Gosling - java inventor



Program1:
main()
{
int i=5;
i=i/++i;
printf("%d",i);
}
Answer: 1

Program 2:
main()
{
int f=15,k;
k= ~f;
printf("%d",k);
}
Answer: -16

Program 3:
main()
{
printf("\nH\nE\nLL\rO");
}

Answer: H
E
OL


Program 4:
main()
{
printf("praveen\rhello");
}

Answer: helloen

Program 5:
void main()

{

char far *p=(char far *)0x55550005;

char far *q=(char far *)0x53332225;

clrscr();

*p=80;

(*p)++;

printf("%d",*q);

getch();

}
Answer:81

Program 6:
#include"stdio.h"

#include"string.h"

void main()

{

char far *p,*q;

clrscr();

printf("%d %d",sizeof(p),sizeof(q));

getch();

}
Answer: 4 2

Program 7:
int a;printf("%d",a=printf("hello")+2);
Answer: hello7

Program 8:
void main()
{
char *str1="powla";
char *str2="er";
clrscr();
printf("%s\b\b%s",str1,str2);
getch();
}
Answer: power

Prog 9:
#define power(a) #a
void main()
{
clrscr();
printf("%d",*power(432));
getch();
}
Answer: 52

Prog 10:
#include
void main()
{
int i=-3,j=2,k=0,m;
m=++i||++j&&++k;
printf("%d%d%d%d",i,j,m,k);
}
Answer: -2 2 1 0

Show Down:

Team A:
void main()
{
char *str;
str="%d\n";
str++;
str++;
printf(str-2,300);
}
Answer: 300

Team B:
#include
#define MAN(x,y)((x)>(y))?(x):(y);
void main()
{
int i=10,j,k;
j=5;
k=0;
k=MAN(++i,j++);
printf("%d%d%d",i,j,k);
}
Answer: 12 6 12


Team C:
#include
void main()
{
printf(5+"good Morning");
}
Answer: Morning

Team D:
#include
void main()
{
int i;
printf("%d",scanf("%d",&i));
}
Input: i=25
Answer: 1

Team A:
#include
#include
void main()
{
char *str1="united";
char *str2="front";
char *str3;
str3=strcat(str1,str2);
printf("\n%s",str3);
}
Answer: error

Team B:
#include
void main()
{
float a=0.7;
if(a<0.7)
printf("c");
else
printf("C++");
}
Answer: C

Team C:
main()
{
char a[4]="HELLO";
printf("%s",a);
}
Answer:
Compiler error: Too many initializers
Explanation:
The array a is of size 4 but the string constant requires 6 bytes to get stored.


Team D:

main()
{
int i=10,j=20;
j = i, j?(i,j)?i:j:j;
printf("%d %d",i,j);
}

Answer: 10 10

Friday, October 24, 2008

Howz Dat Topic for ITSA October08


Explain the background process that occurs in between the time when computer is switched on and till the login screen is displayed.
Maximum of 6 Slides.

Sudoku Champoin_ITSA October08

 Sudoku champion is V Sruthi, IT 1/4 ,C3

TQuiz Final Round Teams_October08


Hi friends these are the members who are qualified for the
techQuiz Final October08 Event.and the
teams for the final round is as follows:

Team 1: k.vivek 1st yr
A.Srikanth 3rd yr

Team 2: A.Vamsi shubash 1st yr
K.gayatri 3rd yr

Team 3: N.Sai Goutham 3rd yr
R.Manikandan 2nd yr

Team 4: Atul mishra 3rd yr
R.Venkata Ramana 3rd yr

Wednesday, October 22, 2008

VolleyBall Schedule for ITSA October08

              22nd OCTOBER


C-1 Versus IT-B(2ND ) Winner:A

1-2 Versus C-4 Winner:B

MIX(C3&C5&2ND )Versus FinalYrs Winner:C


23rd October

3RD Versus Winner:B Winner:Final1

Winner:C Versus Winner:A Winner:Final2



Finals: Winner:Final1 versus Winner:Final2

NOTE:
• KNOCK OUT (ONLY ONE MATCH WILL BE CONDUCTED).
BASING ON THE TIME AND AVAILABILITY WE MAY CHANGE THIS
RULE FOR SEMI-FINALS AND FINALS.
• FIRST MATCH WILL START AT 3:00PM AND
30MIN FOR EACH MATCH EVERYONE SHOULD BE PRESENT BY THAT TIME
IF NOT THE TEAM WILL BE DISCARDED.



TEAMS
C1:
1. Abhijeth
2. Moulikrishna
3. Kishore
4. A.raghubabu
5. K.prudhvi Krishna
6. Sainadh
7. K.manoj
8. Radha madhav
9. K.raviteja

C2:
1. k.harsha
2. acharyulu
3. b.chandrasekhar reddy
4. b.lokesh
5. anvesh
6. ramacharyulu

mixed: (c3&c5&2nd itgu&c2)
1. vinay(c3)
2. anwesh(it-gu)
3. ch.jayanth babu(c5)
4. n.v.hareesh(c5)
5. Deepak(c2)
6. Yashwanth chowdary(c2)

C4:
1. A.suresh
2. e.hemachandra reddy
3. raviteja a.s
4. dhiraj.p
5. k.k.sai
6. k.sumanth
IT-B(2ND YEAR):
1. n.nikhil
2. deepardin
3. anoop
4. saichand
5. m.phaneendra
6. p.phaneendra
4th year:
1. k.rajesh
2. g.sagar
3. m.a.khaliq
4. gautam dev
5. masthan vali
6. ravi kumar.p

Tuesday, October 21, 2008

Schedule For ITSA Events October-08

        Event Name                              Day,Place    

1.Prog&Debug(Prelims&Finals) Friday 12:30-3:00, IT Lab

2. TechQuiz(Prelims) Friday 3:00-4:30, IT Lab

3. TechQuiz(Finals) Saturday 3:30-4:30,RoomNo:509 CV

4. Aptitude(Prelims&Finals) Saturday 1:30-4:00,IT Lab

5. Tech Mock Interviews(for 3rdYrs) Saturday 1:30-3:00, Room 509,510

6. GD Saturday 09:00-12:30 IT Lab1

7. Howz Dat Saturday 09:00-12:00 IT Lab2

8. Situational Intelligence(Prelims) Friday 2:00-3:3:30, Room 510,511

9. Singing Saturday 9:00-11:00,Room 509,510

10. Sudoku(prelims) Friday 12:30-2:00 Room 509,510

11. Sudoku(Finals) Friday 3:30-4:30 Room 509,510

12. VolleyBall Wednesday and Thursday after 3:30

Wednesday, October 15, 2008

List of Events for October-08

Hi friends , here are the various events for the month of October (Event Dates: 24-25th)


1. Programming and Debugging.

2. Aptitude Test

3. Technical Quiz

4. Sudoku

5. Singing

6. Howz Dat? (presentation)

7. Group Discussion

8. Mock Interviews( only for 3rd yrs)

9. Situational Intelligence.

10. Volleyball (Boys) and ThrowBall(Girls).


Note: 1. Registration for all events to be done by Saturday(18th).
2. Give your names to ur respective CR's for registration.
3. Circular to respective classes will be sent soon.