Deloitte NLA Coding Questions and Answers

Deloitte NLA Coding Questions with Solutions

 On the Deloitte NLA Coding Questions and Answers page, you will find out all the details related to the Hiring process of Deloitte including Coding Questions asked in NLA ( National Level Assessment ) and Technical Interview, Job Profile, Salary, Job Location, and other related details.

Deloitte NLA Coding Question with solution

About Deloitte

Deloitte, formally known as Deloitte Touche Tohmatsu Limited is a leading global services provider company. They provide services in consulting, financial advisory, tax management, risk management, audit, and assurance.

Deloitte is also having a Subsidiary, Deloitte US – India Consulting, which works under the Deloitte US Organization providing the same services as Deloitte US Organization gives.

About Deloitte NLA Recruitment Process

This Hiring process of Deloiite National Level Assessment consists of following steps :

  1. Online Assessment [ Aptitude, Verbal and Technical Based ]
  2. Technical and HR Interview

Note – We have a dedicated page for Deloitte NLA Coding Questions and Answers, but if you want exact “What type of questions asked in Deloitte NLA Coding Round”, scroll down and fulfill your dream 🙂

We have mentioned further details of Deloitte NLA Recruitment Process in following Tabular Form for a particular Job Profile

PointsRelated Informations
Position :Analyst Trainee
Course :
  • B.Tech – CSE, IT, ECE, EEE & M.C.A.
  • Eligible Batch – 2025
Eligibility Criteria / Academic Qualification Required :Minimum 60% or equivalent CGPA of 6.5 and above
Cost to Company (CTC)Rs 4,00,000 /- P.A
Selection Process :
  1. Applying on Official Website
  2. Online National Level Assessment (NLA)
  3. Technical & HR Interview

Pattern of  Deloitte NLA Recruitment Exam :

Deloitte National Level Assessment has a 90-minute time limit and is divided into 4 sections, which are mentioned below :

Topics Number of Questions
Language Skills (English) 10 MCQs + 3 FUBs

General Aptitude

 12 Reasoning + 10 Quants
Technical  MCQs 30 Questions
Coding Questions 2  Questions 

Deloitte NLA Coding Questions and Answers

Question 1

Problem Statement –

A chocolate factory is packing chocolates into the packets. The chocolate packets here represent an array  of N number of integer values. The task is to find the empty packets(0) of chocolate and push it to the end of the conveyor belt(array).

Example 1 :

N=8 and arr = [4,5,0,1,9,0,5,0].

There are 3 empty packets in the given set. These 3 empty packets represented as O should be pushed towards the end of the array

Input :

8  – Value of N

[4,5,0,1,9,0,5,0] – Element of arr[O] to arr[N-1],While input each element is separated by newline

Output:

4 5 1 9 5 0 0 0

Example 2:

Input:

6 — Value of N.

[6,0,1,8,0,2] – Element of arr[0] to arr[N-1], While input each element is separated by newline

Output:

6 1 8 2 0 0

Question 2

Problem Statement –

Joseph is learning digital logic subject which will be for his next semester. He usually tries to solve unit assignment problems before the lecture. Today he got one tricky question. The problem statement is “A positive integer has been given as an input. Convert decimal value to binary representation. Toggle all bits of it after the most significant bit including the most significant bit. Print the positive integer value after toggling all bits”.

Constraints-

1<=N<=100

Example 1:

Input :

10  -> Integer

Output :

5    -> result- Integer

Explanation:

Binary representation of 10 is 1010. After toggling the bits(1010), will get 0101 which represents “5”. Hence output will print “5”.

Question 3

You are given a function,
int findCount(int arr[], int length, int num, int diff);

The function accepts an integer array ‘arr’, its length and two integer variables ‘num’ and ‘diff’. Implement this function to find and return the number of elements of ‘arr’ having an absolute difference of less than or equal to ‘diff’ with ‘num’.
Note: In case there is no element in ‘arr’ whose absolute difference with ‘num’ is less than or equal to ‘diff’, return -1.

Example:
Input:

  • arr: 12 3 14 56 77 13
  • num: 13
  • diff: 2

Output:
3

Explanation:
Elements of ‘arr’ having absolute difference of less than or equal to ‘diff’ i.e. 2 with ‘num’ i.e. 13 are 12, 13 and 14.

Question 4

Implement the following Function 

def differenceofSum(n. m)

The function accepts two integers n, m as arguments Find the sum of all numbers in range from 1 to m(both inclusive) that are not divisible by n. Return difference between sum of integers not divisible by n with sum of numbers divisible by n.

Assumption:

  • n>0 and m>0
  • Sum lies between integral range

Example

Input
n:4
m:20
Output
90

Explanation

  • Sum of numbers divisible by 4 are 4 + 8 + 12 + 16 + 20 = 60
  • Sum of numbers not divisible by 4 are 1 +2 + 3 + 5 + 6 + 7 + 9 + 10 + 11 + 13 + 14 + 15 + 17 + 18 + 19 = 150
  • Difference 150 – 60 = 90

Sample Input
n:3
m:10
Sample Output
19

 Question 5

Airport security officials have confiscated several item of the passengers at the security check point. All the items have been dumped into a huge box (array). Each item possesses a certain amount of risk[0,1,2]. Here, the risk severity of the items represent an array[] of N number of integer values. The task here is to sort the items based on their levels of risk in the array. The risk values range from 0 to 2.

Example :

Input :

7  -> Value of N

[1,0,2,0,1,0,2]-> Element of arr[0] to arr[N-1], while input each element is separated by new line.

Output :

0 0 0 1 1 2 2  -> Element after sorting based on risk severity 

Example 2:

input : 10  -> Value of N 

[2,1,0,2,1,0,0,1,2,0] -> Element of arr[0] to arr[N-1], while input each element is separated by a new line.

Output : 

0 0 0 0 1 1 1 2 2 2  ->Elements after sorting based on risk severity.

Explanation:

In the above example, the input is an array of size N consisting of only 0’s, 1’s and 2s. The output is a sorted array from 0 to 2 based on risk severity.

FAQs related to Deloitte NLA Coding Questions

Question 1: What kind of roles are available at Deloitte in India?

Deloitte offers a variety of roles across different domains like Audit, Consulting, Financial Advisory, Risk advisory, Tax and related services.

Question 2: Does Deloitte asks coding questions in there Recruitment Process?

Yes, Deloitte asks coding questions in there National Level Assessment and Technical Interview.

Question 3: Is Registration Process is still going on?

Yes, The registration process is still going on, You can apply directly via Deloitte Registration Page.