Saturday, August 20, 2011

PRODE qn paper.....nd key :)


INFORMATION TECHNOLOGY STUDENT ASSOCIATION
(ITSA) 2011-12
EVENT: PROGRAMMING AND DEBUGGING 
Duration: 30 mins
N0.of questions: 25

1. In a function that receives variable number of arguments the fixed arguments passed to the
function can be at the end of argument list.
A. True B. False C. Maybe D.none
2. What will be the output of the program (sample.c) given below if it is executed from the
command line (turbo c under DOS)?
cmd> sample Good Morning
/* sample.c */
#include<stdio.h>
int main(int argc, char *argv[])
{
printf("%d %s", argc, argv[1]);
return 0;
}
A. 3 Good B. 2 Good C. Good Morning D. 3 Morning
3.Point out the error in the following program.
#include<stdio.h>
#include<stdarg.h>
int main()
{
void display(char *s, int num1, int num2, ...);
display("Hello", 4, 2, 12.5, 13.5, 14.5, 44.0);
return 0;
}
void display(char *s, int num1, int num2, ...)
{
double c;
char s;
va_list ptr;
va_start(ptr, s);
c = va_arg(ptr, double);
printf("%f", c);
}
}
A. Error: invalid arguments in function display() B. Error: too many parameters
C. Error: in va_start(ptr, s); D. No error
4. What will be the output of the program ?
#include<stdio.h>
#include<string.h>
int main()
{
char str[] = "GITAM\0\ITSA\0";
printf("%s\n", str);
return 0;
}
A. ITSA B . GITAM C . GITAM ITSA D. GITAM \0 ITSA
5. Which header file should be included to use functions like malloc() and calloc()?
A. memory.h B. stdlib.h C. string.h D. dos.h
6. What will be the output of the program ?
#include<stdio.h>
int main()
{
int a=250;
printf("%1d\n", a);
return 0;
}
A. 1250 B. 2 C. 50 D. 250
7. What will be the output of the program ?
#include<stdio.h>
int main()
{
printf("%c\n", ~('C'*-1));
return 0;
}
A) A B) B C) C D) D
8. A long double can be used if range of a double is not enough to accommodate a real number.
A. True B. False C. Maybe D. none
9. What will be the output of the program in Turbo C (under DOS)?
#include<stdio.h>
int main()
{
struct emp
{
char *n;
int age;
};
struct emp e1 = {"Dravid", 23};
struct emp e2 = e1;
strupr(e2.n);
printf("%s\n", e1.n);
return 0;
}
A. Error: Invalid structure assignment B. DRAVID
C. Dravid D. No output
10. When we dynamically allocate memory is there any way to free memory during run time?
A. free() B . malloc() C. calloc() D. cannot
11. What will be the output of the program?
#include<stdio.h>
int main()
{
char far *near *ptr1;
char far *far *ptr2;
char far *huge *ptr3;
printf("%d, %d, %d\n", sizeof(ptr1), sizeof(ptr2), sizeof(ptr3));
return 0;
}
A. 4, 4, 8 B. 4, 4, 4 C. 2, 4, 4 D. 2, 4, 8
12. Which statement is true?
A. Memory is reclaimed by calling Runtime.gc().
B. Objects are not collected if they are accessible from live threads.
C. An OutOfMemory error is only thrown if a single block of memory cannot be found that
…………………………is large enough for a particular requirement.
D. Objects that have finalize() methods always have their finalize() methods called before
…………………………the program ends.
13. Which statement is true?
A. Calling Runtime.gc() will cause eligible objects to be garbage collected.
B. The garbage collector uses a mark and sweep algorithm.
C. If an object can be accessed from a live thread, it can't be garbage collected.
D. If object 1 refers to object 2, then object 2 can't be garbage collected.
14. If the depth of a tree is 3 levels, then what is the Size of the Tree?
A. 4 B. 2 C. 8 D. 6
15. If a lot of elements from a matrix have a value of 0 then the matrix is ?
A. Diagonal matrix B. sparse matrix C. Symmetric matrix D. Euclidian Matrix
16. The complexity of bubble sort in best case?
A. O(n) B. log 2 n C . O(n-1) D. O(n2)
17. Depth First search is based on ----------
A. Linked List B. FIFO C. STACK D. Queue
18. What is the value of the local variable x at the end of main?
int x = 5;
int main(int argc, char** argv)
{
int x = x;
return 0;
}
A. 0 B. 5 C. undefined D. compile Time Error
19. What is the value of y at the end of main?
const int x = 5;
int main(int argc, char** argv)
{ int x[x];
int y = sizeof(x) / sizeof(int);
return 0;
}
A . 0 B. 5 C. 20 D. undefined
20. Which of the following variables can be accessed in foo's function try block handler?
void foo(int x) try
{
int y = 2;
throw 1;
}
catch(int e)
{
}
int main(int argc, char** argv)
{
foo(3);
return 0;}
A. x and y and e B. x and e C. y and e D. e
21. Given the assumptions in the comments, what values is printed for x?
int main(int argc, char** argv)
{
// assume result printed is 4
std::cout << sizeof(int) << std::endl;
int x = 0x1000;
x = x << 32;
std::cout << std::hex << x << std::endl;
return 0;
}
A. 0x00000000 B. 0xFFFFFFFF C. implementation defined D. undefined
22. What value gets printed by the program?
#include <iostream>
int main(int argc, char** argv)
{
int x;
x = 1, 2, 3;
std::cout << x << std::endl;
return 0;
}
A . 1 B. 2 C. 3 D. undefined
23. Which of the following statements are true?
1) Conversion functions of class A convert from
class A into another type
2) Conversion functions of class A are used to
convert from another given type into class A
3) Converting constructors must be callable with
a single argument
A. 1 only B. 2 only C. 2 and 3 D. 1 and 3
24. What is the maximum number of implicitly defined constructors that this struct will have?
struct A
{
A(A& a) { }
A(double d) {}
int val; };
A. 0 B. 1 C. 2 D. undefined
25. If you have an array of characters allocated with new. Which of the following is the best way to
modify the size of the array?
A. Use the realloc function from libc
B. Delete the existing array, then allocate a new array and copy the data from the old array to the
……..new array
C. Allocate a new array, copy the data from old array to the new array and then delete the old array
D . It is not possible to do such an operation in C++


ANSWERS :


1.    b                  11.    c            21.  d
2 .   a                  12.     b          22.  a
3 .    c                  13.     c          23.  d
4.     b                 14.     c          24.  a
5.     b                 15.     b         25.  c
6.     d                 16.    d
7.      b                17.    c
8 .     a                18.    c
9 .     b                19.    b
10     a                20.    b



Monday, August 15, 2011

OPINION POLL

GUYS ur take on cognizance-1 !!!!!!! please give us ur opinion regarding events conducted on 12 th,13 th august so that these will help us in organizing things more efficiently in d next phase --

WARM Regards-
TEAM I.T.S.A

Saturday, August 13, 2011

Winners of COGNIZANCE-1


TEAM I.T.S.A
CONGRATULATESSSS!!!!!... 
all the winners of COGNIZANCE-1 ~~~~~~~~~~~~~~~ :-)


Debate - i TALK :
Winners: 


K.Meghana - 3/4 C3
Abhishek -1/4 c4


Runners:
Keerthana P.S.V.S-1/4 C3
Tahmina Q- 3/4 C2


Cricket Quiz: i kwiz
Winners:


R.Shivatheja-1/4 c4 
Maha Vishno-1/4 c4 

Runners:

Tanoy Majumdar-2/4 c1
Deepak Mishra-2/4 c1 


SIT - iNTEL iNSIDE:


Winners:

R.Ravindra Kumar-2/4 c1
K.Meghana-3/4 c3 
K.Chaitanya-3/4 c4 
Ankit-3/4 c3 


Runners:

Aditi Anand-2/4 c3 
M.Sowmya-3/4 c3 
Tanoy Majumdar-2/4 c2 
G.Karthik Venkata Manikanta-1/4 c3


PRODE: i KODE


Winners:


K.Chaitanya-3/4 c4
M.RaviTeja-2/4 c1


Runners:


K.Meghana-3/4 c3
Deepak Mishra-2/4 c1

Friday, August 12, 2011

ITSA GENERAL BODY DETAILS....

PRESIDENT --- SRINIVASA RAVITHEJA.A
VICE-PRESIDENT --- HARIKA.P

PANEL MEMBERS : 
VIVEK.K
PRATHYUSHA.N
SANDEEP.B
SWATHI.
RAMANA
SNEHA LAXMI
NIRANJAN.P.S.N
SRIDEVI.D

IMPORTANT NOTICE

ALL THE WINNERS PLEASE ASSEMBLE AT ROOM no :316 (ICT BHAVAN) THE GRAND FINALE IS GOING TO BEGIN AT 10 am :):):) please be there on time :):):)CONGRATULATIONS ALL :) 
ALL THE BEST :)

RESULTS OF COGNIZANCE-1(August,2011)


HELLO I.T.S.A members!!!!! CONGRATULATIONS
The following are the WINNERS of the preliminary round that was held on 12th August,2011:

PRODE--  iKODE : 
~~~~~~~~~~~~~~~~~~
 3rd year:

Annapurna –c3
P.Manohar-c4
K.Chaitanya-c4
R.Sureka-c4
K.Meghana-c3

2nd year:

Deepak mishra-c1
Tanoy majumdar-c1
M.Ravi teja-c1
Desuna pal-c1
P.Tejasree-c4

1st year:

S.Tanya
G.Pratyusha
D.Goutham
A.Varun Kumar
G.V.Vineesha


 SIT~~~ iNTEL iNSIDE :
~~~~~~~~~~~~~~~~~~~
 3rd year:

N.Thejaswini-c2
V.Amrit Raj -c1
B.Deepika-c1
P.V.Kruthi-c2
M.Soumya-c3
B.Nikitha-c1
P.Swetha-c4
K.Meghana-c3

2nd year:

Tanoy Majumdar-c2
M.Lokeshwar Reddy-c1
Ashish Behera-c2
Deepak Mishra-c1
Debrina Pal-c1
R.Ravindra Kumar-c1
Aditi Anand-c3
B.Rohit-c2

1st year:

K.Akilesh Varma-c3
G.Karthik Venkata Manikanta-c3
T.Abishek –c4
P.Lakshmi Yashwanth-c4
P.S.V.S.Keerthana-c3
Sangusha Ch-c4
Utsav Sinha-c4
A.Shashank Rahul—c3


Sports Quiz- i kwiz:
~~~~~~~~~~~~~~~
1st year:

K.M.Changappa-c4
Utsavsinha-c4
R.Shivtheja-c4
Maha Vishno-c4
K.S.S.Siddartha-c3
T.Sailesh-c3
N.Sandeep Varma-c3
K.akilesh Varma-c3

2nd year:

Tanoy Majumdar-c1
Deepak Mishra-c1

Group Discussion--- i TALK :
~~~~~~~~~~~~~~~~~~~~~~
3rd year:
 
Rohit -c5
Kanishka-c5
Pratik-c5
Chaitanya-c4
Shashank-c2
Tahmina-c2
Vaibhav.k-c4-
Tejaswini J.S.L
Priyanka Pandey-c1
Thejaswini.N-c2
Meghana-c3
Lalitha Smriti-c2
Nikhita.B-c1
Ankit.G -c3


2nd year:

Srikanth.V-c1
Tanoy Majumdar-c1
Aditi-c3
Vamsi krishna.G-c1

1st year:

Keerthana.P.S.V.S-c3
Alka Singh-c3
Akhilesh-c3
Rajendra Nayak-c4
Utsav Sinha-c4
Abhishek.R-c3
Dileep.V-c3
Bharathi.V.S-c5
Chandini.M-c5
Abhishek-c4
Vinod Kumar-c3
Aravind Gupta-c3

ITSA EVENTS 2011 STARTED

DEAR itsa students,

a good news to all that itsa again started breathing and hope students will enchain their skills for coming placements....all the very best .....---use it and serve it and help yourselves....naveen,faculty&alumni

Tuesday, September 28, 2010

[Update]Prize Distribution ceremony for Sep-2010 ITSA

Hi,I am glad to inform that the ITSA prize distribution function will happen on Wednesday i.e 29/09/2010 at 12:30 in IT Bhavan Seminar Hall (Room No: 308).Prizes will be given over by our placement officer Mr.S.R.Gollapudi and our HOD.
We request all of the prize winners to attend the function by sharp 12:30.
Note: All the prize winners - please check your names in this blog and inform us your full name which is to be written on the certificate/certificates. Please do it ASAP either by commenting to this post or by calling./texting to the below number with all the details:
Venkat: 9703450094

Monday, September 27, 2010

Feedback to ITSA September 2010

Please post your experiences and feedback to ITSA September 2010 here.

Comment to this post with your feedback and we will get back to you with a better ITSA next month.

Sunday, September 19, 2010

[Update]Results for September-2010 events

Programming Contest:
  1. K.Vivek - 3/4 C3
  2. Pratyusha - 3rd year
  3. Lalita Smriti - 2/4 C2
Mock Placements:
  • M.V.Pratusha
  • Jyothsna Pandey
  • K.Manideep
  • K.Sandeep
  • K.Vivek
Situational Intelligence:
Winners :
  • G.N.L.Pavani  - 3/4 C3
  • B.Jagadeesh - 2/4 C5
  • P.Alok - 3/4 C3
 Runners:
  • Sivananada Kaushik - 3/4 C2
  • Smylie Pande - 3/4 C2
  • Srinivasa Ravi Teja - 3/4 C4
Technical Quiz:
 Winners:
  • N.Prayusha - 3/4 C4
  • A.Sneha Lakshmi - 3/4 C3
  • D.Siva Ganesh Varma - 3/4 C3
 Runners:
  • L.Srilekhya - 3/4 C4
  • D.Gopinath - 3/4 C5
  • B.L.V.Prasad - 3/4 C2
  • V.Sravya - 2/4 C5
Overnight Coding:
  • P.S.N.Niranjan - 3rd year


Thank You for making ITSA September 2010 a stupendous success.
The prize distribution will happen most probably on Wednesday i.e 29/09/2010 at 12:30 PM, Seminar Hall  .
Congratulations and All the Best!

Saturday, September 18, 2010

Programming Contest Round1 Results

Here are the results for the programming contest round1.
contact repective students.

Round2 will be on Saturday afternoon. All the best!

Friday, September 17, 2010

Technical Sessions on Saturday

There are some cool technical sessions of level 100 - the basic level on Saturday morning starting at 9:00 and up to 12:45 at Seminar hall ( room no. 308 ).

The Agenda:
  1. Introduction to Ubuntu Linux - 45 min
  2. Introduction to Silverlight programming for Windows Phone - 1hr
  3. Introduction to Windows Azure - 1 hr
  4. Introduction to Web Matrix - develop a simple website - 1 hr
Be there by sharp 9:00 for some cool technical sessions of products yet to be released. See you tomorrow.

Situational Intelligence Round1 results

Here are the results for Situtational Intelligence round1.
contact repective students.


Final round will be conducted on Saturday afternoon.

Mock Placements GD results

All those who are selected for Technical and HR interviews are requested to come in formal dress code and with their resumes. The resume format can be download from the link below:

Click to download the Resume Format document.

Fill in the resume, get it printed and attend the next rounds tomorrow. Here are the results.

NAME SECTION YEAR
M.V.Prathyusha C3 2/4
Monika Singhdev C2 2/4
M.Chandra Shekar C2 3/4
Singh Mukesh C4 3/4
S.Chaitanya C2 3/4
Ashiya Amrin C1 3/4
A.Deepika C5 3/4
Rama Shravani C5 3/4
Pavani C1 3/4
Ankush modi C5 2/4
Jyothsna Pandey C2 3/4
Meghana C3 2/4
K.Sandeep C3 3/4
Ch.Jithin C5 3/4
V.Snehitha C5 3/4
T.Shrikanth C3 3/4
M.Shankar Rao C3 3/4
K.Vivek C3 3/4
L.Manoj C1 2/4
G.S.Sandesh C3 3/4
N.V.Bhargav C3 3/4
Akhil Gupta C3 3/4
Y.Kavya C5 3/4
P.Durga Sowjanya C5 3/4
A.Sneha Laxmi C3 3/4
Alan Joseph C2 3/4
K.Manideep C1 3/4
N.Sandeep C1 3/4
R.Sindoori C2 3/4
Y.Jyothsna C2 3/4
Sridevi C5 3/4

Technical Quiz Round1 results

Overnight Coding

Welcome Programmers!

Here are the problems for Overnight Coding contest for ITSA September 2010. The questions are seperate for 2nd and 3rd years. The questions need concrete logic to solve. So make sure you spend enough time on the logic before attempting to code.
The problems can be downloaded from the PDF file below.



All the Best!

LoDe - Logo Design

Thursday, September 16, 2010

Mock Placements Round1 written Test Results and Solutions

Thank You for your participation in Mock Placements round1. The results are in the made into a PDF file which can be downloaded from the location below. The results are categorized into sections - both for second and third years so that you could easily find out your result. The PDF only contains those who have succesfully crossed the assigned cut-off marks.

Click Here to downoad the results PDF file.

The key for the written test paper with solutions can be downloded from the link below. You could verify your answers with yours by refering to this key.

Click here to download the key to the written test paper with solutions

NOTE for selected candidates: The next round will be Group Discussions which will be conducted at Seminar Hall on Friday at 2:00 PM. All the below selected people are requested to maintain dress code before attending the Group Discussions.
Stay tuned for more updates!

Schedule for ITSA September 2010

Thank You for your participation in ITSA phase 1 events.The events are announced previously in this blog.
The schedule for the events of ITSA on Friday and Saturday are :
Friday
  • Situational Intelligence ( round 1 of 2 ) from 12:30-01:15
  • Technical Quiz ( round 1 of 3 ) from 2:00-02:45
  • Programming Contest ( round 1 of 2 ) from 3:00-04:00
  • Overnight Coding question will be announced at 3:00 PM in this blog. (event is postponed from Thursday to Friday).
Saturday
  • Technical Sessions from 09:00-12:30 
  • Programming Contest ( round 2 of 2 ) from 10:00-12:00
  • Technical Quiz ( round 2 of 3 ) from 10:00-11:00
  • Logo Design from 11:00-12:30 Case Tools Lab.
  • Technical Quiz ( round 3 of 3 ) from 01:00-02:30
  • Situational Intelligence finals ( round 2 of 2 ) from 02:30-04:15
We encourage all of you to participate in these events and make them a grand success.
All the best!

Wednesday, September 15, 2010

Overnight Coding - September 2010

Are you a die hard coder? Do you spend hours before the computer just programming for hours?

If yes, the competition is for you. This special event is a competition testing your algorithmic ability and your programming skills to the max. extent.
The event goes like this:
  1. On Thursday Friday, two problems will be posted on this blog at 4:00 PM. (postponed to friday)
  2. You are required to solve the problems by Friday morning  and submit them to the specified email or to the below mentioned organizers below the deadline.
  3. If you can not completely solve the problems then you may submit the pseudo code algorithm and equal credit will be given to the logic and the efficiency of the approach.
  4. Separate problems will be given for the second and third year students.
Questions will be based on data structures and require basic C/C++/Java programming skills. You may submit the solution in any language and you should be able to explain the solution perfectly. Approach matters!

Contact:
A.Vamsi Subhash (4/4 IT-A): 9912882697
Prakash (4/4 IT-B): 9505355428

All the best and keep waiting.