0% found this document useful (0 votes)
12 views13 pages

Accenture Interview Q A For Freshers

The document provides a comprehensive list of interview questions and answers for freshers applying to Accenture, covering various technical topics such as Java, C, C++, SQL, and Python. Key concepts discussed include memory allocation, inheritance, database normalization, and access specifiers. The document serves as a guide for candidates to prepare for technical interviews by understanding fundamental programming concepts and their applications.

Uploaded by

snehaghosh752
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views13 pages

Accenture Interview Q A For Freshers

The document provides a comprehensive list of interview questions and answers for freshers applying to Accenture, covering various technical topics such as Java, C, C++, SQL, and Python. Key concepts discussed include memory allocation, inheritance, database normalization, and access specifiers. The document serves as a guide for candidates to prepare for technical interviews by understanding fundamental programming concepts and their applications.

Uploaded by

snehaghosh752
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Accenture Interview Questions for Freshers

Accenture Technical Interview Questions for Freshers


1. What is the significance of the “super” and “this” keywords in Java?

A. super keyword: In Java, the “super” keyword is used to provide reference to the instance
of the parent class(superclass). Since it is a reserved keyword in Java, it cannot be used as
an identifier. This keyword can also be used to invoke parent class members like

/
constructors and methods.

m
this Keyword: In Java, the “this” keyword is used to refer to the instance of the current

.co
class. Since it is a reserved keyword in Java, it cannot be used as an identifier. It can be
used for referring object of the current class, to invoke a constructor of the current class, to

ow
pass as an argument in the method call or constructor call, to return the object of the current
class sn
2. Can you differentiate between “var++” and “++var”?
r
he

A. Expressions “var++” and “++var” are used for incrementing the value of the “var” variable.
es

“var++” will first give the evaluation of expression and then its value will be incremented by 1,
thus it is called as post-incrementation of a variable. “++var” will increment the value of the
.fr

variable by one and then the evaluation of the expression will take place, thus it is called
w

pre-incrementation of a variable.
w

Example:
/w

/* C program to demonstrate the difference between var++ and ++var */


s:/

#include<stdio.h>
tp

int main()
ht

int x,y;

x=7, y=1;

printf("%d %d", x++, x); //will generate 7, 8 as output

printf("%d %d", ++y, y); //will generate 8, 8 as output }

https://www.freshersnow.com/
Accenture Interview Questions for Freshers

Copy rights to https://www.freshersnow.com/

3. Explain the memory allocation process in C.

● Memory allocation process indicates reserving some part of the memory space
based on the requirement for the code execution.
● There are two types of memory allocation done in C:

Static memory allocation: The memory allocation during the beginning of the program is

/
known as static memory allocation. In this type of memory allocation allocated memory size

m
remains fixed and it is not allowed to change the memory size during run-time. It will make

.co
use of a stack for memory management. https://www.freshersnow.com/

Dynamic memory allocation: The memory allocation during run-time is considered as

ow
dynamic memory allocation. We can mention the size at runtime as per requirement. It will
make use of heap data structure for memory management. The required memory space can
sn
be allocated and deallocated from heap memory. It is mainly used in pointers. Four types of
the pre-defined function that are used to dynamically allocate the memory are given below:
r
he

● malloc()
● calloc()
es

● realloc()
.fr

● free()
w

4. What is meant by the Friend function in C++?


w

A. A friend() function is a function that has access to private and protected members of
/w

another class i.e., a class in which it is declared as a friend. It is possible to declare a


function as a friend function with the help of the friend keyword.
s:/

Syntax:
tp

class class_name
ht

//Statements

friend return_type function_name();

https://www.freshersnow.com/
Accenture Interview Questions for Freshers

5. Can you give differences for the Primary key and Unique key in SQL?

Primary key Unique Key

It is a unique identifier for each row of a table. It is a unique identifier for table rows in the
absence of a Primary key.

/
m
A single Primary key is allowed in a table. More than one Unique Key is allowed in a
table.

.co
NULL value or duplicate value is not It can have a single NULL value but a

ow
permitted. duplicate value is not permitted.

When we define a Primary key, a clustered When we define a Unique key, a


sn
index is automatically created if it does not non-clustered index is created by default
already exist on the table. to enforce a UNIQUE constraint.
r
he

6. What is a map() function in Python?


es

A. In Python, the map() function is useful for applying the given function on every element of
.fr

a specified iterable(list, tuple, etc.).


w

Syntax for map() function is: map(func, it)


w

Where func is a function applied to every element of an iterable and itr is iterable which is to
/w

be mapped. An object list will be returned as a result of map() function execution.


s:/

Example:
tp

def addition(n):
ht

return n+n

number=(10, 20, 30, 40)

res= map(addition, number)

print(list(res))

7. Write a C++ program for generating the Fibonacci series.

A. The Fibonacci series is a number sequence in which each number is the sum of the
previous two numbers. Fibonacci series will have 0 followed by 1 as its first two numbers.

https://www.freshersnow.com/
Accenture Interview Questions for Freshers

The Fibonacci series is as follows:

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55....

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

/
m
generates n numbers in a Fibonacci series.

.co
#include<iostream.h>

#include<conio.h>

ow
void main() sn
{
r
he

int num1,num2,nextnum,n,i;
es

cout<<"Enter the value for range:"; //Fibonacci series range value will be inputted
.fr

cin>>n;
w

num1=0;
w

num2=1;
/w

cout<<"Fibonacci series is:"<<endl;


s:/

if(n==1)
tp
ht

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 value is two

else

cout<<num1<<"\t"<<num2<<"\t";

for(i=3;i<=n;i++) //Fibonacci series will be printed based on range limit

https://www.freshersnow.com/
Accenture Interview Questions for Freshers

nextnum=num1+num2;

cout<<nextnum<<"\t";

num1=num2;

num2=nextnum;

/
m
}

.co
}

ow
getch();

} sn
r
8. What is the difference between the local variable and global variable in C?
he

Comparison Local variable Global variable


es

s
.fr

Declaration A variable that is declared inside A variable that is declared outside


w

function or block is called Local function or block is called global


variable variable
w
/w

Scope The scope of a variable is The scope of a variable is available


available within throughout
s:/

a function in which they are the program.


declared.
tp
ht

9. List the Coffman’s conditions that lead to a deadlock.

● Mutual Exclusion: Only one process may use a critical resource at a time
● Hold & Wait: A process may be allocated some resources while waiting for others
● No Pre-emption: No resource can be forcible removed from a process holding it
● Circular Wait: A closed chain of processes exist such that each process holds at
least one resource needed by another process in the chain

10. What are short, long and medium-term scheduling?

● Long term scheduler determines which programs are admitted to the system for
processing. It controls the degree of multiprogramming. Once admitted, a job
becomes a process

https://www.freshersnow.com/
Accenture Interview Questions for Freshers

● Medium term scheduling is part of the swapping function. This relates to processes
that are in a blocked or suspended state. They are swapped out of real-memory until
they are ready to execute. The swapping-in decision is based on
memory-management criteria
● Short term scheduler, also known as a dispatcher executes most frequently, and
makes the finest-grained decision of which process should execute next. This
scheduler is invoked whenever an event occurs. It may lead to interruption of one
process by preemption

/
m
11. Explain inheritance in Java? How can it be achieved?

.co
● Inheritance in Java is a process by which one class can have all properties of other
class.

ow
● That means one class inherits all the behaviour of the other class.
● Inheritance increases the code reusability.
● Inheritance is an important feature of OOP concept.
sn
● Inheritance is also a representation of the IS-A relationship
r
he

There are two terms used in inheritance:


es

● Child class (Subclass): Class which inherits other class, called a Child class or
derived class
.fr

● Parent class (Superclass): A class that got inherited by another class is termed as
w

parent class or Base class


w

12. What is "Collection Framework" in Java?


/w

A. Collection Framework in Java is an architecture for storing the classes, and interfaces and
manipulating the data in the form of objects. There are two main interfaces in Collection
s:/

Framework that are:


tp

Java.util.Collection
ht

Java.util.Map

13. What is normalization? What are its types?

A. Normalization is the process of organizing the data in the database to reduce redundancy
of the data and achieving data integrity. It is also called as database normalization or data
normalization.

By normalizing the data we can arrange the data in tables and columns, and a relationship
can be defined between these tables or columns.

https://www.freshersnow.com/
Accenture Interview Questions for Freshers

There are following types of normalization available which are used commonly:

● First normal form (1NF)


● Second normal form (2NF)
● Third normal form( 3NF)
● Boyce & Codd normal form (BCNF)
● Fourth normal form(4NF)

14. Explain the "primary key," "foreign key," and "UNIQUE key" in Database?

/
m
● Primary Key: A primary key in the database, is a field or columns, which uniquely

.co
identifies each row in the database table. Primary key should have a unique value for
each row of the database table. And it cannot contain null values. By default, a

ow
primary key is a clustered index
● Unique Key: A unique key also works as primary key except that it can have one null
value. It would not allow the duplicate values. By default, the unique key is the
sn
non-clustered index
r
● Foreign Key: A foreign key is used to create a link between two tables. It can be
he

defined in the second table, but it will refer to the primary key or unique key of the
first table. A Foreign key can contain multiple null values. A foreign key can be more
es

than one, in the table.


.fr

15. Differentiate between CHAR and VARCHAR2?


w

A. We use CHAR and VARCHAR2 in the database to store the string in the database. But
w

the main difference between both the terms are given below:
/w

● CHAR is of fixed size, and VARCHAR depends on the size of the actual string which
we want to store
s:/

● If we use CHAR to store a string, then it will take memory as the size we have
tp

defined, but VARCHAR2 will take the memory as per the size of the string. So using
VARCHAR, we can use memory efficiently
ht

16. What is DML command in DBMS?

A. DML stands for Data Manipulation Language. The SQL commands which deals with data
manipulation are referred to DML. Some DML commands are:

● SELECT- This command is used for retrieval of the data from the table of given
database.
● INSERT- This command is used to insert or add the data into the table.
● UPDATE- This command is used to update the existing data in the table.
● DELETE- This command can be used to remove the records from the table.

https://www.freshersnow.com/
Accenture Interview Questions for Freshers

17. What are the access specifiers in C++?

A. We use access specifier to prevent the access of the class members or to implement the
feature of Data Hiding. In C++, there are some keywords used to access specifier within
class body, which are given below: https://www.freshersnow.com/

● Public: If we specify a class member as public then it will be accessible from

/
anywhere within a program. We can directly access the private member of one class

m
from another class.

.co
● Private: If we specify any class member as private then it will only be accessed by
the function of that class only. We cannot access the private member of the class

ow
outside the class.
● Protected: Protected access specifier is mainly used in case of inheritance. If we
define the class member as protected, then we cannot access class member outside
sn
the class, but we can access it by subclass or derived class of that class.
r
he
18. What do you understand by runtime polymorphism?
es

A. Polymorphism is a method of performing "a single task in different ways." Polymorphism


is of two types
.fr

● Runtime Polymorphism
w

● Compile-time polymorphism
w

● Here we will discuss runtime polymorphism.


/w

Runtime Polymorphism- We can achieve runtime Polymorphism by method overriding in


Java. And method overriding is a process of overriding a method in the subclass which is
s:/

having the same signature as that of in superclass.


tp

class A{ //Superclass
ht

void name()

System.out.println("this is student of Superclass");

class Student extends A //Subclass

https://www.freshersnow.com/
Accenture Interview Questions for Freshers

void name(){ // method Override with same signature(runtime polymorphism)

System.out.println("this is student of subclass");

public static void main (String[] args) {

/
m
A a= new A(); // refrence of A class

.co
A b= new Student(); // refrence of student class

ow
a.name();

b.name(); sn
r
}
he

}
es

Output:
.fr

this is student of Superclass


w
w

this is student of subclass


/w

19. What is List interface in collections?


s:/

a. List interface is an interface in Java Collection Framework. List interface extends the
Collection interface.
tp

● It is an ordered collection of objects.


ht

● It contains duplicate elements.


● It also allows random access of elements.

Syntax:

public interface List<E> extends Collection<E>

20. What do you understand by object cloning?

A. Object cloning is a mechanism of creating the same copy of an object. For object cloning,
we can use clone() method of the Object class. The class must implement the

https://www.freshersnow.com/
Accenture Interview Questions for Freshers

java.lang.Clonable interface, whose clone we want to create otherwise it will throw an


exception.

Syntax of clone() method:

protected Object clone() throws CloneNotSupportedException

21. Can we insert duplicate values in Set?

/
We cannot insert duplicate elements in Set. If we add a duplicate element, then the output

m
will only show the unique elements.

.co
22. What is an abstract class in Java?

ow
● An Abstract class is used to achieve abstraction in Java. If we use the keyword
"abstract" with the class name, then it is called as an abstract class.
sn
● An Abstract class can have only methods without body or can have methods with
some implementation.
r
● The Abstract class cannot be instantiated
he

● It's not necessary that an abstract class should have an abstract method.
es

Syntax:
.fr

abstract class Student{


w

}
w
/w

23. What is deadlock condition in multithreading?


s:/

A. A Deadlock condition occurs in the case of multithreading. It is a condition when one


thread is waiting for an object lock, which is already acquired by another thread and the
tp

second thread is waiting for a lock object which is taken by the first thread, so this is called
the deadlock condition in Java. https://www.freshersnow.com/
ht

24. What is the “Diamond problem” in Java?

A. The “Diamond problem” usually happens in multiple inheritances. Java does not support
multiple inheritances, so in the case of Java, the diamond problem occurs when you are
trying to implement multiple interfaces. When two interfaces having methods with the same
signature are implemented to a single class, it creates ambiguity for the compiler about
which function it has to call, so it produces an error at the compile time. Its structure looks
similar to diamond thus it is called a “Diamond problem”.

https://www.freshersnow.com/
Accenture Interview Questions for Freshers

25. Can we implement multiple interfaces in a single Java class?

A. Yes, it is allowed to implement multiple interfaces in a single class. In Java, multiple


inheritances is achieved by implementing multiple interfaces into the class. While
implementing, each interface name is separated by using a comma(,) operator.

Syntax:

/
m
public class ClassName implements Interface1, Interface2,..., InterfaceN

.co
{

ow
//Code

}
r sn
Accenture HR Interview Questions for Freshers
he
es

1. Brief about yourself


.fr

Your impression will be made in the interviewer's mind by your response to this question. In
almost all the HR interviews, this is the first question that will be asked. And, this is the
w

foremost chance given to you to show who are. However, there is a strategic process to
w

answer this question. While answering this question, make sure that you mention your
/w

academic qualification, previous work experience (if any), family background, and strengths
and hobbies.
s:/

2. What are your strengths?


tp

This might be an easy question but somewhat tricky to answer. With your response, the
ht

interviewer will check whether your strength would help for the job role you have opted for.
While answering this question, mention the best strength you have which differentiates you
from the others. Give an example like a life incident that happened where you have used
your strength to come over it.

3. What is your biggest achievement till now?

Go with this question if you have any achievements. You must talk about the achievements
which you have got with your effort and hard work. Once this question is asked, you must
understand that the interviewer wants to know about you in deep. The traits that the
interviewer expected from you by asking this question are, things that drive you, things that

https://www.freshersnow.com/
Accenture Interview Questions for Freshers

really matter to you? and your potential. Being very careful and genuine while answering this
question is the key. https://www.freshersnow.com/

4. Why should I consider you for this job?

This is the most challenging question that has been asked in any of the interviews. This
question will be asked to check whether you have the required abilities to fit in a specified
job or not. You must be very careful while answering this question. Your answer to this
question must make you differentiate among many. This is like an open door for a candidate

/
m
to showcase him/ her and to get deleted for the desired job.

.co
5. How will you deal with work pressure?

This is one of the most commonly asked questions in HR interviews. Before answering the

ow
questions, know that what the interviewer is expecting from you and how it could help the
company. Answer this question in a positive way. If you could answer this with a past
sn
experience, it would help the interviewer to understand you in an easy way. Keep in mind
that, whatever you speak must be honest and should match with your body language.
r
he

6. Are you willing to relocate?


es

Before appearing for the interview, one question you must ask yourself is 'Am I willing to
.fr

relocate?.' If the answer is no, you must know that there will be fewer chances to get
selected in the final round. But though if you are eager to work in the company, you can
w

discuss with the panel member and can settle the issue. If your answer is yes, it is well and
w

good. Sometimes, this question is asked to check your flexibility, commitment, and
enthusiasm.
/w
s:/
tp
ht

https://www.freshersnow.com/
Accenture Interview Questions for Freshers

★ You Can Also Check ★

Accenture Off-Campus Accenture Internship

Accenture Recruitment Accenture Interview Questions

/
Accenture Placement Papers Accenture Logical Reasoning Questions &

m
Answers

.co
Accenture Verbal Ability Questions & Accenture Syllabus

ow
Answers

Verbal Ability Questions & Answers


sn
Accenture Aptitude Questions & Answers
r
Aptitude Questions & Answers Off Campus Drives
he
es

Tutorials Technical Quizzes


.fr

Placement Papers Walkins


w
w

IT Jobs Scholarships in India


/w

Freshers Jobs
s:/
tp
ht

https://www.freshersnow.com/

You might also like