Showing posts with label tcs Question. Show all posts
Showing posts with label tcs Question. Show all posts

J2EE Interview questions and answers

2 comments Posted by Unknown at 18:32

PART-I

1. What is J2EE?

J2EE is an environment for developing and deploying enterprise applications. The J2EE platform consists of a set of services, application programming interfaces (APIs), and protocols that provide the functionality for developing multitiered, web-based applications.

2. What is the J2EE module?

A J2EE module consists of one or more J2EE components for the same container type and one component deployment descriptor of that type.
Read More »

Tcs c++ Apptiude questions and Answers

0 comments Posted by Unknown at 02:09
Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived object, calling of that virtual method will result in which method being called? 
a. Base method
b. Derived method..

Ans. b

For the following C program

#define AREA(x)(3.14*x*x)

main()

{float r1=6.25,r2=2.5,a;
a=AREA(r1);
printf("\n Area of the circle is %f", a);
a=AREA(r2);
printf("\n Area of the circle is %f", a);
}
Read More »

Advanced c++ Questions And Answers

4 comments Posted by Unknown at 02:08

What is encapsulation??
Containing and hiding information about an object, such as internal data structures and code. Encapsulation isolates the internal complexity of an object's operation from the rest of the application. For example, a client component asking for net revenue from a business object need not know the data's origin.
What is inheritance?
Inheritance allows one class to reuse the state and behavior of another class. The derived class inherits the properties and method implementations of the base class and extends it by overriding methods and adding additional properties and methods.
Read More »

TCS c datastructure questions

2 comments Posted by Unknown at 02:05
TCS c datastructure interview Questions questions
1)How do you write a function that can reverse a linked-list?
void reverselist(void)
{
if(head==0)
return;
if(head->next==0)
return;
if(head->next==tail)
{
head->next = 0;
tail->next = head;
}
else
{
node* pre = head;
node* cur = head->next;
node* curnext = cur->next;
head->next = 0;
cur-> next = head;

for(; curnext!=0; )
{
cur->next = pre;
pre = cur;
cur = curnext;
curnext = curnext->next;
}

curnext->next = cur;
}
}

Read More »

Technical interview questions -c++

1 comments Posted by Unknown at 01:58
Technical interview questions -c++
What is a class? 
What is an object?
What is the difference between an object and a class?
What is the difference between class and structure?
What is public, protected, private?
What are virtual functions?
What is friend function?
What is a scope resolution operator?
What do you mean by inheritance?
What is abstraction?
Read More »

Latest C Interview questions

0 comments Posted by Unknown at 18:14
Here are the important Latest – New – Recent Reasoning, aptitude questions and C / C++ language programs (to find errors / output) for TCS Placement Paper:
TCS Placement Test Paper Questions:
1. fn(int n,int p,int r)
{
static int a=p;
switch(n);
{
case4: a+ = a*r;
case3: a+ = a*r;
case2: a+ = a*r;
case1: a+ = a*r;
}
}
The aboue programme calculates
a.Compound interest for 1 to 4 years
b.Amount of Compound interest for 4 years
c.Simple interest for 1 year
d.Simple interest for 4 year
Read More »

TCS C Questions

0 comments Posted by Unknown at 18:05
TCS C  Questions
1. Difference between "C structure" and "C++ structure".
2. Diffrence between a "assignment operator" and a "copy constructor"
3. What is the difference between "overloading" and "overridding"?
4. Explain the need for "Virtual Destructor".
5. Can we have "Virtual Constructors"?
6. What are the different types of polymorphism?

Read More »

C language Basic Questions and Answers

0 comments Posted by Unknown at 18:58

 What is C language?



Answers : The C programming language is a standardized programming language developed in the early 1970s by Ken Thompson and Dennis Ritchie for use on the UNIX operating system. It has since spread to many other operating systems, and is one of the most widely used programming languages. C is prized for its efficiency, and is the most popular programming language for writing system software, though it is also used for writing applications.

Read More »

TCS interview questions Technical-DS

0 comments Posted by Unknown at 18:53

Data Structure Interview Questions

What is a data structure? 


What does abstract data type means? 



Evaluate the following prefix expression " ++ 26 + - 1324" (Similar types can be asked) 

Convert the following infix expression to post fix notation ((a+2)*(b+4)) -1 (Similar types can be asked) 



How is it possible to insert different type of elements in stack? 



Stack can be described as a pointer. Explain. 



Write a Binary Search program 



Write programs for Bubble Sort, Quick sort 



Explain about the types of linked lists
Read More »

Technical interview questions in c

0 comments Posted by Unknown at 18:51
  • What does static variable mean? 
  • What is a pointer? 
  • What is a structure? 
  • What are the differences between structures and arrays? 
  • In header files whether functions are declared or defined? 
  • What are the differences between malloc() and calloc()? 
  • What are macros? what are its advantages and disadvantages? 
  • Difference between pass by reference and pass by value? 
  • What is static identifier? 
  • Where are the auto variables stored? 
Read More »
 

© 2011. All Rights Reserved | Interview Questions | Template by Blogger Widgets

Home | About | Top