Tcs Ilp Java Assignment 1 Answer


Question 1Search for a name

Write a program to accept an array of names and a name and check whether thename is present in the array. Return the count of occurrence. Use the followingarray as input

{“Dave”, “Ann”, “George”, “Sam”, “Ted”, “Gag”, “Saj”, “Agati”, “Mary”, “Sam”,

“Ayan”, “Dev”, “Kity”, “Meery”, “Smith”, “Johnson”, “Bill”, “Williams”, “Jones”,

“Brown”, “Davis”, “Miller”, “Wilson”, “Moore”, “Taylor, “Anderson”, “Thomas”,


import java.util.*;import*;class name_search //class to search the names in the given input{String[] input;//string array to store the inputint length=0;public void ArrayBub(int MAX)//method to define the size of array{input = new String[MAX];}public void insert(String s)//method to insert the string into the array{input[length]=s;length++;}public int search(String key)//method to search the name based on the key provided{int i=0;int count=0;for(i=0;i<length;i++){if(input[i].equals(key))count++;}return count;}public void display()//method to display the contents of array{int i;System.out.println();System.out.println("The input names are:");System.out.println();

Once again, DO NOT FREAK OUT if your friends have received some biggie ASPIRE mail and you haven’t!

As you’ll know, Aspire is TCS’ s Pre-ILP Engagement Program! You will receive a mail right before you get your ILP  joining date, mentioning the credentials for logging into the Aspire portal. The PAT test that you’ll be appearing for, right after joining (2nd or 3rd day), is based on the topics here. Well, it’s as boring as it sounds!! More than studying, what’s most annoying is that you have to submit subject-wise feedback every week, upload your assignments and take quizzes frequently! I bet your reaction will also be 😡       hehe!! 😀

NOTE:ASPIRE login credentials will already be given in the first page of your joining letter! If you haven’t received the ASPIRE mail even after a week of receiving your Joining Letter or can’t access ASPIRE, write an e-mail to, with the subject line as “ASPIRE- Pre-ILP Engagement E-Mail Not Received”. Also mention your Name, CT Reference Number, ILP Joining Date, ILP Location and Contact Number in the body of the e-mail.


Coming to the serious stuff, if you are not from CSE/IT/IS stream, you’ll have to go through the concepts rigorously. Trust me, it’ll be your advantage! This little homework for a few months will help you grasp a lot more than people who don’t take Aspire seriously!


The stuff you’ll find in Aspire are:

1 ) Know your TCS

2 ) Basics of Programming

3 ) Web Technology (they’ll give PHP, but study JavaScript, Servlet Programming, JDBC and JSP first)

4 ) Communication

5 ) Unix

6 ) Database Concepts ( and SQL)

7 ) JAVA Basics

8 ) Software Engineering


If you are serious about joining TCS, open your books to get a hold of the aforementioned subjects or better, join some JAVA/ DOT NET/C++ course or tuitions and you’ll be ready for ILP in no time! 

You’ll be provided with all the materials…more than you can study 🙄 so don’t worry about them! Just make sure you maintain your record by checking into Aspire regularly, submitting feedback, assignments and taking the quizzes! 🙂

You can also visit and study from TCS’ own learning site at:

Your best friend for learning Web Technology:

Or you’ll get a mail from Aspire, stating that your performance is not up to the standard! 😯





Please download all three documents and see which one suits your requirement, as quizzes can be different!

ASPIRE QUIZZES WITH ANSWERS 2011 (Click to Download!)

ASPIRE QUIZZES AND ANSWERS 2012 (Click to Download!)




  • Fundamentals of Database Management Systems- 3rd Edition (Elmasri-Navathe). Download the book!


UNIX: (The materials given are also useful if you get UNIX stream in ILP) :

  • UNIX ASSIGNMENT (latest assignment is in Aspire quizzes and answers 2012 document above!)
  • Teach Yourself Shell Programming for UNIX in 24 Hours– Download the book! (REQUIRED FOR ILP UNIX STREAM )





  • Learn JSP and Servlets- Download Head First Servlets and JSP (Great for Beginners, especially if you get JAVA stream in ILP. Even better if you can buy the book or get it from a library!)



You just need a basic understanding of the different software life cycles and their steps  to know how projects work! You don’t have to cram and learn everything by heart!



  • JDK- Download it! (Please choose the JDK according to your Operating System. This is required for compiling and running JAVA code.)
  • Eclipse IDE- Download! (You can write and run JAVA programs as well as develop a JAVA-based web application 😉 )
  • Apache Tomcat 7- Download! (Server for deploying the web application)

Please let me know if I missed anything and please mention if any link is not working! 😯



Like this:


0 Replies to “Tcs Ilp Java Assignment 1 Answer”

Lascia un Commento

L'indirizzo email non verrà pubblicato. I campi obbligatori sono contrassegnati *