Accenture Interview Questions
Accenture Interview Questions
© Copyright by Interviewbit
Contents
2. Interview Rounds
The static keyword is a non-access modifier in Java that is useful for memory
management.
Static property can be shared by all the objects, no separate copies of static
members will be created on object creation.
No need to create the instance of the class for accessing static members, we can
directly access them by using the class name.
The static keyword can be used with the variable, block, method, and nested
classes for memory management.
Static variable: When a variable is declared with the static keyword, a
single copy of the variable will be created and the same variable will be
shared across all objects of the class (a class to which the static variable
belongs).
Static block: A static block helps with the initialization of the static data
members. It is a group of statements within a Java class and gets executed
exactly once when the class is first loaded into the JVM(Java Virtual
Machine).
Static method: If the method is declared with the static keyword, then it is
considered a static method. The main( ) method is one of the examples of a
static method. Static methods are having restrictions such as they can
directly call other static methods only, and they can access static data
directly.
Static class: Only a nested class can be created as a static class. Nested
static class doesn’t need a reference of Outer class(a class in which the
nested class is defined). A static class does not have permission to access
non-static members of the Outer class.
Example:
class Animal{
void print(){
System.out.println("Inside Animal");
}
}
class Birds extends Animal{
void print(){
System.out.println("Inside Birds");
}
}
class Mammals extends Animal{
void print(){
System.out.println("Inside Mammals");
}
}
class Reptiles extends Animal{
void print(){
System.out.println("Inside Reptiles");
}
}
class InterviewBit{
public static void main(String args[]){
Animal a = new Animal();
Animal b = new Birds(); //upcasting
Animal m = new Mammals(); //upcasting
Animal r = new Reptiles(); //upcasting
a.print();
b.print();
m.print();
r.print();
}
}
Output:
Inside Animal
Inside Birds
Inside Mammals
Inside Reptiles
Array ArrayList
An array is of fixed
ArrayList is of variable length
length
Here, if we try to access the print() function using the DerivedClass3 object, it will
create confusion for the compiler that which copy of the print() function it has to call
i.e., from DerivedClass1 or DervivedClass2.
“Diamond problem” is solved by using virtual inheritance. It guarantees that the child
class will get only one instance of the common base class.
C C++ Java
It is an object-
It is an object-
oriented
oriented language
language (not
It is a (not purely object-
purely object-
procedural oriented as it is
oriented, as it
language. possible to write
supports
code without the
primitive data
creation of a class).
types).
It does not
It supports
It supports pointers. support
pointers.
pointers.
Platform Platform
Platform dependent
dependent independent
language
language language
Here, we can
Not possible It is allowed to create our
to create our create the package package and
own package. in C++. can include
the classes.
It does not
support data It supports
It supports data
hiding, so data data hiding, so
hiding, so data
is less secured data cannot
cannot be accessed
as it can be be accessed by
by the outside
accessed by the outside
world.
the outside world
Page 12 © Copyright by Interviewbit
Accenture Interview Questions
In the above example program, Example Interface is the functional interface that has
a single abstract method abstractPrint(). By using lambda expression within
InterviewBit class, we are implementing the functional interface by providing
implementation code for the abstract method within an interface.
#include<stdio.h>
int main()
{
int x,y;
x=7, y=1;
printf("%d %d\n", x++, x); //will generate 7, 8 as output
printf("%d %d", ++y, y); //will generate 2, 2 as output
}
The getch() is a pre-defined library function in C++ that is used to receive a single
input character from the keyboard, and it holds the screen until it does not receive
any character from standard input. This function does not require any arguments
and it is defined under the “conio.h” header file.
#include<iostream.h>
#include<conio.h>
void main()
{
cout<<"Enter the character:"<<endl;
getch();
}
This program holds the output screen until you press any character on the keyboard.
The only difference between these two functions is getch() does not echo the
character to the screen whereas getche() does.
class class_name
{
//Statements
friend return_type function_name();
}
16. Can you give differences for the Primary key and Unique key
in SQL?
Dictionary Tuple
Elements are
Elements are accessed using key accessed using
values. numeric index
values.
It is useful for
returning multiple
It is used as a model object.
values from a
function.
def addition(n):
return n+n
number=(10, 20, 30, 40)
res= map(addition, number)
print(list(res))
The below-given program will display the Fibonacci series of n range of numbers
given by the user. If the entered range value is 1, the num1 value will be printed,
i.e., 0. If the entered range value is 2, num1 and num2 values will be printed, i.e.,
0 and 1. If entered range value is n, num1 and num2 value will be printed. Along with
that, each next term will be calculated based on the addition of the previous two
numbers and this process continues until it generates n numbers in a Fibonacci
series.
#include<iostream.h>
#include<conio.h>
void main()
{
int num1,num2,nextnum,n,i;
cout<<"Enter the value for range:"; //Fibonacci series range value will be inpu
cin>>n;
num1=0;
num2=1;
cout<<"Fibonacci series is:"<<endl;
if(n==1)
cout<<num1<<endl; //Single value will be printed if range value is 1
else if(n==2)
cout<<num1<<"\t"<<num2<<endl; //Two values will be printed if the range va
else
{
cout<<num1<<"\t"<<num2<<"\t";
for(i=3;i<=n;i++) //Fibonacci series will be printed based on range limi
{
nextnum=num1+num2;
cout<<nextnum<<"\t";
num1=num2;
num2=nextnum;
}
}
getch();
}
Conclusion
Accenture is among the leading Fortune 500 companies across the globe with
revenue and profits better than most of the MNCs. It is also well-known for its diverse
and robust work culture. Obtaining a career at Accenture would help you to upgrade
your career growth and knowledge base.
Accenture recruits many candidates every year for their several job opportunities.
The candidates should put all their efforts to achieve their goals and the organization
should pace up the process to gain more fame in the long run. Recently, Accenture
has also announced that it is going to hire plenty of candidates across various roles,
and hence this is an opportunity to give it your best shot.
Hope this article assists you to get more information about the Accenture interview
process and help you ace through it. We have focused to cover the various aspects
like Accenture company profile, Accenture interview questions for
freshers/experienced, Accenture HR interview questions, Accenture technical
interview questions, here in this article. Now brace yourself for every question
thoroughly as this article is going to upgrade your understanding of the Accenture
recruitment process.
Useful Resources:
SQL Interview
Java Interview
C++ Interview
Python Interview
Primary Key Vs Unique Key
Learn all the concepts: If you have to ace the technical interview at Accenture,
you have to learn the concepts such as coding, algorithm, data structures, etc.
When preparing & practicing for the interview, focus on algorithm-based and
system design problems.
Improve your problem-solving skills: With proper practice, you will be able to
solve any type of problem. This specific skill can only be perfected when you
consistently solve questions every day and helps you in changing the way you
understand and approach any given problem.
Clarify your doubts: Join some relevant online forums or take the help of any
useful resources to clarify your doubts before the interview process. You should
be well-prepared to face any kind of question during the interview.
Take up mock interviews: Try to practice through mock interviews, which will
essentially help you to get feedback on areas that you need to improve on. Also,
the mock preparations will boost your confidence to face real interviews.
Be calm and composed: You have to stay calm during the interview. Take your
time to properly understand the questions given to you. If needed, try to dra
out a strategy before you start solving any coding questions.
Ask questions: At the end of the interview, you have to be prepared to ask
questions to the interviewer. This will definitely show your interest and insight
into the company and the position that you are applying for.
Do your homework: Mainly Understand the job role for which you are applying
and also learn a few company-related information about Accenture. Research on
these things in advance, whether that is exploring the Accenture’s company
website or discussing with a friend who works in Accenture.
Think through your answers: While the Accenture interview topics can range
from different technical aspects and personal skills, prepare in advance as to
how you can answer the questions. Think about the requirements of the role,
your accomplishments, and your personal aspirations, which essentially helps
you in preparing for the interview conversations.
Have questions ready: Most of the time, your interviewer will give you time for
asking questions. So it is important to have a question ready to ask! Not one
that has already been answered, but one that demonstrates your insightfulness
& interest in the position and also about the company. For more tips check the
above section.
Yes, the candidates will be asked coding questions in technical interviews. In this
particular round, the candidates have to face questions based on programming
concepts of different technologies like C, C++, Java, etc.
The People:
If you are working for Accenture, you can observe that everyone from lower-level
to upper-level employees are approachable and there to help you. Accenture’s
‘One Global Network’ allows you to reach out to colleagues across the globe for
any kind of support. There are plenty of opportunities to network and meet new
people in Accenture, from events to getting involved in clubs and societies.
Fast-Paced Environment
In Accenture, you can directly communicate with the clients and put across your
best views at all times from day one of your project. Normally, at Accenture, you
can experience working in a fast-paced environment. Working closely with
clients and colleagues lets you develop and grow professionally in this kind of
robust work environment.
Continuous Learning
Working for Accenture definitely lets you continue to learn and grow as you are
going to be exposed to new technologies and varied business strategies on a
continuous basis. At times, working for Accenture can be challenging; but the
skills that you acquire and develop are important to your professional
development.
The above tricky question can be answered as mentioned below: “In the next five
years, I want to see myself in a senior role or leading a team, working with a great
bunch of professionals at Accenture. I would like to be known globally as a passionate
expert in my area of expertise. Overall, I will definitely want to cherish the journey at
Accenture, which I hope probably going to be one of the best in the world.”
Css Interview Questions Laravel Interview Questions Asp Net Interview Questions