Tuesday, February 18, 2014

ACCENTURE Interview Questions- Aptitude


ACCENTURE Interview Questions- Aptitude





1. Some guy holding a glass of wine in his hand looking around in the room says, "This is same as it was four years ago, how old are your two kids now?" Other guy says "Three now, Pam had one more in the meanwhile." Pam says, "If you multiply their ages, answer is 96 and if you add the ages of first two kids, addition is same as our house number." The first guy says, "You are very smart but that doesn't tell me their ages." Pam says, "It's very simple, just think." What are the ages of three kids?

2. My rack contains 8 Red colour ties, 13 violate colour ties,10 Blue colour ties, 5 Pink colour ties, 4 green colour ties. If electricity gone and i want at least two ties of same colour then how many ties i should take out from my rack?

3. Two trains leaving from two station 50 miles away from each other with costant speed of 60 miles per hour, approaches towards each other on diffrent tracks. if lenght of each train is 1/6 mile. when they meet How much time they need to pass each other totally?

4. A man walks east and turns right and then from there to his left and then 45degrees to his right. In which direction did he go

5. A man shows his friend a woman sitting in a park and says that she the daughter of my grandmother's only son. What is the relation between the two

6. Water is continuously poured from a reservoir to a locality at the steady rate of 10,000 liters per hour. When delivery exceeds demand the excess water is stored in a tank. If the demand for 8 consecutive three-hour periods is 10000,10000,45000,25000,40000,15000,60000 and 35000 liters respectively, what will be the minimum capacity required of the water tank (in 1000 litres) to meet the demand?

7. If 5 tomatoes are worth 8 oranges,5 oranges are worth 4 apples, 7 apples are worth 3 pineapples and 7 pineapples cost rs.203,then he approx price of each tomato is


8. The radius of the circle is reduced from 5cm to 4cm then the % change of area

9. Two workers can type two pages in two minuets then how many persons can type 18 pages in 6 minuets

10. X is min of { n+5,6-n} then what is the min of X if,0 <1?

11. The ratio between the radius and height of a cone is 3:4. What is the curved surface area of the cone?

12. A man stands on the top of a pole and makes an angle of 60° on the surface of a ground. He slides 20 m down and makes an angle of 30°at the same point. If he takes 10 seconds to reach the ground from here, find his speed.

13. The compound interest for first and second years is 200 and 220 on a certain amount. Find the sum.

14. Marked price of a commodity is 35% above the cost price. If he gives a discount of 15%, how much he gains on the deal.

15. 5 mangoes + 4 oranges = 7 mangoes + 1 orange. Find the ratio of mango to orange.

16. Length of a rectangle is increased by 50% and breadth is decreased by 25% what is the difference in the area

17. Mr X position in a class is 13th from first and 17th from last, and 8th from the first and 13th from last in passed candidates list, then how many candidates failed in the exam

18. Two successive discounts of 20% and 15% is equal to a net discount of .....

19. A two digit number is 4 times to its sum of digits , when 9 is added to the number, the digits will get reversed. Then what is that number?

20. A person sold an item at a profit of 12% .If he sold it at a loss of 12% then he would get Rs.6/- less. What is the cost price?

21. Avg age of X number of adults in a class is 30yrs. If 12 new adults with avg age of 32 joined with them then the avg age increases by one. Find X?

22. Find the approximate value of the following equation. 6.23% of 258.43 - ? + 3.11% of 127 = 13.87

23. A train overtakes 2 persons walking at 3 km/hr and 5 km/hr respectively in the same direction and completely passes them in 8 seconds and 10 seconds respectively. Find the speed of the train.

24. The ratio between the radius and height of a cone is 3:4. What is the curved surface area of the cone?

25. In a business P and Q invested amounts in the ratio 3:4, whereas the ratio between amounts invested by P and R was 6:7. If Rs 106501.50 was their profit, how much amount did Q receive?

26. After 10 years A will be twice the age of B before 10 years.and now if the difference is 9 years between them then what is the age of B after 10 years

27. In the year 1990 there are 5000 men 3000 women 2000 boys .in 1994 men are increased by 20% women are increased by ratio of boys and women (this type of question but some what difficult I mean it takes too much time to solve)

28. The equivalent compound ratio of 5:6::7:10::6:5 ( question of this type this is not exact question).

29. Work can be done by 8 men and 10 women in 25 days, the same work can be done by 10 children and 5 women . in how many days 2 children and 3 men (similar to this)

30. A shopkeeper labels the price of article 15% above the cost price. If he allow Rs 51.20 discount on an article of Rs 1024, find his profit percent.

31. Work can be done by 8 men and 10 women in 25 days, the same work can be done by 10 children and 5 women . in how many days 2 children and 3 men (similar to this)

32. One man or two women or three boys can do a work in 44 days then one man, one women and one boy together can fininsh the same work in ---- days

33. A man stands on the top of a pole and makes an angle of 60° on the surface of a ground. He slides 20 m down and makes an angle of 30°at the same point. If he takes 10 seconds to reach the ground from here, find his speed.

34. If 2x+y = 11, 2y+z = 12 and z+2x = 8, find the value of 2x + 3y +4z.

35. A can do a piece of work in 36 days, B in 54 days and C in 72 days. All of them began together but A left 8 days and B left 12 days before the completion of the work. How many days in all did C put in till the entire work was finished?

36. A person travels through 5 cities - A, B, C, D, E. Cities E is 2 km west of D. D is 3 km north-east of A. C is 5km north of B and 4 km west of A. If this person visits these cities in the sequence B - C - A - E - D, what is the effective distance between cities B and D?

37. The horizontal distance of a kite from the boy flying it is 30 m and 50 m of cord is out from the roll. If the wind moves the kite horizontally at the rate of 5 km per hour directly away from the boy, how fast is the cord being released?

38. Two liquids A and B are in the ratio 5 : 1 in container 1 and in container 2, they are in the ratio 1 : 3. In what ratio should the contents of the two containers be mixed so as to obtain a mixture of A and B in the ratio 1 : 1?

39. A closed wooden box of thickness 0.5 cm and length 21 cm, width 11 cm, and height 6 cm, is panted on the inside. The cost of painting is Rs 70. What is the rate of painting in rupees per sq. cm?

40. If a number 774958A96B is to be divisible by 8 and 9, the values of A and B, respectively, will be:

41. The price of a Maruti car rises by 30% while the sales of the car came down by 20%. What is the percent change in the total revenue?

42. A man travels three-fifths of distance AB at a speed of 3a, and the remaining at a speed of 2b. If he goes from B to A and back at a speed of 5c in the same time, then:

43. A cube of side 12 cm is painted red on all the faces and then cut into smaller cubes, each of side 3 cm. What is the total number of smaller cubes having none of their faces painted?

44. I bought 5 pens, 7 pencils and 4 erasers. Rajan bought 6 pens, 8 erasers and 14 pencils for an amount which was half more than what I had paid. What percent of the total amount paid by me was paid for the pens?

45. A man has nine friends, four boys and five girls. In how many ways can he invite them, if there have to be exactly three girls in the invitees?

46. In a watch, the minute hand crosses the hour hand for the third time exactly after every 3 hrs 18 min 15 seconds of watch time. What is the time gained or lost by this watch in one day?

47. Two trains, 200 and 160 meters long take a minute to cross each other while traveling in the same direction and take only 10 seconds when they cross in opposite directions. What are the speeds at which the trains are traveling?

48. A, B and C can do a work in 5 days, 10 days and 15 days respectively. They started together to do the work but after 2 days A and B left. C did the remaining work (in days)

49. A, B and C can do a work in 5 days, 10 days and 15 days respectively. They started together to do the work but after 2 days A and B left. C did the remaining work (in days)

50. A can complete a project in 20 days and B can complete the same project in 30 days. If A and B start working on the project together and A quits 10 days before the project is completed, in how many days will the project be completed?

51. A can complete a project in 20 days and B can complete the same project in 30 days. If A and B start working on the project together and A quits 10 days before the project is completed, in how many days will the project be completed?

52. f log 2 = 0. 3010, then find how many digits are contained in the number 256.

53. After a discount of 11.11%, a trader still makes a gain of 14.28%. At how many percent above the cost price does he mark his goods?

54. The average marks of a student in ten papers are 80. If the highest and the lowest scores are not considered, the average is 81. If his highest score is 92, find the lowest.

55. The sum of the areas of two circles which touch each other externally is 153?. If the sum of their radii is 15, find the ratio of the larger to the smaller radius.

56. A student gets an aggregate of 60% marks in five subjects in the ratio 10 : 9 : 8 : 7 : 6. If the passing marks are 50% of the maximum marks and each subjects has the same maximum marks, in how many subjects did he pass the exam?


57. A student gets an aggregate of 60% marks in five subjects in the ratio 10 : 9 : 8 : 7 : 6. If the passing marks are 50% of the maximum marks and each subjects has the same maximum marks, in how many subjects did he pass the exam?



                                                      --- Seed Infotech Ltd, Bangalore

Monday, February 17, 2014

C# -- Introduction to .NET Framework

C# - Chapter - 2

Introduction to .NET Framework

.NET Framework :-
  • .NET Framework is a platform introduced by Microsoft to develop, host, deploy, maintain and execute applications.
  • Applications can be

  1. Console based
  2. Windows based
  3. Web based
  4. Data Centric
  5. Components
  6. Web Services and so on
.NET framework is an entirely new environment for building internet-aware applications with a simplified deployment model. Different types of applications like Web Based, Windows based, data centric, Very rich GUI applications using Windows Presentation Foundation(WPF), web services and so on can be created. Moreover, these applications can be executed on any platform.

Microsoft Provides a platform or an environment to develop, host, deploy, maintain and execute applications. This environment or Platform is called .NET framework. Application can be of any type console based, window based, web based, data centric , components or a web service that can be used by any other application in a language neutral and platform independent manner.

.NET framework is a completely new model for building applications on windows family of operating systems as well as non-Microsoft Operating systems such as Mac OS and Linux/Unix.


Components of .NET Framework :-



.NET Framework consists of different components. Each component provides specific functionality.
.NET compatibility languages :-
  • A Language is required to create any application. Using .NET, applications can be developed using languages such as C#, VB.NET, J#, and so on. More than 25 languages are supported by .NET Framework.
Common Language Runtime(CLR) :- 
  • As mentioned earlier, different types of applications can be created using .NET framework. These applications need to be executed on any device. One of the main components of .NET - Common Language Runtime(CLR) executes the applications. So, CLR is known also Known as the execution engine or heart of .NET framework.
Framework Class Library(FCL):- 
  • An application uses services in the form of components from other sources or functionality from a library. Another important components of .NET is framework class library(FCL). It also consists of classes that all applications can use to develop user interface, web pages or access  database. It also contains core classes which provide basic functionality like I/O, Security, Collections, XML support , multithreading etc.
Common Language Specification(CLS) :-
  • The .NET Languages have to follow some rules. These rules are defined in Common Language Specification(CLS). If the language compilers follow these rules, the language are .NET compatible languages and their compilers are called as CLS-compliant compilers. Using CLS, third party language developers can design / redesign their language syntax as per .NET framework requirement.
Common Type System(CTS) :-
  • As all the languages follow the same set of rules, code written in one language can be used by the code written in another language. This is Possible because of Common Type System (CTS). It defines common data types so that the code becomes interoperable.
  • Applications can be created by using some IDE(Integrated Development Environment). This is not a part of Framework.
Microsoft Visual Studio.NET :-
  • .NET applications can be easily created using Visual Studio integrated Developer Enviroment(IDE) tool. Visual Studio.NET provides in built application templates and tools for building .NET applications rapidly.



This is Just a Part of Chapter 2 Introduction to .NET framework, in next post i will update about remaining things in this chapter.

                                                                --- Seed Infotech Ltd, Bangalore.

Object Oriented Programming Concepts

Object Oriented Programming Concepts


Object :-
             
What is Object ?
  • Simply, An Object is an entity which has a well defined structure and behaviour.
  • An object possesses certain characteristics as:
  1. State
  2. Behavior
  3. Identity
  4. Responsibility
--> Everything in this world is an object, from a nail to hammer, from a bus to Air-plane. From human perspective, an object is a tangible or visible thing or something that exists in time and space.

Object Can be defined as:
"An object represents an individual, Identifiable item, unit or entity, either real or abstract, with a well-defined role in the problem domain i.e., object has Identity, state, Behavior, and Responsibility."
Example: A car, a person, etc are different objects.

1.State of an Object :-

  • The State of an Object includes the current values of all its attributes.
  • An Attribute can be static or dynamic
For example, Employee Attributes
                       1.empID 
                       2.name
                       3.gender
above three attributes are Static Attributes.
                       4.age
                       5.address
                       6.phone
                       7.basicsal
                       8.education
                       9.experience
remaining these and all are Dynamic Attributes of an Employee .

2. Behavior of an Object :-
  • Behavior is how an object acts and reacts, in terms of its state changes and message passing.
  • Behavior of an object corresponds to its functions. The change in state of an Object reflects in its behavior.

For example, "calculate salary" and ''Print Details " are the behaviors of the employee. There can be other behaviors too. They can either help to retrieve the information or change the state of the attributes.

3. Identity of an Object :-

  • Identity is that property of an object which distinguishes it from all other objects.
  • A single or a group of attributes can be identify of an object.
  • Every object existing in this world can be distinguished from the other. In other words, every object has its own identity.
4. Responsibility of an Object :-
  • Responsibility of an object is the role it serves within the system. 


Some Important Points to remember about OBJECT

  • Every Object has a state, behavior, responsibility, and unique identity.
  • A system comprises of multiple objects existing together in a meaningful interaction.
  • This meaningful interaction in the given system decides the responsibility of that object in that system.
  • The Responsibility of an object decides the behavior of that object.
  • The behavior of an object is governed by the change in state of that object.
  • For changing the state of particular object, it is essential to identify it separately from all the other objects.


    This is about OBJECT in C# -- Object Oriented Programming Concepts

                                                                         --- Seed Infotech Ltd, Bangalore



Sunday, February 2, 2014

Polymorphism - Programming Code

Simple Programming Codes 

Polymorphism - Programming Code :-


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace polymorphism
{
    class Employee
    {
        public string FirstName = "FN";
        public string LastName = "LN";

        public virtual void PrintFullName()
        {
            Console.WriteLine(FirstName + " " + LastName);
        }
    }
    class FullTimeEmployee : Employee
    {
        public override void PrintFullName()
        {
            Console.WriteLine(FirstName + " " + LastName + "-Full Time Employee");
        }
    }

    class PartTimeEmployee : Employee
    {
        public override void PrintFullName()
        {
            Console.WriteLine(FirstName + " " + LastName + "-Part Time Employee");
        }
    }

    class TemporaryEmployee : Employee
    {

    }

    class Program
    {
        static void Main(string[] args)
        {
            Employee[] emp = new Employee[4];
            emp[0] = new Employee();
            emp[1] = new FullTimeEmployee();
            emp[2] = new PartTimeEmployee();
            emp[3] = new TemporaryEmployee();

            foreach (Employee e in emp)
            {
                e.PrintFullName();
            }

        }
    }
}

then output will be like :
FN LN
FN LN - Full Time Employee
FN LN - Part Time Employee
FN LN


*** T
his is very simple codenext i will post again Polymorphism Program code,            Thank you... ***


Sunday, January 26, 2014

C# OOP(Object Oriented Programming) Concepts

Object Oriented Programming Concepts

The Key Concepts of Object Oriented Programming are :

  •  Abstraction
  •  Encapsulation
  •  Inheritance
  •  Polymorphism
Concept & Feature : 
  • Concept : Abstraction
    Feature : Natural mapping and association of data and programs or sub-programs   which operate on that data.
  • Concept : Encapsulation
    Feature : Hide or Unhide part of the data or Functionality from some components
  • Concept : Inheritance
    Feature : Extend the functionality for new requirements without disturbing the existing implementation.

==> Difference between Object oriented & Object Based Languages

Object oriented Languages : All programming languages that support abstraction, encapsulation, inheritance and polymorphism are known as Object-Oriented.

Object Based Languages : All programming Languages that support abstraction and encapsulation but do not support inheritance, therefore cannot support polymorphism are known as object based languages. VB and Ada are are Object-Based languages.

What is an Object ?
  • An object is an entity which has a well defined structure and behavior.
  • An Object Possesses certain Characteristics are:
    ==> State
    ==> Behavior
    ==> Identity
    ==> Responsibility
Abstraction :
  •  Abstraction is the Process of identifying the key aspects of an entity and ignoring the rest.
  • Only those aspects are selected that are important to the current problem scenario.
Encapsulation :
  • Encapsulation is a mechanism used to hide the data, internal structure, and implementation details of an object.
  • All interaction with the object is through a public interface of operations.
  • The user knows only about the interface, any changes to the implementation does not affect the user.
Inheritance :
  • The Process of acquiring the Properties of Base class (Parent Class) to the Sub Class (Child Class) is known as Inheritance.
  •  Inheritance is  " is - a " a kind of hierarchy.
Polymorphism : 
  • The ability of different types of related objects to respond to the same message in their own ways is called polymorphism. 
  • Polymorphism helps us to design extensible software, as new objects can be added to the design without rewriting existing procedures.
  • Polymorphism is the ability to take more than one form. This means that one command may invoke different implementation for different related objects.

Capgemini Interview questions and answers



Questions and Answers for Capgmini Technical Round


1 ) What is OOP (Object Oriented Programming) ?--> OOP is a Programming paradigm  that represents concepts as "Objects" that have data fields (attributes that describes the Object) and associated procedures known as methods.
Objects, usually instances of Classes are used to interact with one another to design applicationsand computer Programs.
Some of OOP Laguages are C++, Objective-C, Small talk, Java, C#, Perl, Python, Ruby and PHP. 
           

2 ) What is VIEW ?--> VIEW is a Virtual Table.
The View is the Parts of the application that handles the display of the data.
most often the views are created from the model data.

In SQL-->
A View contains Rows and Columns, just like a real table. The fields in a View are fields from one or more real tables in Database. We can add SQL functions WHERE and JOIN statements to a view and present the data as if the data were coming from one single table.

A VIEW always shows up to date data.
The database engine recreates the data, using the VIEW's  SQL Statements. Every time a user queries q VIEW.

3 ) What is Object and Class ?
--> Object is Instance of a class through which we can access the methods of that class. "New" Keyword is used for creating an Object.
Class is like a Blue print.

Object is a real world entity. Every object has state, behaviour an and identity. They are classified by their common state and behaviour by defining classes.

Class is compared to a template or mould, out of which similar kind of objects are created. object is an instance of a class.

Syntax :

<access specifier> class <class name>
{

           field declarations with respective access specifiers
           Event / Property / method declaration
}
    
4 ) Difference between RDBMS and DBMS ?--> 
DBMS manages large quantity of structured data with the advantages of query processing, controlling the access to data, data sharing and proper retrieval as well as modification of data.
RDBMS is a DBMS that 
stores the data in tables, a table is a collection of interrelated data entries and consists of columns and rows. Each of these tables has a unique identifier or "primary key". RDBMS also stores the relationship among the data in the form of tables.

Simply, In DBMS we can tables that can contain data. but, In RDBMS the tables have relationship.


5 ) What is PostBack ?--> PostBack is the name given to the process of submitting an ASP.NET page to the server for processing. PostBack is done if certain credentials of the page are to be checked against some sources (such as verification of username and password using database). This is something that a client machine is not able to accomplish and thus these details have to be 'posted back' to the server.
6 ) What is difference between Windows Application and Web 
Application ?
--> window 


7 ) What are the Class Access Modifiers ?
---> Public, Static and Void are the Class Access Modifiers.

8 ) What is an Assembly ?---> An assembly is a collection of types and resources that forms a logical unit of functionality.
 
When you compile an application, the MSIL code created is stored in an assembly 
Assemblies include both executable application files that you can run directly from Windows without the need for any other programs (these have a .exe file extension), and libraries (which have a .dll extension) for use by other applications.
 
There are two kind of assemblies in .NET :i) Private Assembly.
ii) Shared Assembly.

9 ) What is Serialization ?--> Serialization is the process of converting an object into a stream of Bytes.

When we want to transport an object through a network, then we have to convert the object into a stream of bytes. The process of converting an object into a stream of Bytes is called Serialization. For an object to be serialize, it should inherit ISerialize Interface. De-Serialization is the reverse process of creating an object from a stream of Bytes.

10) Difference between Clone() and Copy() ?--> Using clone() we can creates a new array object containing all the elements in the original array and using copy() method, all the elements of existing array copies into another existing array. Both methods perform Shallow copy.

11) What is Reflection ?--> Reflection is ability to examine the metadata in the assembly manifest at runtime.

reflection is technique provided for developers to examine the metadata at runtime. The ability to 
examine the metadata in the assembly manifest at runtime is known as reflection. It is used to dynamically create an instance of a type, bind the type to an existing object, or get the type from an existing object and invoke its methods or access its fields and properties.
  


12) Write a simple Program for Object()
--> syntax for object

class Date             // this is class program
{

       public int day;
       public int month;
       public int year;
     
       public void PrintDate()       // this is method
       {
            Console.WriteLine("Date is :"+ day + " " + month + " " + year);
       }

}
class program
{
      static void main (string[] args)
      {
           Date d1 = new Date();              // object intialization
           d1.day = 26;
           d1.month = 1;
           d1.year = 2014;
           d1.PrintDate();
        }
}