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)