Accenture Interview Q A For Freshers
Accenture Interview Q A For Freshers
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
#include<stdio.h>
tp
int main()
ht
int x,y;
x=7, y=1;
https://www.freshersnow.com/
Accenture Interview Questions for Freshers
● 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/
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
A. A friend() function is a function that has access to private and protected members of
/w
Syntax:
tp
class class_name
ht
//Statements
https://www.freshersnow.com/
Accenture Interview Questions for Freshers
5. Can you give differences for the Primary key and Unique key in SQL?
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.
A. In Python, the map() function is useful for applying the given function on every element of
.fr
Where func is a function applied to every element of an iterable and itr is iterable which is to
/w
Example:
tp
def addition(n):
ht
return n+n
print(list(res))
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 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
if(n==1)
tp
ht
else if(n==2)
else
cout<<num1<<"\t"<<num2<<"\t";
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
s
.fr
● 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
● 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
● 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
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:/
Java.util.Collection
ht
Java.util.Map
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:
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
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
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
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/
/
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
● Runtime Polymorphism
w
● Compile-time polymorphism
w
class A{ //Superclass
ht
void name()
https://www.freshersnow.com/
Accenture Interview Questions for Freshers
/
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
a. List interface is an interface in Java Collection Framework. List interface extends the
Collection interface.
tp
Syntax:
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
/
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
}
w
/w
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
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
Syntax:
/
m
public class ClassName implements Interface1, Interface2,..., InterfaceN
.co
{
ow
//Code
}
r sn
Accenture HR Interview Questions for Freshers
he
es
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:/
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.
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/
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
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
/
Accenture Placement Papers Accenture Logical Reasoning Questions &
m
Answers
.co
Accenture Verbal Ability Questions & Accenture Syllabus
ow
Answers
Freshers Jobs
s:/
tp
ht
https://www.freshersnow.com/