Monday 7 September 2015

TCS ASPIRE : Java quiz/question and answers latest


# Question 1 of 10 10.0 Points
Among the following options, choose the four options that describe the appropriate default values for array elements of the types indicated? 
1. int -> 0 
2. String -> “null” 
3. Dog -> null 
4. char -> ‘\u0000′ 
5. float -> 0.0f 
6.boolean -> true 
A. 1, 2, 3, 4
B. 2, 4, 5, 6
C. 3, 4, 5, 6
D. 1, 3, 4, 5

Answer Key: D 
[Tips:(1), (3), (4), (5) are the correct statements. (2) is wrong because the default value for a String (and any other object reference) is null, with no quotes.(6)is wrong because the default value for boolean elements is false.] 
# Question 2 of 10 10.0 Points
Which option among the following lists only Java programming language keywords?
A. goto, instanceof, native, finally, default, throws
B. byte, break, assert, switch, include
C. try, virtual, throw, final, volatile, transient
D. strictfp, constant, super, implements, do
E. class, if, void, long, Int, continue

Answer Key: A 
 [Tips: All the words in goto, instanceof, native, finally, default, throws are among the 49 Java keywords. Although goto reserved as a keyword in Java, goto is not used and has no function. class, if, void, long, Int, continue is wrong because the keyword for the primitive int starts with a lowercase i. try, virtual, throw, final, volatile, transient is wrong because “virtual” is a keyword in C++, but not Java. strictfp, constant, super, implements, do is wrong because “constant” is not a keyword. Constants in Java are marked static and final. byte, break, assert, switch, include is wrong because “include” is a keyword in C, but not in Java.]
# Question 3 of 10 10.0 Points
Which of the following options would legally declare, construct, and initialize an array? 
A. int [] myList = {“1″, “2″, “3″};
B. int myList [] = {4, 3, 7};
C. int [] myList = (5, 8, 2);
D. int myList [] [] = {4,9,7,0};

Answer Key: B 
[Tips: The only legal array declaration and assignment statement is
int myList [] = {4, 3, 7}; int [] myList = {“1″, “2″, “3″}; is wrong because it initializes an int array with String literals. int [] myList = (5, 8, 2);is wrong because it use something other than curly braces for the initialization. int myList [] [] = {4,9,7,0}; is wrong because it provides initial values for only one dimension, although the declared array is a two-dimensional array.] 
# Question 4 of 10 10.0 Points
You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective?
 A. private
B. transient
C. public
D. protected

Answer Key: C 
[Tips:Access modifiers dictate which classes, not which instances, may access features. Methods and variables are collectively known as members. Method and variable members are given access control in exactly the same way. private makes a member accessible only from within its own class protected makes a member accessible only to classes in the same package or subclass of the class default access is very similar to protected (make sure you spot the difference) default access makes a member accessible only to classes in the same package. public means that all other classes regardless of the package that they belong to, can access the member (assuming the class itself is visible) final makes it impossible to extend a class, when applied to a method it prevents a method from being overridden in a subclass, when applied to a variable it makes it impossible to reinitialise a variable once it has been initialised abstract declares a method that has not been implemented. transient indicates that a variable is not part of the persistent state of an object. volatile indicates that a thread must reconcile its working copy of the field with the master copy every time it accesses the variable. After examining the above it should be obvious that the access modifier that provides the most restrictions for methods to be accessed from the subclasses of the class from another package is protected. public is also a contender but protected is more restrictive, private would be the answer if the constraint was the “same package” instead of “any package” in other words the subclasses clause in the question eliminates default.]
# Question 5 of 10 10.0 Points
interface Base { boolean m1 (); byte m2(short s); } 
1.interface Base2 implements Base {} 
2.abstract class Class2 extends Base { public boolean m1(){ return true; }} 
3.abstract class Class2 implements Base {} 
4.abstract class Class2 implements Base { public boolean m1(){ return (7 > 4); }} 
5.abstract class Class2 implements Base { protected boolean m1(){ return (5 > 7) }} 
A. 3 and 4
B. 1 and 5
C. 1 and 2
D. 2 and 3

Answer Key: A 
[Tips: 3) is correct because an abstract class doesn’t have to implement any or all of its interface’s methods. (4) is correct because the method is correctly implemented ((7 > 4) is a boolean). (1) is incorrect because interfaces don’t implement anything. (2) is incorrect because classes don’t extend interfaces. (5) is incorrect because interface methods are implicitly public, so the methods being implemented must be public.]
# Question 6 of 10 10.0 Points
Among the 6 options provided below, which three form part of correct array declarations?
1.public int a [ ]
2.static int [ ] a
3.public [ ] int a
4.private int a [3]
5.private int [3] a [ ]
6.public final int [ ] a
A. 2, 4, 5
B. 1, 3, 4
C. 2, 5, 6
D. 1, 2, 6


Answer Key: D 
[Tips: (1), (2) and (6) are valid array declarations. Option (3) is not a correct array declaration. The compiler complains with: illegal start of type. The brackets are in the wrong place. The following would work: public int[ ] a Option (4) is not a correct array declaration. The compiler complains with: ‘]’ expected. A closing bracket is expected in place of the 3. The following works: private int a [] Option (5) is not a correct array declaration. The compiler complains with 2 errors: ‘]’ expected. A closing bracket is expected in place of the 3 and expected A variable name is expected after a[ ] .]
# Question 7 of 10 10.0 Points
Which of the following is/are legal method declarations?
1.protected abstract void m1();
2.static final void m1(){}
3.synchronized public final void m1() {}
4.private native void m1();
A. All of them are legal declarations.
B. 1 and 3
C. 2 and 4
D. 1 only


Answer Key: A
[ Tips: All the given statements are legal declarations.]
# Question 8 of 10 10.0 Points
Which three among the following are valid method signatures in an interface? 
1.private int getArea(); 
2.public float getVol(float x); 
3.public void main(String [] args); 
4.public static void main(String [] args); 
5.boolean setFlag(Boolean [] test); 
A. 3, 4, and 5
B. 2 and 4
C. 1 and 2
D. 2, 3 and 5

Answer Key: D 
[ Tips: (2), (3), and (5). These are all valid interface method signatures. (1), is incorrect because an interface method must be public; if it is not explicitly declared public it will be made public implicitly. (4) is incorrect because interface methods cannot be static.]
# Question 9 of 10 10.0 Points
Which option among the following creates an instance of an array?
A. int[ ] ia = new int[15];
B. int ia[ ] [ ] = { 4, 5, 6 }, { 1,2,3 };
C. char[ ] ca = “Some String”;
D. float fa = new float[20];

Answer Key: A 
[ Tips: int[ ] ia = new int[15]; is correct. It uses correct array declaration and correct array construction. float fa = new float[20]; is incorrect. It generates a compiler error: incompatible types because the array variable declaration is not correct. The array construction expects a reference type, but it is supplied with a primitive type in the declaration. char[ ] ca = “Some String”; is incorrect. It generates a compiler error: incompatible types because a string literal is not assignable to a character type variable. int ia[ ] [ ] = { 4, 5, 6 }, { 1,2,3 }; is wrong, it generates a compiler error expected. The compiler thinks that you are trying to create two arrays because there are two array reinitialize to the right of the equals, whereas your intention was to create a 3 x 3 two-dimensional array.]
# Question 10 of 10 10.0 Points
Which of the following class level (nonlocal) variable declarations will not compile?
 A. volatile int d;
B. private synchronized int e;
C. protected int a;
D. transient int b = 3;

Answer Key: B
[Tips:private synchronized int e; will not compile; the synchronized modifier applies only to methods. protected int a; and transient int b = 3; will compile because protected and transient are legal variable modifiers. volatile int d; will compile because volatile is a proper variable modifier.]

TCS ASPIRE : Know your TCS test 2014

 Question 1 of 10 10.0 Points
When and where was TCS founded?
A. 1968, Mumbai
B. 1954, Mumbai
C. 1968, Jamshedpur
D. 1954, Coimbatore

Answer Key: A
[ Tips: The correct answer is 1968, Mumbai. In 1968, TCS was formed as division of TATA Sons. It started as Tata Computer Center. Its main business was to provide computer services to other group companies. An electrical engineer from the Tata Electric Companies, Fakir Chand Kohli, was brought in as the first General Manager. Soon after, the company was named Tata Consultancy Services.TCS is headquartered in Mumbai, and operates in more than 42 countries and has more than 142 offices across the world.] 
# Question 2 of 10 10.0 Points
To how many industries does TCS provides its consultancy?
A. 12
B. 10
C. 20
D. 15

Answer Key: A
[ Tips: The correct answer is 12. 1) Banking and Financial Services 2) Energy, Resources and Utilities 3) Government 4) Healthcare 5) High-tech 6)Insurance 7)Life Sciences 8)Manufacturing 9)Media and Information services 10) Retail and Consumer products 11) Telecom and 12) Travel, transport and hospitality]
# Question 3 of 10 10.0 Points
What are the values of TCS?
A. Leading Change, Integrity, Responsibility, Excellence, Learning and propelling
B. Leading innovation, Integrity, Respect for the colleagues, Excellence, Mentoring and Sharing
C. Leading innovation, Integrity, Courteous, Certainty, Learning and Sharing Correct
D. Leading Change, Integrity, Respect for individual, Excellence, Learning and Sharing

Answer Key: D
[ Tips: The correct answer is Leading Change, Integrity, Respect for individual, Excellence, Learning and Sharing] 
# Question 4 of 10 10.0 Points
What is the name of the first research center established by TCS?
A. Tata Institute of Social Sciences (TISS)
B. Tata Research Development and Design Center (TRDDC)
C. Tata Institute of Fundamental Research (TIFR)
D. Indian Institute of Science (IISc)

Answer Key: B
[ Tips: The correct answer is Tata Research Development and Design Center (TRDDC)] 
# Question 5 of 10 10.0 Points
What was TCS’s first onsite project?
A. Automating Johannesburg Stock Exchange
B. Burroughs (the first business computer manufacturer)
C. Developing electronic depository, SECOM for SIS SegaInterSettle, Switzerland
D. Institutional Group and Information Company (IGIC)

Answer Key: D
[ Tips: The correct answer is Institutional Group and Information Company (IGIC). The company pioneered the global delivery model for IT services with its first offshore client in 1974. TCS’s first international order came from Burroughs, one of the first business computer manufacturers. TCS was assigned to write code for the Burroughs machines for several US-based clients. This experience also helped TCS bag its first onsite project – the Institutional Group and Information Company (IGIC), a data centre for ten banks, which catered to two million customers in the US, assigned TCS the task of maintaining and upgrading its computer systems.]
# Question 6 of 10 10.0 Points
TCS is ….. largest IT firm in the world?
A. 8th
B. 2nd
C. 4th
D. 6th

Answer Key: A 
# Question 7 of 10 10.0 Points
Who is TCS first General Manager?
A. JRD Tata
B. F.C Kohli
C. Ratan Tata
D. S. Ramadorai

Answer Key: B 

# Question 8 of 10 10.0 Points
TCS provides six major IT services
A. Customer Development, Application Management, Migration and Re-engineering, System Integration, Testing, Performance Engineering
B. Custom Application Development, Application Management, Migration and Re-engineering, Business Management, Testing, Performance Engineering
C. Custom Application Development, Application Management, Migration and Re-engineering, System Integration, Testing, Performance Engineering
D. Customer Development, Application Management, Migration and Re-engineering, Business Management, Testing, Performance Engineering

Answer Key: B 

# Question 9 of 10 10.0 Points
Which model does TCS follow?
A. Global Integrated Delivery Model
B. World Integrated Delivery Model
C. World Network Delivery Model
D. Global Network Delivery Model

Answer Key: D 

# Question 10 of 10 10.0 Points
Tata Consulting Services goes public in India’s private sector’s largest initial public offer in
A. 2006 
B. 1999 
C. 2004 
D. 2002 

Answer Key: C 

TCS ASPIRE | Database management system quiz/question | latest 2014



# Question 1 of 10 10.0 Points
Which of the following options list the steps to convert a table to its second normal form? 
A. All of the above
B. Find and remove fields that are related to the only part of the key.
C. Assign the new table with the key i.e. part of the whole composite key.
D. Group the removed items in the another table.

Answer Key: A

# Question 2 of 10 10.0 Points
In which of the following ways does “TRUNCATE TABLE” differ from “DELETE”?
A. All of the above
B. The number of deleted rows are not returned.
C. Truncate operations are not transaction safe.
D. Truncate operations drop and re-create the table which is much faster than deleting rows. one by one.

Answer Key: A
# Question 3 of 10 10.0 Points
Following tasks can be performed when using the ALTER TABLE
clause:
1.Change the name of the table
2.Change the name of the column
3.Decrease the size of a column if table data exists.
  - True
  - False

Answer Key: False
# Question 4 of 10 10.0 Points
Sometimes tables within particular database become obsolete and ought to be discarded. Which of the following commands would you use for the same? 
A. None of the above
B. REMOVE TABLE < TABLE NAME>
C. DROP TABLE < TABLE NAME >
D. DELETE TABLE < TABLE NAME >

Answer Key: C
# Question 5 of 10 10.0 Points
A foreign key must have a corresponding primary key or unique key value in the master table. 
- True
- False

Answer Key: True
# Question 6 of 10 10.0 Points
NULL value is equivalent to a value of Zero if the data type is number 
- True
- False

Answer Key: False
# Question 7 of 10 10.0 Points
Integrity constraint can be dropped if the rule that it enforces is not longer TRUE or if the constraint is no longer needed.
- True
- False

Answer Key: True
# Question 8 of 10 10.0 Points
SELECT TRIM(‘ Hansel ‘ ) “Trim both sides” FROM DUAL What would be the output of the above command?
A. None of the above
B. Trim both sides
C. Hansel
D. Trim both sides Hansel

Answer Key: D
# Question 9 of 10 10.0 Points
What would be the output of following command. SELECT TRANSLATE(’1sct523′,’123′, ’7a9′) “Change” FROM DUAL; 
A. 7sct 5a9
B. None of the above
C. 7 sct
D. Change 7 sct 5a9

Answer Key: D
# Question 10 of 10 10.0 Points
What is joining a Table to itself called?
A. Self Join
B. Outer join
C. Left inner join
D. Inner join

Answer Key: A



Sunday 30 August 2015

Document list for TCS Joinees !!!!

TCS ASPIRE 2015 :- All chapter pdf files

TCS Aspire-2015
all Chapter pdf Files
download from below link.











CLICK BELOW LINK

TCS aspire RDBMS screen shots!!!!!

Hello friends i am aliester !!!
I want to share the screen shots of  RDBMS to you guys!!!!
Please click the below link!! and download the screen shots!!!
And go on to the leader board!!!


and don't forget to share this!!!


sample:-






CLICK THE BELOW LINK





TCS aspire Python screen shots!!!!!

Hello friends i am aliester !!!
I want to share the screen shots of Python to you guys!!!!
Please click the below link!! and download the screen shots!!!
And go on to the leader board!!!


and don't forget to share this!!!


sample:-





CLICK BELOW LINK