Monday, December 22, 2008

ITSA DEC08 Winners!!



Sl no Event Name Name of Winner Year & Section Remarks


01 MiYa MiYa D Siva Ganesh Varma 1st Year

02 Crack the Campus FP: SLK Mrudula 3rd Year
SP: Manideep 1st Year
TP: Vamsi Subhash 2nd Year

03 Overni8 Coding D Siva Ganesh Varma 1st year 1st yr Category
Naga Sandeep 2nd Year 2nd yr Category

04 Bplans Gowtham & Srijan 3rd yr &1st year

05 SIT Atul(3), M Sai Ravi Kumar(2),Ravi Teja(1) FP
Raviteja(3) Abhijeth(1)&Amuktha(1) SP

06 Tech Interviews Vamsi Subhash 2nd yr
Siva Ganesh varma 1st yr

07 HowsDat Siva Ganesh 1st Year

08 GD FP: Chaitanya 1st year 1st Prize
SP: Mrudula 3rd Year 2nd Prize

09 Chess Srikanth 1st year Winner
Ramesh 1st year Runner up

10 Singing P Sai Harika 1st Year 1st Prize



Notes:

FP (First Prize); SP (Second prize); TP (Third Prize)
Mock Interview results , to update.
SIT: Request all teams (Finals) not to worry about prizes, as the maximum difference among teams is 1 mark only. Really well done. Keep it up. Am happy to have such a chilling event. Wishes to Sai Kiran (Event coordinator).
Prize winners are requested to attend the ceremony at 1230hrs, IT Lab, CV Raman Building on Wednesday (TENTATIVE PLAN). Guest for prize distribution will be Mr. Gollapudi (Trg & placement Officer).
Number of Prizes will be always directly proportional to number of participants!!

Saturday, December 20, 2008

BPLAN Finals _ ITSA DEC 08

team-2 (N.Sai gowtham , M.Srijan )
team-5( P. Swathi , S.L.K.Mrudhula)
team-6(K.Vivek ,K.Manideep )


Friday, December 19, 2008

Howz Dat Topic___ ITSA DEC 08

explain the background process that happens after you type a web address in Browser?

Thursday, December 18, 2008

ITSA DEC-08 UPDATES

Chess SemiFinals
Following Are The Members In Round Of Four
1.Ramesh (C5)
2.T.Sreekanth (C3)
3.BalaRaju (3/4)
and 4th member will be winner among Ramacharyulu(C2) and
Venkata ramana(2/4)

OVERNIGHT CODIN MODULE IS...

1st Years Problem:

Julia would like to withdraw X € from an ATM. The cash machine will only accept the transaction if X is a multiple of 5, and Julia's account balance is sufficient to perform the withdrawal transaction (including bank charges). Calculate Julia's account balance after an attempted transaction, if you know that for an accepted transaction the bank makes a charge of 0.50 €.


Input
Positive integer 0 < X <= 2000 - the amount of cash which Julia wishes to withdraw.
Nonnegative number 0<= Y <= 2000 with two digits of precision - Julia's initial account balance.

Output
Output the account balance after the attempted transaction, given as a number with two digits of precision.

Example1Input:
30 120.00

Output:
89.50

Example2Input:
300 120.00

Output:
120.00

2nd YearsProblem:

Alice and Bob need to send secret messages to each other and are discussing ways to encode their messages:
Alice: "Let's just use a very simple code: We'll assign 'A' the code word 1, 'B' will be 2, and so on down to 'Z' being assigned 26."
Bob: "That's a stupid code, Alice. Suppose I send you the word 'BEAN' encoded as 25114. You could decode that in many different ways!"
Alice: "Sure you could, but what words would you get? Other than 'BEAN', you'd get 'BEAAD', 'YAAD', 'YAN', 'YKD' and 'BEKD'. I think you would be able to figure out the correct decoding. And why would you send me the word 'BEAN' anyway?"
Bob: "OK, maybe that's a bad example, but I bet you that if you got a string of length 5000 there would be tons of different decodings and with that many you would find at least two different ones that would make sense."
Alice: "How many different decodings?"
Bob: "Jillions!"
For some reason, Alice is still unconvinced by Bob's argument, so she requires a program that will determine how many decodings there can be for a given string using her code.

Input

Input will consist of multiple input sets. Each set will consist of a single line of at most 5000 digits representing a valid encryption (for example, no line will begin with a 0). There will be no spaces between the digits. An input line of '0' will terminate the input and should not be processed.

Output
For each input set, output the number of possible decodings for the input string. All answers will be within the range of a 64 bit signed integer.

Example Input
25114
1111111111
3333333333
0

Example Output
6
89
1
3rd Years Program



You have given 100 text files, some of which contains phone number (10 digits). Write code to create a list of all the files which contain phone numbers only. And also display the file names and phone numbers corresponding to the files in ascending order w.r.t phone numbers.




Input Text Files:

Filename: 1.txt

9949567825

Filename: 2.txt

siddhartha 9949567825

Filename: 3.txt

Abdul

Filename: 4.txt

9885910404 Abdul

Filename: 5.txt

9885910404

Filename: 6.txt

9849474936




Output:

6.txt-9849474936
5.txt-9885910404
1.txt-9949567825
=====================================================================================
Rules and Regulations


1. First Years :

Max. Team Size: 2
Language to be used: Any Language

2. Second Years

Max. Team Size: 2
Language to be used: Any Language

3. Third Years

Max. Team Size: 1
Language to be used: Any Language


TO BE SUBMITTED BEFORE 9:00 AM ,19-12-2008 Files to be Submitted:


1. The Source File
2. The Executable File(.class or .exe)
3. Input and Output Screenshots


zip these files and send to:

events.itsa@gmail.com (or)
events.itsa@yahoo.com

with Subject line ... Overnite Coding Solution: [Year]

and body as: the name of the participants , roll numbers and phone numbers

or in person to

M. Abdul
9985910404

Siddharth Varma
9949567825

will be available in Dept of IT Laboratory.

Tuesday, December 16, 2008

ITSA DEC 08 _ Bplan Event

business plan rules
2 or 3 members can form as team and they need to present a ppt on their plan.

The business plan which you are presenting should be innovative, unique, fresh and unexplored

These are the following basic things which your business plan should cover

1.Executive summary: It’s just a page or two of highlights, but very critical to make the . first impression.

2.company description:Legal establishment, history, start-up plans, etc.

3.market analysis: You need to know your market, customer needs, where they are, . how to reach them, etc.

4.Product or Service: Describe what you’re selling. Focus on customer benefits.


5.Strategy and implementation: Be specific. Include management responsibilities with dates and budget.

6.Management team:Include backgrounds of key members of the team, personnel . . strategy,and details.

7.Financial plan:Include profit and loss, cash flow, balance sheet, break-even analysis,
assumptions, business ratios, etc.

Saturday, December 13, 2008

ITSA_DEC08_Updates

Dear Friends,
The following are the updates of the event

1. CLICK: Restriction to "take photo in campus" has been abolished. Date of capture is compulsory. You need to submit your photo (hardcopy) by 16th Evening by 1630hrs before.

2. BPLAN: Business plans event has been added as 11th event, to explore your management skills.

3. Chess: Prelims will be conducted on 17th & 18th Dec 08. Semis & Fynals on 19th & 20th.

4. Registrations will be closed by 16th evening. CRs to submit list to ITSA committee by 16th 1630 hrs before. 10Rs per event is registration fee and 50rs is max. If you pay 50rs, you can participate in all 11 events. Exceptions can be given to merit & poor students (if any).

5.Watch community for updates. Event topics of HOWZDAT & Overni8 coding will be announced in due course of time.
Call 98 49 47 49 36(Vikash) / 9985 91 04 04(Abdul) for any doubt clarifications.


Enjoy ITSA.
Regards,
ITSA TEAM.

Friday, December 12, 2008

Subscribe to ITSA_SMS_ALERTS

hey friends,

subscribe to this group to receive sms alerts on upcoming ITSA events to be held.....

http://labs.google.co.in/smschannels/subscribe/GITAM_ITSA_ALERTS

Copy and Paste the above link in the Browsers address bar if it is not clickable.... :)

Saturday, December 6, 2008

ITSA December 08- Events Finalised

ITSA Events-Dec08.(Finalised)
List of Events in ITSA December 08:

1. Group Discussions

2. Howz Dat:

3. Situational Intelligence:

4. Crack the Campus: (Contains three sections Verbal(15), Aptitude(15) and Technical (20))

5. Mock Interviews: ( Focusing on Operating Systems , C++ , HR)

6. Overnite Coding: (We will give the module to be coded just a day
before.Participants have to submit their modules by next day morning.)

7. Singing

8. Chess (Only one boy & one girl shall register, from each SECTION. CRs, please decide to send someone from your section, to keep your PRIDE high...:-).... Apply methods to send the best....)

9. MiYa MiYa!!:
( Written exam of Microsoft/Yahoo Standards, based on pure technical knowledge which includes C, C++,DBMS, OS/UNIX, JAVA).

10. CLICK: Best Photo contest. This is may be conducted through ORKUT. You need to send a photo captured by you, in our college.(Any kind of). The photo must be taken recently (Between dates 01/12/08 and 10/12/08) shall have a Date of capture on it. Email, to send will be intimated soon. You need to get a hardcopy of the same, for display & voting , if it is selected for Finals. Finals selection will be done by Faculty.


PLEASE WATCH FOR UPDATES & LATEST NEWS..

Wish you Good Luck.
Have fun and Enjoy ITSA..

Tuesday, November 25, 2008

ITSA DEC08- Presidents message

Guys,
Here, it is time to make road for Dec08.

Dec08 is scheduled on 12th & 13th.
This term is very much interested to all Core team of ITSA (President,VP, Treasurer,Secretaries). Bcos, We need to make it Huge successful event than Sep Inaguaral Edition. Root cause is We need to Show strength of ITSA to Accenture.
We are working hard for this. Raghu(S) is working for T-Shirt release. Abdul(Tre), though he is meant for money, he is technically contributing things , he is also working for root cause management. I need to act up on Overall and Movie making , Presentation works.

Am also well supported by my Classmates, to whom i shall be thankful always.

Dear Juniors, this all we are doing for YOU. Please understand. Because, now you know the market trend. This impact (& of Recovery of losses) will be there for another 2 years, as per NASSCOM reports. Companies may be less in no. for recruitment. Competation will be tough.Last year total 55 companies participated. But now (as on todate), it is only 24. So, You should count for your turn.

I suggest, FEEL ITSA.. Utilise it properly. Pls Make understand our friends. and We(Fynal year students) need to impress you by giving their valuble experiences. We always want to give you. Its up to you recieve it or not. :-)

Another reason is, I want to make a request to Accenture, to be the ANNUAL SPONSERER OF ITSA. Before asking him, i must show statistics, confidence & realistic measures of ITSA. HOPE YOU REALLY UNDERSTAND THESE THINGS,which are unseen.

So, here is a Call for all friends, to make ITSA DEC08, a successful event.

Wish you all the Best

Regards,
Vikash M

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.

Tuesday, September 30, 2008

ITSA_September08_Events










ITSA_September_08_Inaugral_Function










Friday, September 19, 2008

Join ITSA-GITAM Orkut Community

Hey hai friends,
Please Also Join the Orkut Community named ITSA-GITAM. Here is the link for the same
http://www.orkut.co.in/Community.aspx?cmm=54824530

Tuesday, September 16, 2008

ITSA- Programming & Debugging (Question Paper & Solutions)


Dear Juniors,
Below mentioned, is the Question Paper with Answers, of the Event ProDe(:-)!
Please get clarified all your doubts/clarifications!
Event Coordinators:(4/4 IT)
K Rajesh, PV Harsha Vardhan Reddy, JSV Ramya

Wish you Good Luck,
********
Vikash Madduri,
+919849474936
Question Paper:
PROGRAMMING & DEBUGGING
Name: Time: 1hr 30min
Regd no: Section/year:

Debugging:
· Write the output of the following programs. If any errors, write the error.
· Each question carries 1 mark (25x1=25).

1. void main()
{
unsigned int i=1;
signed int j=-1;
if(ij)
printf("greater");
else if(i==j)
printf("equal");
}
Output:

2. void main()
{
char *s[]={ "dharma","hewlett-packard","siemens","ibm"};
char **p;
p=s;
printf("%s\n",++*p);
printf("%s\n",*p++);
printf("%s",++*p);
}
Output:

3. main()
{
int i=0;
for(i=0;i<20;i++)>
Output:
4. char *gxxx() { static char xxx[1024]; return xxx; } main() { char *g="string"; strcpy(gxxx(),g); g = gxxx(); strcpy(g,"oldstring"); printf("The string is : %s",gxxx()); }
Output:
5. main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); }
Output:
6. main() { int x=20,y=35; x = y++ + x++; y = ++y + ++x; printf("%d %d\n",x,y); }
Output:
7. main() { int i; i=1; i=i+2*i++; printf("%d",i); } Output: 8. char *f() { char *s=(char *)malloc(8); strcpy(s,"goodbye"); return s; } main() { char *f(); printf("%c",*f()='A'); }
Output:
9. #define MAX(x,y) (x)>(y)?(x):(y)
main()
{
int i=10;
int j=5;
int k=0;
k=MAX(i++,++j);
printf("%d %d %d ",i,j,k);
}
Output:

10. void main()
{
int const * p=5;
printf("%d",++(*p));
}
Output:

11. main()
{
char s[ ]="man";
int i;
for(i=0;s[ i ];i++)
printf("\n%c%c%c%c",s[i],*(s+i),*(i+s),i[s]);
}
Output:

12. main()
{
float me = 1.1;
double you = 1.1;
if(me==you)
printf("I agree");
else
printf("I disagree");
}
Output:

13. main()
{
int c[ ]={2.8,3.4,4,6.7,5};
int j;
for(j=0;j<5;j++)>
Output:
14. main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++l++; printf("%d %d %d %d %d",i,j,k,l,m); }
Output:
15. main() { printf("%x",-1<<4);>
Output:
16. main() { int c=- -2; printf("c=%d",c); }
Output:
17. #define int char main() { int i=65; printf("sizeof(i)=%d",sizeof(i)); }
Output:
18. main() { int i=10; i=!i>14;
printf("i=%d",i);
}
Output:

19. #define square(x) x*x
main()
{
int i;
i = 64/square(4);
printf("%d",i);
}
Output:

20. #define square(x) x*x
main()
{
char *p="hai friends",*p1;
p1=p;
while(*p!='\0') ++*p++;
printf("%s %s",p,p1);
}
Output:

21. main()
{
int i=400,j=300,z=500;
printf("%d..%d");
}
Output:
22. main()
{
int i=1;
while (i<=5) { printf("%d",i); if (i>2)
goto here;
i++;
}
}
fun()
{
here:
printf("PP");
}
Output:
23. enum {a,b,c};
main()
{
int i=1;
switch(i)
{
case a: printf("GOOD");
break;
case b: printf("BAD");
break;
}
}
Output:
24. main()
{
int i=-1;
for(;i++;printf("%d",i))
printf("%d\n",i);
printf("%d",i);
}
Output:

25. #define f(g,g2) g##g2
main()
{
int var12=100;
printf("%d",f(var,12));
}
Output:

Programming:
· Write small snippets for any two of the following using c or cpp .
· Each program carries 10 marks (2 x 10=20).

1.a) Write a program to swap two variables without using temporary variable and without using arithmetic operators. (6 M)
b) Write a ‘C’ program that do not use the function main () (4M)

2.a)Write a program to print 1 to 100 numbers without using any loops(for,while,do while….) (5 M)
b) write a program to print “ITSA” without using semicolon. (2 M)
c) write a program to print a character on screen without using any functions...
(printf ,puts ,putch ……so on) (3 M)

3)a)#define fun(x,y) x##yvoid main(){int a=3,b=5;clrscr();printf(&a["ya!hellow!how is this?%s\n"],&b["junk/super"]);printf(&a["what%c%c%c %c%c %s\n"],1["this"],2["beauty"],0["tool"],0["is"],3["sensitive"],&b["TASTEIT"]);}
Output with explanation:

b)
int foo(int n){int i;int flag=n>1;for(i=2;flag&&i<=sqrt(n);++i)flag=n%i;return flag;}void main(){int i;clrscr();for(i=1;i<1000;++i)if(foo(i))printf("%d",i);} val="1;if(n">0){if(n%2==1)val*=x;val*=itrocks(x*x,n/2);}return val;}
main(){
itrocks(10,4);
}
Output with explanation:
ANSWERS:
1. Less
2. Harma
harma
ewlett-packard
3. 16, 21
4. The string is: oldstring.
5. garbage value.
6. 57 94
7. 4
8. A
9. 12, 6 ,11
10. Error ( cannot modify a constant object)
11. mmmm
aaaa
nnnn
12. I disagree
13. Error ( L value required)
14. 0 0 1 3 1
15. fff0
16. 2
17. sizeof(i)=1
18. i=0
19. 64
20. ibj!gsjfoet
21. 500.. 300
22. Error( labels have local scope)
23. BAD.
24. 0
01
25. 100

PROGRAMMING
1. #include#includemain(){int a=5, b=6;a=a^b;b=a^b;a=a^b;printf("%d\t %d", a, b);}
(or)
#include
#define deco(g,s,m,h) h##g##m##s
#define begin deco(a,n,i,m)
int begin()
{
printf("hello");
}
2)
a)void (*f[2])(int);
void printnum(int n)
{
printf("%d\t", n);
int i;
i = ++n <= 100; (*f[i])(n); } void done(int n) exit(0); } int main(void) { int n = 1; f[0] = &done; f[1] = &printnum; printnum(n); return 1} b) main() { if(printf("ITSA")){} } c) main() { char far *mem=(char far *)0xb8000000; *mem='A'; } 3) a) hellow! how is this super that is IT b) 2,3,5,7,11,.......(prime numbers between 1 to 1000) c) X^n 10^4=10000 But the output wont be printed

ITSA-September-Prize Winners


Hi Friends,
Here are the results of ITSA Events. Congratulations!!
Hope You Enjoyed the Presentation Ceremony!
I am pretty impressed by your active participation & Huge Support. Please remark your opinions, to make it more glorious!
Events & Prize Winner Details:
3. APTITUDE:
1st Prize: Atul Mishra, 3/4 IT
2nd Prize: S Mrudula,3/4 IT
3rd Prize: A Sujitha,3/4 IT, & A Ravi Shankar 1/4 IT
4.Group Discussion:
1st Prize: M Srijan 1/4 IT
2nd Prize: P Ashwini,1/4 IT
3rd Prize: S Mrudula,3/4 IT, & Vasavi 1/4 IT
5.Paper Presentation:
1st Prize: K Venkata Manideep,1/4 IT
2nd Prize: K Vivek & V Shruthi,1/4 IT
3rd Prize: M Srijan 1/4 IT
6.Mock Interviews:
Panel1 : First- P Bhanu Kiran,3/4 IT
Panel2 : First- Mrudula,3/4 IT
Second- Pooja Belurgikar,1/4 IT
Third- Atul Mishra,3/4 IT
Panel3 : First- G Deepthi,3/4 IT
Second-V Snehitha,1/4 IT
Third-K Suri Mahesh,1/4 IT
Panel4: First-M Srijan,1/4 IT
Second-K Gayatri,3/4 IT
Third-Chhajer Sunanda,3/4 IT
Panel5 : First-A Sujitha ,3/4 IT
Second-A Srikanth,3/4 IT
Third-Shilpa,1/4 IT
Panel6: First-Anamika,1/4 IT
Second-Anusha,3/4 IT
Third-Moumita Dey,3/4 IT

7. Programming & Debugging:
1st Prize: Atul Mishra & Gowtham,3/4 IT
2nd Prize: Srikanth & Dheeraj,3/4 IT
8.Sports Quiz:
1st Prize: M Vinay Kumar,K sandeep, P Teja Swaroop ,3/4 IT
2nd Prize: Srinivas Ravi Teja, PSK Sai Samrat , 1/4 IT and
L Ravi Teja, Lokesh, Kondala Rao,3/4 IT


*********
Regards,
Vikash Madduri
+91 98 49 47 49 36


Saturday, September 13, 2008

ITSA- September Events- Prize Winners (Elecution & Technical Quiz)

Dear Friends,
Congratulations to Winners and Good Luck to Remaining.
I am very happy to announce that, the first session of the year 2008 Schedule was completed successfully today. I am enchanted by huge response from all Engineering year students.
Your enthusiasm in participation was really appreciable !
Best Wishes & Regards for all Final year & 3rd year Event Coordinators.
Lets Carry on our Progress!
+++++++++++++
Vikash Madduri
President,ITSA

Note: Prizes are declared for the following events. Please watch this blogspot, for more updates on remaining events
1. Elocution
1st Prize: Srijan ¼ IT,Sec-C1

2nd Prize: A Sujitha ¾ IT
3rd Prize: D Sreedevi ¼ IT,Sec-C5

2.Technical Quiz
1st Prize: Surendra,Siva Prasad,L Ravi Teja: 3/4 IT Team

2ndPrize: Gayatri,Mrudula,Anusha: 3/4 IT Team

Thursday, September 11, 2008

ITSA- Inaugural Function



Hi,Welcome to all of you!
ITSA is Information Technology Students Association, of Gandhi Institute of Technology, GITAM University.
The inaugural function of ITSA & Logo was held on 10th Septemeber, Mother Teresa Auditorum, Dental College, GITAM University.

A. The following are the dignitaries on the dias:
a. Dr. D PrasadaRao garu, Principle of GIT, GU, as a Chief Guest
b. Dr. M Potha Raju garu, Vice Principle & Dean of Student Affairs of GIT, GU, as a Guest of Honour
c. Dr. Gollapudi SubbaRao Garu, Trg&Placement Officer, GIT,GU, as a Special Invitee
d. Shri M Venkateswara Rao garu, Head of the Department, Information Technology,GIT,GU.
e. Mr. M Vikash, President of ITSA (Student Association, Final year B.Tech IT)
B. The Objectives of ITSA ,are,
(i) To empower all GITAM- IT Students by Conducting Intradepartmental competitions, for improving all types of skills.The following are few categories among:
(a)Communication Skills: Group Discussions & Mock Placements etc
(b)Technical Language Skills: Programming, Debugging, Technical Interviews, Sponataneous Knowledge Contest etc.
(c) Cultural Events: Competitions in various programmes, and games etc
(d) Knowledge Acquaintance Programs: Guest Lectures from other departments/other colleges/Other Knowledge Sources.
(e) Knowledge Sharing Programs: Departmental Annual Festivals, Symposiums,National Conferences, Quiz Programs etc
C. Key Suggestions given by Dignitaries during their Message/Addressing:
1. By Principle Sir: Attendance Requirement, Arrangement of Guest Lectures by Other Source of Knowledge, Suggestions for Improvement of Skills in various fields.
2. By Vice Principle Sir: Upgrading & Improving Industry – Students Relations, Active Role in Student Chapters & Social Service activities
3. By Trg & Placements Officer: Improving Skills in education years, Year wise Competency growth, GD & Communication Skills Improvement for Campus Placements
4. by Head of the Department(IT): To implement all suggestions & build bright students
D. Speech by ITSA President:
“ ITSA basically aims at developing the communication skills of students by providing them stimulating and motivating material which is relevant to daily life. This language should be communicatively effective, socially relevant and useful. Students who are hesitant and shy though they know English cannot interact in an effective manner.
ITSA is a platform which targets this section of students.It brings out from you hidden talents in various or a variety of ways.It makes these shy students active participants. Every student must use this Forum to the maximum extent and in a proper way to develop his / her speaking, reading and writing capabilities.
The most important things which contributed richly to human development are Knowledge inform of languages, communication and technicality . These issues form the basis of our student association.
Apart from basic necessities, one needs to be equipped with habits for good communication skills, as this is what will make them a happy and successful being.In order to develop these skills, one needs to first acknowledge the fact that they need to improve communications skills from time to time because “Change is the only constant thing in life”. In order to improve such skills among students,we will be arranging many activities. Solid technical skills are becoming exceedingly, important and we don’t see that changing any time soon. While computers have become easier to use in many ways, the leading edge is complicated than ever. This complexity scares many people away from developing technical skills. ITSA will be conducting many Seminars, Symposiums, National Conferences and Quizzes, Sports covering day-to-day developments and modern trends in the field of Information Technology. We will try to extend and expand our activities as the situation requires.
I also wish to carry forward this association for many next years, till knowledge reaches its supersaturated state which is a infinite/endless process!”
E. The Committee of ITSA:
1. Shri M Venkateswara Rao Garu, (HOD, IT, GIT,GU)
Students Body:
1. Mr. M Vikash, President, 4/4 B.Tech (IT)
2. Mr. T Anand , Vice-President, M Tech (IT)
3. Mr. V Raghunadha Reddy, Secretary, 4/4, B.Tech(IT)
4. Mr. M Abdul Khaliq, Treasurer, 4/4, B.Tech (IT)
Mr. D Pavan, Treasurer, 3/4, B.Tech (IT)