Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
88 views195 pages

Interview Question Bank /top 100 SQL Questions

The document contains a series of programming questions and algorithms, including tasks such as finding the third largest element in an array, removing duplicates, and identifying palindromes. It also includes problems related to sorting, equilibrium indices, and finding the longest palindromic substring. Additionally, there are examples and expected outputs for each problem to illustrate the requirements.

Uploaded by

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

Interview Question Bank /top 100 SQL Questions

The document contains a series of programming questions and algorithms, including tasks such as finding the third largest element in an array, removing duplicates, and identifying palindromes. It also includes problems related to sorting, equilibrium indices, and finding the longest palindromic substring. Additionally, there are examples and expected outputs for each problem to illustrate the requirements.

Uploaded by

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

S No

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

19
20
21
22

23
24

25

26

27
28

29

30

31

32
33

34

35

36

37

38
39

40

41

42

43

44
45
46

47

48

49
50

51

52

53
54

55
56

57

58

59
60

61

62

63

64
65

66

67

68
69

70

71

72
73

74

75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185

186
187

188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269

270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310

311

312

313
314
315
316

317

318

319

320

321

322

323
324

325

326

327

328

329

330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345

346

347

348

349

350
351

352

353

354

355

356

357

358

359

360

361

362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383

384

385

386

387
388

389
390
391
392
393
394
395
396
397
398
399
400
401

402

403
404

405

406

407
408

409
410
411

412

413

414
415
416
417
418

419

420

421
422

423

424

425

426

427
428

429

430

431
432
433
434
435
436
437
438

439

440
441
442
443
444
445
446
447
448
449
450
451

452
453

454

455

456

457

458

459

460
461
462
463
464
465
466

467

468

469
470
471
472
473
474
475
476

477
478
479
480
481
482
483
484
485
486
487
488

489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
Questions
find the third largest element in an array.
Remove duplicates & vowels
Star pattern
Reverse the string
Conversion of uppercase to lowercase without in built libraries.
Removing duplicate elements from the array Input: {6,6,1,7,7,3,4,5} Output: {1,3,4,5}
coding question on finding a missing element.
remove duplicate elements in the array
Write a (4,1,2,5)
input3: logic for removing duplicate elements from an array.
Output:3
input2 :9
input 3 :{1,1,2,1,5}
Output: [0, 1, 4]

What is an Armstrong number?


•Asked to write agem
Ex: Resultant codeword
to check whether
should the given
be unique number
and the is Armstrong
character in the gemnumber or not?
word must be
adjacent to each other with some other conditions.
DDDD
EEEEE
Write an algorithm for Anagram
Write an algorithm for Palindrome with example
1.Persons with random height enter the room , we need to find the person
who has purple cap

● If all the persons are standing in ascending orders of height, then the
middle person is the one who owns purple cap.
● Array input will be always in odd number of persons.
**Note : We should not get Array Size as input, only array values as input
Sample Input - [5.5, 4.3, 5.7, 5.2, 5.1, 6.2, 6.1]
Sample output - 5.5
Number of Islands - Leetcode 200
Longest
Find the Palindrome
equilibrium in a string
index in a -string
Leetcode 5
An index i is considered to be equilibrium if the sum of arr[0] to arr[i - 1] = arr
arr[n]
● A n x n chess board will be given which is cut through diagonal and
divided into two sections
● A position will be given (x,y), which is the starting position of knight.
● We need to find the maximum number of steps if the knight visit each
square exactly once in the section.
● We also need to trace the path and print the unvisited path of the
knight.
A 2d array will be given as input and two points will be given

Such as A(x1,y1) and B(x2, y2), I need to find the total sum in the above range. a
multiple A and B position will be given and we need find the sum for all the ranges.
Sample Input- { {1, 2, 3, 4, 5},
{6, 7, 2, 1, 3},
{2, 5, 9, 8, 6},
{1, 2, 9, 6, 1},
{8, 5, 3, 6, 1},
};

A - 1,1
B - 3,3
Sample output - 49
Explanation : { {7, 2, 1},
{5, 9, 8},
{2, 9, 6}}
The sum of the above matrix,
Similarly multiple A and B position will be given.
Given an unsorted array of float values, need to sort the array and find the middle values

Input: {6.0,7.0,5.0}
Output: 6.0
Input : arr={6.5,7.0,5.0,5.4,4.9,8.5,6.9}
Output
Given a: Array
6.5 List of string, we need to find the two string with same equal no of characters

Input: {maya, aaym, benjamin, sophia, jack}


Output: maya, aaym.
Explanation: In maya count of m-1 , a – 2, y -1 and aaym m-1, a-2, y-1
Input: {maya, aaym, benjamin, sophia, aphios, jack}
Output: maya, aaym

Sophia, aphios

Number of Island Problem – Leetcode – 200


Given an m x n 2D binary grid which represents a map of '1's (land) and '0's (water), return the number of islands.

An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may ass
edges of the grid are all surrounded by water.

Example 1:

Input: grid = [
["1","1","1","1","0"],
["1","1","0","1","0"],
["1","1","0","0","0"],
["0","0","0","0","0"]
]
Output: 1
Longest Palindromic Substring
Given a string s, return the longest palindromic substring in s.

Example 1:
Input: s = "babad"
Output: "bab"
Explanation: "aba" is also a valid answer.

Example 2:
Input: s = "cbbd"
Output: "bb"
Find all equilibrium index of an array. An equilibrium index is where the left sum of that index is equal to the right s
index
Index i is equilibrium if sum of arr[0] to arr[i-1] equals to arr[i+1] to arr[n-1]

Sort 0’s, 1’s and 2’s – Leetcode - 75


Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color ar
with the colors in the order red, white, and blue.

We will use the integers 0, 1, and 2 to represent the color red, white, and blue, respectively.

You must solve this problem without using the library's sort function.

Example 1:
Wild
Input:card
numsMatching – Leetcode – 44
= [2,0,2,1,1,0]
Given
Output: [0,0,1,1,2,2] (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*' where:
an input string
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
The matching should cover the entire input string (not partial).

Input: s = "aa", p = "a"


Output: false
Explanation: "a" does not match the entire string "aa".

Input: s = "aa", p = "*"


Output: true
Explanation: '*' matches any sequence.

Purple Cap
Given an array of elements with different height. Predict the person with whom the purple cap will be there.
Hint: Purple cap will be there with the person in the middle after standing in height wise ascending order?
Input->{5.5,2.5,4.7,6.8,7.9}
Output->5.5
Anamorph
A list of names will be given print the pair of anomorphs(only 2) from that.
Anamorphs: Names with same letters suffled?
Input1->{“Maya”, “Sophia”, “Aaym”, “Kayak”, “Phiosa”, “Sapohi”}
Output1->{“Maya”, “Aaym”}
Input2->{“Maya”, “Sophia”, “Aaym”, “Kayak”, “Phiosa”}
Output1->{{“Maya”, “Aaym”},{“Sophia”, “Phiosa”}}

Longest Palindrome Substring


Input1 -> Statues
Output1 -> tat
Input 2 -> Kayak
Output2 -> Kayak

Print index which is equilibrium. The equilibrium index of an array is an index such that the sum of elements at lowe
equal to the sum of elements at higher indexes.
Input: A[] = {-7, 1, 5, 2, -4, 3, 0}
Output: 3
3 is an equilibrium index, because:
A[0] + A[1] + A[2] = A[4] + A[5] + A[6]

Number of Islands
Given a binary 2D matrix, find the number of islands. A group of connected 1s forms an island. And the 1s surround
also forms an island.

Find the right maximum of each element in an array, for last element consider -1 as right maximum.

Ex:
Input -> a[]={3,0,5,2,1}
Output-> {5,5,2,1,-1}
Pair sum in an array.

Ex:
Input -> k=20 , a[]={5,21,0,15,7}
(5+15)=k
Output-> True
Choose path with maximum sum, the starting point will always begin from first column and from each element we c
ways (right, diagonally up , diagonally down) print the maximum path.
Ex:
Input -> a[][]={{1,3,4},
{22,0,4},
{3,6, 4}}

Output ->{{1,0},{2,1},{2,2}}

There are N players in shuffled order, if they are in ascending


order, the middle one got the purple cap, find who is having the
purple cap in the given array.
Ex:
Input :[5.5,2.3,1.4,3.4,4.2]
Output : 3.4

The is an Array of Strings having anagram Twins, if there are


more than 2 anagrams dont print it.
Ex:
Input :[“Maya”, “Aaym”, “Gokul”, “Lukog”, “Kogul” ]
Output : Maya Aaym
Here Gokul is anagram of 3 strings so dont print it.

Find the Islands , given a 2D array you have to find the island
location.
Ex:
Input :[[1,1,0,0],
[0,0,1,0]]
Output : [(0,0),(0,1)],[(1,2)]
Find the Longest Palindromic Substring.
Ex:
Input : “Revives”
Output : “evive”

Given an array find the equilibrium position , element i is


equilibrium if arr[0 to i-1] == arr[i+1 to n-1].
Given a sorted array find the kth elements next largest number.
Gold Mine Problem
Given a gold mine mat[] of size (n x m). Each field in this mine contains a positive integer which is the amount of go
Initially, the miner can start from any row in the first column. From a given cell, the miner can move

● to the cell diagonally up towards the right


● to the right
● to the cell diagonally down towards the right
The task is to find the maximum amount of gold that he can collect until he can no longer move.

Examples:
Input: mat[][]= [[1, 3, 3],
[2, 1, 4],
[0, 6, 4]]
Output: 12

Given 2 strings normal string and a regular


expression string , the regex only contains 2 symbols with characters,
‘*’ is for match all the characters and ‘?’ to match any one character.

Ex: “Apple”
- “A*le” -> Match
- “A*” -> Match
- “A*f” -> Not Match
- “*” - > Match
- “A?ple” -> Match

Finding middle of the array after sorting the array. (Should not use predefined sort function).
Input: {7.0 ,6.0 ,8.0}
Output: 7.0

Print all pairs of anagrams in a given array of strings

Given an array of strings, find all anagram pairs in the given array.
Example:

Input: arr[] = {"geeksquiz", "geeksforgeeks", "abcd",


"forgeeksgeeks", "zuiqkeegs"};
Output: (geeksforgeeks, forgeeksgeeks), (geeksquiz, zuiqkeegs)
Longest Palindromic Substring

Given a string s, return the longest palindromic substring in s.

Input: s = "babad"
Output: "bab"
Explanation: "aba" is also a valid answer.
Equilibrium Index

Given an array arr[] of size n, the task is to return an equilibrium index (if any) or -1 if no equilibrium index exists. T
equilibrium index of an array is an index such that the sum of all elements at lower indexes equals the sum of all elem
higher indexes.

Note: When the index is at the start of the array, the left sum is 0, and when it’s at the end, the right sum is 0.

Examples:

Input: arr[] = [1, 2, 0, 3]


Output: 2
Explanation: The sum of left of index 2 is 1 + 2 = 3 and sum on right of index 2 is 3.

The first problem was to sort the given array in ascending order and find the middle element in the
array. Also, the length of array is odd.

Find the largest palindromic substring in the given string.


Input: “Statues”
Output: tat
Input: “Revives”
Output: evive
Minimum number of given Operations Required to Convert a String to Another String

91. Decode Ways

You have intercepted a secret message encoded as a string of numbers. The message is decoded via the following ma

"1" -> 'A'


"2" -> 'B'
...
"25" -> 'Y'
"26" -> 'Z'
"Pattern printing
N=4
4444444
4333334
4322234
4321234
4322234
4333334
4444444

N=3
33333
32223
32123
32223
3 3 3 3 3" Zoho 2025
2.Reversing K continuous numbers from a list, if the number of
elements is less than K reverse remaining elements.
Ex:
Array = [1,2,3,4,5,6,7,8]
K=3
Output [3,21,6,5,4,8,7]
Array = [1,2,3,4,5,1]
K=5
Output [5,4,3,2,1,1]

Find the longest substring containing a vowel at the start and the
end.
Ex:
alphabet
Output: lph
america
Output: m,r,c

2.Create a new sorted array[ascending] by merging two sorted arrays


[ascending or descending order] without duplicate elements. Only one
loop should be used to merge, remove duplicate and sort.
Ex: [5,3,1] [2,4,5]
Output:
[1,2,3,4,5]
Ex: [9,9,1] [1,2,9]
Output:

[1,2,9]
3.Find the longest subarray with equal number of one’s and zero’s
from an array.
Ex: [1,0,1,1,1,0,0,1]
Output:
1 to 6
Ex: [0,1,0,1,0,1,0,1]
Output:
0 to 4

Move All Zeroes to End


Difficulty: EasyAccuracy: 45.51%Submissions: 286K+Points: 2Average Time: 15m
You are given an array arr[] of non-negative integers. Your task is to move all the zeros in the array to the right end w
maintaining the relative order of the non-zero elements. The operation must be performed in place, meaning you sho
extra space for another array.

Examples:

Input: arr[] = [1, 2, 0, 4, 3, 0, 5, 0]


Output: [1, 2, 4, 3, 5, 0, 0, 0]

Group Anagrams
Medium
Topics
Companies
Given an array of strings strs, group the anagrams together. You can return the answer in any order.

Example 1:

Input: strs = ["eat","tea","tan","ate","nat","bat"]

Output: [["bat"],["nat","tan"],["ate","eat","tea"]]
Rotate Array

Given an integer array nums, rotate the array to the right by k steps, where k is non-negative.

Example 1:

Input: nums = [1,2,3,4,5,6,7], k = 3


Output: [5,6,7,1,2,3,4]

Give the character with it occurrence in a string


Input : occurrence
Output : o1c3u1r2e1n1
Given an array size of n+1 which contain 1 to n in which on
number is duplicate find duplicate in O(n)
Input : 1 2 3 2 4
Output : 2

Climbing Stairs

You are climbing a staircase. It takes n steps to reach the top.


Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?

Example 1:

Input: n = 2
Output: 2

Railway Reservation System in any language offline compiler.


Need to design a Railway Reservation System for a couch which contain
2 cabins each containing 8 seats (2 lower berth, 2 middle berth, 2 upper
berth ,1 side lower, 1 side upper) with the 4 Reservation Against
Cancellation and 2 Waiting List.
1) Display the Empty couch table without a passenger.
2) Add passengers with getting (name,age,berth preference) and
provide a unique pnr number if age > 60 try to give a lower berth.
3) Display passenger with given pnr number.
4) Add Group passengers with the same pnr number and try to make
them accommodate together.
5) Cancel Tickets if the group ticket displays the name list under it
and cancel passengers according to their choice.
6) Reassign those seats to RAC and Waiting list.
7) Add to 2 cabin.
8) Add to 1 couch.

Find the from and to index of the longest subarray with equal number
of 0 and 1.
Input:
a = [1,1,0,0,1,0,0]
Output:
0 to 5
Input:
a = [1,1,1]
Output :
No index found
Given two sorted arrays either in ascending or descending. Create an
new array in ascending order by merging these two arrays without
duplicates. Note there should be no extra loops for sorting and
removing duplicates after merging the array.
Example:
arr1 = [1,3,5,6,7] and arr2 = [9,7,4,3,1]
result = [1,3,4,5,6,7,9]

Print the largest sequence of consonant sub-array between two


vowels
Example:
input: "alphabet"
output: "pha"
input: "hhhhhhappa"

output: "pp"
input: "hhhhhhapp"
output: ""
Given an array of integers and a size k, Reverse every sub-array of k
group elements in the same array.Don't create another array for this.
Example1 :
Input: {1, 5, 7, 2, 3, 6, 7, 8, 9}, k = 3
Output: {7, 5, 1, 6, 3, 2, 9, 8, 7}
Example2 :
Input: {1, 2, 3, 4, 5, 6, 7, 8}, k = 5
Output: {5, 4, 3, 2, 1, 8, 7, 6}

Given a number N, print the following pattern. Examples :


Input : 4
Output :
4444444
4333334
4322234
4321234
4322234
4333334
4444444
Merge two sorted arrays A & B without duplicates and put it into an array
C. Array A & B can be sorted in either ascending or descending order. Array
C should be in ascending order.
Input: [3,5,8] [9,6,4]
Output: [3,4,5,6,8,9]

Input: [9,6,2] [9,3,1]


Output: [1,2,3,6,9]
Find the longest subarray having equal number of 0’s and 1’s.
Doctor Appointment Scheduling
Input: [1,0,1,1,1,0,0,0]
Input:
Output: 0 to 7
○ Number of Doctors = 3
Input: [1,0,1,1,1,0,0]
D1 = [“10
Output: AM”,
1 to 6 “12 PM”, “2 PM”]
D2 = [“9 AM”, “1 PM”, “4 PM”]
D3 = [“11
Input: AM”, “2 PM”, “6 PM”]
[1,1,1]
Output: No subarray found
○ Number of Patients = 2
Longest
P1 = [“9 substring
AM”, “12without
PM”, “4vowels
PM”] and print the longest substrings.
Input1: StrAM”,
P2 = [“10 = “alphabet”
“2 PM”, “4 PM”]
Output1: lph
Input2:
Output: “america”
Output2:
○ Doctor a,
D2m,iscassigned to Patient P1 at 9 AM
○ Doctor D1 is assigned to Patient P2 at 10 AM
Merge Interval (LeetCode 56)
code the number of days between two dates and explain
Sliding Window Maximum – Leetcode 239
Longest Common Prefix – Leetcode 14
(Concatenate 2 String Array and sort the String Array)
Amicable numbers and Armstrong numbers (logic)
3Sum
On problem.
Spot question pipes and cistern (Apti Question) and asked to solve the same question using
programming
Write a program to divide a number without using the division operator
Write a program to divide a number without using only the addition operator
Power of
Output a number
can - without, so
be approximate using
i justpow
saidor/ **
by or
30any inbuilt and
for month funcs.
% by 30 for date.
Merge Sorted Array(LC 88)
An if-else-if question
1. Implement to print using
functionalities the result
OOPS:based on to
Code marks
implement the specified functionalities of the "Large Bank Loan
Due to time constraints, two functionalities were coded
o They also analyzed how I structured the classes and how I made relationship between classes. (You should be stron
o Then for next 15mins by using the tables given in Use Case, I was asked to write SQL query.
https://discuss.codingblocks.com/t/proble-asked-in-sabre-campus-hiring-test/108125
https://leetcode.com/problems/rotting-oranges/description/
https://leetcode.com/problems/two-sum/description/
Pattern programming (Diamond pattern but with numbers)
Print tree in descending order
https://leetcode.com/problems/palindrome-linked-list/description/
https://leetcode.com/problems/implement-stack-using-queues/description/
Simple calculator
Find Difference between two strings
Find the maximum number in array
Remove duplicates in given array
Find Minimum number in array
Check whether a given number N is a prime or not
Write a function to find the difference between the two dates
Write a function to find the Fibonacci series for given n terms
Write a function to validate the email address
How to find the loop in the linked list ?
Check Armstrong number or not
Find nth Fibonacci number
Write a code to do bubble sorting
Write a code to check whether a string is palindrome or not.
Print Unique Elements form the array.
Find the mid character
INPUT: abcdein string
OUTPUT:cdeab
Find the12
Output: longest
34 56common
78 43 prefix
11 in the group of strings

Write
if a Program
we give to Find Second Largest
add(“Hello”,”World”) It shouldnumber
return in an Array
Hello World

Write aa Program
Write Program toto find
Findthe
Second Largest
find the sum number
of a pairinwhose
an Array
sum is equal to
the target number?
Simple calculator
Find Difference between two strings
Find the maximum number in array
Remove duplicates in given array
Find the middle element of the Linked List
Write the code for given series - 0 3 8 15 24 35….
Prime number - programming
Palindrome
The password– programming
“bfebrhvbfi” repeated 3 times (0th,2nd,3rd index) which is greater than the
allowed time so the 3 rd time occurring should be rejected.
Code :for
Input sum of first 5 terms in Fibonacci series
503007
Output : 513117
Check if a given sentence is a palindrome.
List = [1,2,6,7] , target = 17 | target = 30 |target = 32… ,possible operation(+,-,*,/)
20
Wildcard matching
Sum of [3,4,5] is also greater than abc but you have to find the minimum length subarray
REVERSE A STRING (SUBSTRING)
(I/P : HELLO WORLD) (O/P: HELLO DLROW)

PROGRAM
o/p: 70 – PASCAL’S TRIANGLE AND A PATTERN PRINTING PROGRAM
Desc: 301+ 40 = 70 (REPEATED ELEMENTS SHOULD NOT BE ADDED)
Output:
Minimum
o/p: length
18 -> 84 subarray
-> 15 -> 59 ->is 27
{10}
-> 14 -> 65 -> 13 -> 72
Desc: :L1
Input ->=Ln
str[] -> L2 -> Ln-1 -> L3 -> Ln-2 ..................-> Ln/2
"cba"
Output : Rank = 6
PROGRAM
You are given(FIND A TRIPLET
N distinct numbers.THAT SUM
You are TO with
tasked A GIVEN VALUE)
finding the number of groups of 2 or 3 that can be
formed
‘?’ whoseany
– matches sumsingle
is divisible by three.
character
‘*’ – Matches any sequence of characters (including the empty sequence)
3Minimum sum of numbers in an array that exceeds sum
True

Write the code for finding sum of n natural number Without using loop.
Output:
we can 4,5,0,7,8,0,11,0
only collect 1 from each of the houses, giving a totalof 5.
**"email":[email protected]

Basic
➢ coding
Reverse theQuestions
string – Remove frequent elements in the string.
➢ Find{[((}])
Input: the leap year
Output: Not balanced
Output : true

Increasing number sequence


Two sum problem
Sum of n numbers without using loop
Cyclic
Inp- array rotation k times
13425674
Out -4 temperature to lowest)
(highest
Kindly use OOPS. Only C, C++, C#, Java.
Coding-learn
Kindly HCFallofthe
an algorithms
array. concepts and flow. Track the code with the output and
find the mistakes.
Input: aabacdabcedd
Output: a-4 b-2 c-2 d-3 e-1
Number
The of good
maximum pairs
will be -Leetcode
157
OUTPUT: 157
Best to time
Reverse to buyofand
the array sell the
integer stock
print the reversed array.Example:
Input:the
Print {2,5,4,8,9}
number ofOutput: {9,8,4,5,2}.
the given index in array
Example: Input
Example: Input:={2,4,6,8,10} Given=Index:
bananas , Output banas 3 Output: 8
Output: m
Input: [1,3,4,8,8,5]
Output: 5
i/p:2345678
o/p:8765432
Merge two machine
v)schedule arrays for maintenance
Merge sort code with logical error is given , we have to identify the errors

Juspay the
Return Hackathon- Tree
kth largest of Space
level sum in-the
Locking andnecessarily
tree (not Unlockingdistinct).
N-Ary Tree
If there are fewer than k levels in the tree, return -1.
codeyou
Can a Tic-Tac-Toe
implement game in any
a winning language feature in your code? If yes,
probability
how would you implement it?
Juspay - Tree of Space - Locking and Unlocking N-Ary Tree

Juspay | OA | SDE intern + PPO | On-Campus | Nearest Meeting Cell


Juspay | OA | SDE intern + PPO | On-Campus | Largest Sum Cycle

Juspay | OA | SDE intern + PPO | On-Campus | Maximum Weight Node


Juspay - Tree of Space logarithmic Solution (Hackathon part A)
Juspay Tree of space Hackathon part B complete discussion
Reverse an array (using recursion, loops – for & while)
o Leap year program – Given a list of years, display the leap years from the list.
o Pattern program – Print a simple right-angled triangle.
Write a program to reverse a number
Write a program for matrix addition
Palindrome check
Write a program that even or odd by using the function and ask to explain the code how it works.
Reverse a string program
find frequency of characters in a string
code to reverse a string and optimize it.
code for method overriding.
parenthesisthree
maximum checker
number
multiplication(input=[1,2,3,4,5],output=60)
spiral matrix printing
‘2+3-(5-3)+8/2’ output should be
in int format)
Print first Occurence of non repeating character of string
9Print
9 9 fibonacci
9 9 9 9 9 9series using recursion
10 10 10 10 10 10 10 10 10 10
https://www.geeksforgeeks.org/lexicographically-all shortest-palindromic-substrings-from-a-given-string/
https://www.geeksforgeeks.org/remove-duplicates-from-a given-string/
N th term of Fibonacci
Magical Array
Similar to Pig Latin in HackerRank
Negative elements in increasing order at the odd positions.
How would you handle the edge case where the count of positive and negative numbers is imbalanced?
Replace the characters in a string without using inbuilt function - Eg : survey sparrow - replace ‘r’ with ‘s’ and ‘s’ wi
Maximum occurrence of character - solve with an optimal solution and explain all the ways
How many times should A be repeated so that B is a substring of it. If not possible return -1.
Palindrome Number.
Sum of Perfect Squares.
Given an integer n, output the no. of leading zeros in its binary form.
Print the largest jumping number smaller than or equal to a given value.
Given a list of non-negative integers, arrange them such that they form the largest number without rearranging digits
Identify the Number System (US/IND) and convert the number from the US system to Indian system and vice versa.
The first question is to implement FLAMES for the given names in C programming.
Giventhe
Find a sentence, find the largest
Jumping Number palindrome
.A number is calledpossible , case
as Jumping insensitive
Number whenwhile comparing
the adjacent butofprint
digits in the same
a number caseoa
is greater
1.Jumping number will be in range of 10<=Given number. Input:6700 Output:6567
Reverse the string
Check if the given parentheses is balanced or unbalanced
Given space separated digits and print its next integer
○ Prints whetherprint
index(0-based) it isitaccepted or notofin[start,
in the format each line
end] and the unsorted array
in the new line and the sorted array in the new
Maximum area of a triangle formed in the 2d string line. consists of ‘r’,’g’,’b’
characters [Hint : In GeeksForGeeks]

Most and
Given least occurring
a Numerical Stringcharacter
Find the from a given Integer
Kth smallest string from all its possible
permuatations.
Finding whether a given point is inside a circle or not, given the center and radius of the circle in very short time.
Star pattern printing upper triangle but asked in a logical way
Group Anagrams leetcode
Array rotation
Logic to find the anagram in the 2D string.
 Logic
Input: to find
mistral the longest and shortest word in the given sentence.
solution
Output: solution mistral
Write a code using macros to add two numbers.
Write a code in 2D array using pointers.
Write a code to find a mean in a array.
Write a program to reverse the string using pointers.
write a code in linked list to store the date and daily task, and delete a node when date is entered.
Write a code to print the index of the rightmost bit that is set to 1 for a given number
Write a code to check whether two numbers are equal without using "==" operator.
Find the Longest & Shortest word in a given String
Write a The
Output: program to find
smallest theis:Anagrams
word I in the given 2 strings
The largest
Output: word
tea is is :Programmer
found in position 1
eat is found in position 2
Create a function to add two numbers and later without using a return statement to print the added values in the main
count the number of bits for the given decimal number
count athe
Write number
code to findofthe
setlongest
bits. and shortest word in the given sentence
(Company prefers C language to code)
String in C and write code to remove space in the given String
to write a program for an employee using structure.
Write a simple program to differentiate call by value and call by reference.
Write a program to swap two numbers using xor operation.
to write the syntax of malloc and calloc
me to write
Rotate a program
the Array for theongiven
the creation of print
angle and LinkedtheList
resultant array in a spiral matrix.
Constraint:
Do you wantAngles
to enter90,180,
values?270,
: No360, -90, -180, -270, -360
Sample input 2: 90
Output: No to enter values? : No
Do you want

https://leetcode.com/problems/cheapest-flights-within-k-stops/description/

Input : arr = [2, 3, 4, 5, 1, 9, 6], k = 6


Output: arr
Input : [[2, 4],[5,1],[6]]
= [2, 2, 3, 4, 1, 9, 4 , 6, 7, 8, 1, 7, 1], k = 2
Output:
array and[2,how
3, 4,many
7] odd numbers are present in odd index of
array and are
elements return
onecount.
exceptional case (n, n) can be anything (i.e 1
or 0).
Sentence case of a given Camel-case sentence.
Remove duplication without sorting in array.
Given 'n', sum the digits of the number and check if it's prime.
Find prime numbers within a given range and calculate their sum.
Bubble sort code
Swapping two variable without third variable ( asked to provide multiple solutions)
Quick sort code
Counting occurance of every character in a string
Program to find factorial of a number
Array rotation
Write a program to find the missing number in an array
19.Write programming to swap two numbers and add them
Counting occurrence of every character in a string
Sum of subarray with highest sum
Employees eligible for bonus - sql
Write a Html code to display college name and course details
Program to find factorial of a number
Balancing Parenthesis Problem
Syntax for separate the last value of a cubed value (e.g. 5^3 = 125 we have to separate last value of 125 i.e.5)
String Reverse
Second maximum salary in the employee table (SQL)
Swap two numbers without creating new variables
FIBONACCI SERIES
SQL query to list ascending order
Write a code to find second largest element in array
Reversing array
Write a SQL query for the academic table in the TCS application form.
Merge Sort coding
https://leetcode.com/problems/valid-anagram/description/
https://leetcode.com/problems/group-anagrams/description/
https://leetcode.com/problems/is-subsequence/description/
Three palindromic substrings- (https://prepinsta.com/tcs-codevita/3-palindromes-problem/)
Shortest
o/p : Max:path finding
a, Min: x. in the undirected weighted graph

Swap two integer variables without using temporary variable.

https://leetcode.com/problems/best-time-to-buy-and-sell-stock/description/

XOR of 2 arrays

Given an array, find the number of weird numbers(it’s the element which is
smaller than left and larger than right element)
Given an array, any 2 numbers are multiplied and appended at last and repeat
the
Givensteps. array
The tasknumbers,
is to find find
if thethe
last element toreturn
exist isthe
even or odd.
Given anan input of
with first letter average
as alphabet and
followed by ‘&’,value
find ifafter
the ceiling.
‘&’s can be
[Helloworld
ceil(4.25) returns 5 as output]
replaced as any of the following strings: “Virat”, “Sachin”, “Ashwin”, “Bhumra”.
O/P: 2
I/P: V&&&&
Consider you are buying a lottery ticket which has lotteryID. The result is announced and the winnerID is published.
O/P: Virat
I/P: A&&&
Given aantwo strings
input (lotteryID
n, find the countandof winnerID) and k value.
all unique numbers k represents
present between the number
given range.of changes can be made in the lot
O/P: Not possible
Input : 2
Input
Output: : String
91 1 => gpelqanxyk
String 2: =>
Constraints hackerrank
Range => 1<= x <= 10n
K=6

Output : 7

A strip of paper divided into multiple part each of it hold a integer. Find the number of possibilities that
Cut the paper into two part where sum of integer in both the part is equal
Input:[-5,1,4,-6,6,0,2,-2,0]
Output: 4
Given a list of integers, the task is to find the minimum number of operations required to transform the list such that
(The operations allowed are incrementing the number by 1 or decrementing the number by 1).
Example: [4,2,6,3,1]
Output: 1
To achieve a list containing consecutive integers from 1 to 5 (since the size of the list is 5), we need to perform the fo
Reduce the value 6 to 5.
Given three lists position of frogs (X), position of insects (Y) and length of frog tongue (S). Find the maximum numb
X = [4, 3, 1, 2] => position of each frog.
Y = [9, 5, 8, 10] => position of insects.
S = [6, 7, 5, 8] => tongue size of each frog.
Output: [4, 4, 1, 4]

Special group of houses: Given the count of houses in a kingdom. Find the count of set of 3 houses
such that the sum of squares of 2 smaller houses is equal to the square of third house.
Sample input:
n = 10
Sample output:
4
Explanation:
(3,4,5) (4,3,5) (6,8,10) (8,6,10)
Prime Fusion Challenge
Sample input:
N=9
Sample output:
5
Explanation:
Find the prime factors of given value N. later add them together. Repeat the steps until the number is
not possible to divide
9 = 3*3 => 3+3 = 6
6 = 2*3 => 2+3 = 5
5 is the smallest no that can be formed by prime Fusion

A sum [Integer value] is given. From 1 to the sum, find the count of the possible combination
of two prime numbers whose addition would result with the given sum. Note: if sum is 7, the possible
combinations would be [[2,5], [5,2]]. So, the output [Count] would be 2.

A number n [integer] will be given. Imagine there are n number of houses with house numbers
from 1 to n. The government decides to give prize to sets of 3 houses which follows the below criteria.
The square of the largest house number must be equal to the sum of squares of two smallest house
numbers. The 3 house numbers may be random. The user should display the sets of 3 house numbers
that follows the criteria.

code calculator

find the uncommon elements in two arrays.

Roman to Integer

Factors of the given natural number


Find even Number in given natural number
In 2D string to find sub string of an given 2 nd string.
write pseudo code for reversing String at minimal time complexity and find duplicate elements.
Logic for count the frequency of character in string different ways
Reverse a string different ways
Count duplicate word in sentence write code for that.
https://www.geeksforgeeks.org/maximum-product-subarray/
https://www.geeksforgeeks.org/check-if-the-given-push-and-pop-sequences-of-stack-is-valid-or-not/
https://www.geeksforgeeks.org/length-of-the-longest-substring-without-repeating-characters/
https://www.geeksforgeeks.org/minimum-distance-between-words-of-a-string/
https://www.geeksforgeeks.org/maximum-profit-by-buying-and-selling-a-share-at-most-twice/
to show summary and few more.
Assume a two dimensional string array. Each array contains child and father details. '0'th element is the child and '1's
Input:
Example:64
Output:
Input: 55+8+1
Data: "374291--*+
Result:
[[Surya,-8Sivakumar],[Karthi,
Example [Explanation 8-7-4 Sivakumar],[Sivakumar,
2+9-1--81 Rakkaiya],
[Dev, (5,7.3.1.4.6.2)
Input Surya],[Umayaal, Karthi],[Diya,
Output (7,1, 6,2,5, Surya],[Prabu,
3, 4) Sivaji], [Vikram, Prabu]]
Input: Surya, 1 // 1 indicates the number of children Surya has
Output: 2
Input: Sivakumar, 2 // 2 indicates the number of grandchildren Sivakumar has
Output: 3

To find the length of the longest beautiful substring . A string is considered if each vowel appear at least once and the
Sample input: aeiaaioaaaaeiiiiouuuooaauuaeiu
Output:13

To find the length of the maximum size turbulent sub array. A sub array is turbulent if the comparison signs changes
Sample input: 9 4 2 8 6 7 7 2 10
Output:5

To find the maximum profit from the array of prices given for the nth day. You may complete atmost 2 transactions .
Sample Input:3 3 5 0 0 3 1 4
Output:6
Given an array of push elements and an array of pop elements ,we need to find whether the given arrays is a valid sta
Sample input:
5 1 2 6 3(push elements)
1 5 3 6 2 (pop elements)
Output:
True
Given an N jobs with start time and end time and CPU load .Print the maximum CPU load for a particular time.
Input:4(no of jobs)
035
248
598
156
Output: 19
Each element in an array will have the rank. You have to sort the elements of the array based on rank. If two element
Array: [1,5,6,3,10]
Pattern printing
Rank: [100,0,1,100,2]
Op:1[5,6,10,1,3]
121
12321
1234321
Given the string, compute and return the value of the string as an integer.
123454321
How
Input:do you check if two strings are rotations of each other?
“babca”
Output: 9
Print
Input:the shortest
Explanation: Valueduration between
of string is 2*2 the time.
+ 2*1 + 1*3
“Hello from here”
Input:
“reHello from he”
3 Yes
Output:
{12:34:55,
Explanation: 1:12:13,
String 2 is a 8:12:15}
rotated string of String 1.
Given strings,
Output: 4:22:40 find out common fragment.
Input:
Explanation:
List 12:34:55
the subset
3 - pairs of given
8:12:15 array, such that average of one subset is equal to average of the other subset.
= 4:22:40
“Every
12:34:55 morning= I11:22:42
- 1:12:13 want to do exercise”
Input: “Every morning I
8:12:15 - 1:12:13 = 7:0:02 want to do meditation without fail”
5 “It is important that I want to be happy always”
{2, 4, 6, “I
Output: 8, want
10} to”
Output:
Explanation: “I want to” is the common fragment (3 continuous words) found in all the three strings.
{6}, {2, 4, 8, 10}
{2, 10}, {4, 6, 8}
{4, 8}, {2, 6, 10}
Explanation: 2+4+8+10 = 24; 24/4 = 6; average of one subset (6) is equal to average of other subset (6).

Toggling of the bulb question (Bulb Switcher problem)

Find the total area bound by the two rectangles


Input: a1x = -4 ,a1y = 0 ,a2x = 2 ,a2y= 2 ,
b1x= 0 ,b1y= -3 ,b2x= 4 ,b2y= 1
output: 30
Input: 2NaOH+H2SO4->Na2SO4+2H2O
Output: 2 moles of NaOH
1 mole of H2SO4
1 mole of Na2SO4
Input: 2NaOH+H2SO4->Na2SO4+2H2O
Output: 2 moles of NaOH
1 mole of H2SO4
1 mole of Na2SO4
Pattern programming (Inverted Right Angled Triangle).
Write a Program to find the find the sum of a pair whose sum is equal to the target number
Write a program to traversal of a linked list?
Write a program to reverse a string?
Write a program to print the in-order traversal of a tree?
Write a program with Local, global, static variable and explain the flow of the program.
Logic
4. and- code
Delete for Sudoku
Removes Solver. And Sudoku Creator.
the cube
b)remove cube : remove another cube.
● We want to implement the above task only in purescript
N ary tree Locking and Unlocking Function.
Write a query to find second maximum Salary in a given table.
Write a Program to print Fibonacci series.
Write a Program to print Sum of Odd numbers in given range.
Write a Program to print Sum of n numbers in given range(without for loop).
String reverse program
No of words present in the string program
Program to find all permutations of a given word
Given a string s of length N. Find the difference between Length of the longest Palindrome and shortest
Palindrome.
radar -> 4
Queue -> 2
There are N people where all people standing in a queue and an array compatibility of length N ,
where compatibility[i] represents compatibility factor of i

th person. Find the maximum number


of groups that can be formed such that a group should contain peoples appear adjacently and there
must be at least 2 people in group having same compatibility factor.
[2,1,3,2,4,5,4] -> 2
Note : You can assume that at least one group can be formed
Given an array arr of integers. integers may repeat You are allowed to change arr[i] to x such
that x > arr[i]indefinitely. Find the minimum sum of the array after applying changes
[1,2,3,4,5] -> 15 (0 operations)
[1,4,5,4,5] -> [1,4,5,6,7] -> 23 (2 operations)
Basic Pattern Printing:
1
121
123 321
121
1
Basic Pattern Printing:
123454321
1 4 4 1
1 3 3 1
12 21
12 21
1 3 3 1
1 4 4 1
123454321
Given an array of N integers. Find the most frequent element
[ 1,2,3,2,3,34,4,3,44] -> 3
Poweroftwo game program
Coolness factor
String division
Sub array
Function optimisation
Perfect string - A string is considered to be perfect if every letter in the string occurs exactly n/3 times. Any string ca
Given array A, task is to pick given M integers from array A and store in another array B and find least possible valu
Minimum delete operations to make all elements of array same.
Sum output:[11,21,58]
of the elements from an array
output:[14,7]

Diamond collection
Find the sum of odd by
andbacktracking
even number in an array.
Examples:
Test case 1:
Input
Enter number of elements in an array : 6
Enter numbers in the array : 1 6 4 7 8 3
Output :
Sum of even numbers : 18
Sum of odd numbers : 11
Find square root of given number.
Examples :
Test case 1:
Enter the number : 4
Output:
2
Move an element from mentioned position and add it to the end of the array
Note : Avoid using additional array
Examples:
Test case 1:
Enter number of elements in an array : 5
Enter the elements : 1 2 3 4 5
Enter position : 3
Output:
12345
Given a set of non-negative integers, and a sum value, determine a subset which has sum
equal to the given value with minimum number of elements.
Example:
Test case – 1:
Enter the array size : 5
Enter the elements of the array : 8 2 1 1 4
Enter the sum value : 9
Output :
Given
Subsettwo integerssum
to achieve m,n[input],
value 9 isverify
with that
two two integers
elements are the rotation of each other. Two
(8,1)
numbers are considered as a rotation of each other if one number can be read from another
number to start at a different position.
Input Specification:
m,n will be a positive integer
Note:
Don’t consider the number as string
Sample Prompt & Output 1
Enter the first number : 5678
Enter the second number : 7856
Output:
True
Traverse through a matrix from left to right then right to left repeatedly and print the
traversed element
Example:
Test case 1:
Enter the matrix size (rows and columns) : 5 5
Enter the matrix element :
12616
45182
51853
36910
24681
Output :
Traversed result : 1 2 6 1 6 2 8 1 5 4 5 1 8 5 2 0 1 9 6 3 2 4 6 8 1
Write a program to find the given number N present in ascending order with only odd
numbers. Print Yes if in case N satisfies the above conditions, else print No.
Constraints
1. N should be Integer type
Test case 1:
Input:
Enter the number : 13579
Output:
Write a program to find how many squares can be formed from given N sticks and how
Yes
many sticks are left behind.
Constraint
1. A square can be formed beside the prior square.
Test case – 1:
Input
Enter the no. of sticks : 7
Output
No. of squares can be formed : 2
Extra Sticks : 0
Given a number print true if all the digits in the number are odd and they are in ascending order. If any of the conditi
Given the number of sticks, find out how many squares can be made from those sticks if they can be placed adjacent
Given an array, find the sum of all the numbers in array
except the one odd number after an even number.
Eg : Input : 4 8 2 5 5 6
Output : 25
Given an array, find the element of the array which is
closest to the average of all elements of the array.
Eg : 1. Input : 1 2 3 4 5
A person
Output : 3is under going intermittent fasting. He/She
can
2. Input :only
take 18 152 meals per day. The second meal should
25 14 10
be taken within
Output : 15 8 hours and 3 hours after the first meal.
And the next meal should be taken after 16 hours.
Given an array which denotes the number of hours in
the range of 1 to 50. The hours in which the person
taken the meal is given in the array. Verify whether the
person have followed the Intermittent fasting with its
constraints.
Eg : Input : 0 4 21 26 44
Output : yes
Input : 0 17 21 39 44 62
Output : yes
Input : 0 4 20 26 44

Output : no
Given three integers, find whether the numbers are
trap or not.
Trap conditions:
• If the two numbers which is given to the trap is
equal, then it is a trap. (i.e : x=3, y=3 => x=y, so it
is a trap).
• In the given two numbers, if any one of the number
is factor of another number, then it is trap. (i.e : x=
3, y=12 => x%y=0, so it is a trap).
• If the given two numbers does not fall under the
above constraints, then the sum of digits of x have
to be calculated( i.e : stored in z variable) and trap
function have to be called with z and y( i.e : y
remains unchanged)
Eg : 1).x= 895 y=12
z= 22 y=12 => it is a trap.
2). x=895 y=11
z=22 y=11 => it is a trap.

Given three numbers a, b and y.


Step.1: Generate numbers in the range a to b.
Step.2 : Check every number in the range a to b
with y whether it is trap or not.

191CS105 ABINAYA R

Step.3 : If the two numbers are trap increment the y


as y+2. Else decrement the y by 1.
Step.4 : If y value is less than 3, reset the y value to
3.

Eg : Input : 2 10 12
Output : yes

Note: In round 2 totally five questions will be


given. Each will be given if you solve the previous
questions with all test cases and edge cases passed.
I have solved totally 4/5 questions with all edge
cases and test cases passed.
Remove duplicates from a string
Merge two arrays
Given an array, move all the zeroes to the end of the array
Given a seat number in an airplane, tell whether it is window seat, middle
seat or aisle seat
Given an array, tell if there exists an element in the array such that the sum of the elements to its left side is equal to
its right side
Given two arrays of size n, output the two values from the arrays such
that their sum is minimum and their index is not the same
Leader numbers in an array

Given an array of numbers find the sum of the array by rejecting an odd number which is
consecutive of an even number.
Input: 4 2 4 3 5
Output: 15
Explanation: 4+2+4+5= 15(rejecting 3 as it is the consecutive number)

Given an array of numbers find the average of the numbers in the list and return the average
number or the number closest to the average in the array.
Input: 1 2 3 4 5
Output: 3
Explanation: average of array is 3 and number 3 is there in the list so return it.
Fasting sequence problem:
Given an array of number, find whether the number follows the given sequence or not.
M(3> x <8),M(x>16 ), M(3> x <8),M(x>16 ), M(3> x <8),M(x>16 ), ..........
(or)
M(x>16 ), M(3> x <8),M(x>16 ), M(3> x <8),M(x>16 ), M(3> x <8), ..........
If the array follows the sequence return “Yes” else “No”
Input: 0 3 21 26 39
Output : No
Traps problem:
Explanation: The difference between 0 and 3 is not between (M(3> x <8)), sequence failed
Given three variables N1,N2 and y.
A number x between the range N1,N2 is said to be Trap if it follows the below condition:
1. if x==y
2. if x is a multiple of y.
If the number is not trap , then find the sum of digits and try it with above condition.
Ex: 895,11 is not trap.
8+9+5=22 ,11 is a trap.
If the number in the range is trap increment y by 2 , if not trap after sum of digit also then decrement
the y by 1.
If y is less that 3 , then reset to 3.

Output is to print the trap numbers from the range N1 and N2.
Given an n*n matrix , traverse the matrix in a particular order from 0,0 to n,n and return to 0,0. The
output is the total numbers of 1’s in the path.
The matrix consists only 0 – there is a path.
1 – count along with the path
-1 – block.
For 0,0 to n,n – only right and down move.
For n,n to 0,0 – only left and up move.
Write a program to print the following pattern.
INPUT 1
5
OUTPUT
1
121
12321
1234321
1 2 3 4a 5program
Write 4 3 2 1 to print the following pattern.
INPUT 1
5
OUTPUT

555555555
544444445
543333345
543222345
543212345
543222345
543333345
544444445
5Write
5 5 5a 5program
5 5 5 5 to find the prime number in the array which is greater than the other
prime numbers from left to right of the array. If the right most number is a prime
number, then it is also the greatest prime number.
INPUT 1
13 4 8 5 9 7 17 18 11 20
OUTPUT 1
17
INPUT 2
13 4 8 5 9 7 17 18 11 20 3
OUTPUT 2
17 3 a program to make square matrix in a spiral form of size n*n and print the same.
Write
INPUT 1
6
OUTPUT 1

123456
20 21 22 23 24 7
19 32 33 34 25 8
18 31 36 35 26 9
17 30 29 28 27 10
16 15 14 13 12 11
IN
3
OUTPUT 2

123
894
765
Remove Duplicate letters
Merging elements of two different arrays alternatively in third array
Move zeros
Seating Arrangement
Find an element in array such that sum of left array is equal to sum of right array
Minimum sum of two elements from two arrays such that indexes are not same
Pascal’s Triangle
Prime Leaders in a array [Write a program to print prime numbers such that the prime number present in ith position
an leaders ie greater number towards it right]
Given numbers to Dial pad letters ‘0’ for one blank space

Sample input:-
9999666446660222666777_7
Sample output:-
ZOHO CORP
Spiral Pattern Printing
Trapping of Water
Printing the sum of arrays excluding the odd numbers following the even number.
Printing the closest number to average of the array
Intermittent Fasting
TRAPS
Sum of even numbers in array
Closest average number in array
Fasting check (yes or no)
Valid Sudoku
Find Winner in Tic Tac Toe Game
Write a program to convert the mobile numeric sequence into its equivalent text
message string. The underscore symbol (‘_’) is used as a pause.
INPUT 1
9999666446660222666777_7
OUTPUT 1
ZOHO CORP
INPUT 2
4433555_555666
OUTPUT 2
HELLO
Write a program to move the zeros to the end of the array without using duplicate
array.
INPUT

Write
1 0 2 0a 3program
0 4 5 6 0to7find the position of the seat in the flight if the seat number is given.
If it
OUTPUTis a window seat, print “WS”, if it is a middle seat, print “MS”, if it is a corner seat,
print
1 2 3 “CS”.
45670000

FLIGHT SEAT ARRANGEMENT

INPUT 1
22
OUTPUT
CS
Remove duplicate characters in string
Input : Zoho
Output: Zoh
Input : Avengersendgame
Output:
AlternateAvengrsdm
array
Input: [ 1,2,3,4]
[ 10, 20, 30 ]
Output: [ 1,10,2,20,3,30,4]
Input: [ 1,2 ]

[ 10,20,30,40,50 ]
Output: [ 1,10,2,20,30,40,50 ]
Move all 0’s at the end
Input: [ 1,0,4,5,0,3,6 ]
Output: [ 1,4,5,3,6,0,0 ]
Aeroplane seating arrangement

WS - Window Seat, MS - Middle Seat, AS - Aside seat. User will enter the seat
number and you have to find the seat.
Input: 6 Input: 34 Input: 42 Input: 29
Traverse
Output: WS the Output:
array and
ASif Output:
an element’s right side
WS Output: MSelements sum is
equal to left side elements sum, then print that element. First element’s
left side sum is 0. Last element’s right side sum is 0.

Input: [ 1,2,3,3 ] Input: [ 1,9,7,2,0,8 ]


Output: [ 3 ] Output: [ 7 ]
Traverse the array and if an element is prime and greater than the
right side elements, then print the elementI. If the last element is prime,
always print the last element.
Input: [ 1,4,11,8, 2, 1 ] Input: [ 1,3,3 ]
Output: 11, 2 Output: 3
Mobile Numeric keypad:
➔ These values has nothing (Null): ̈1, *, #, _ ̈
➔ ̈0 ̈ has the value of space as nokia mobile.

Input: 99996664466602227776667
Output: ZOHO CROP
Input: 9_99
Output: WX
Input: 22_444_8
Output: BIT
Input: 220_4440_8
Output: B I T
Given a sequence of numbers, find the resultant string if that sequence of numbers was pressed in a keypad mobile
Fill an NxN array in a spiral manner
adsasda
a 55
4444
Absolute Difference:
∣TDS−TS ∣=∣12−14
Return a Phone ∣=2 from a given string
number
Example:
Input: kj98%*(**&b4cv78kj(*%9)*^)5vh9^%#&78;@;
Output: 9847895978
Return number of dual-subarrays can be formed from a given array, In which separation of two subarray must have t
Example:
Input: [2,4,6,1,8,3]
Output: 2
Explanation: 1. [2,4,6] =12 [1,8,3] =12
2. [4,8] =12 [2,6,1,3] =12
Given a list of integers, the task is to find the minimum number of operations required to transform the list such that
(The operations allowed are incrementing the number by 1 or decrementing the number by 1).
Example: [4,2,6,3,1]
Output: 1
To achieve a list containing consecutive integers from 1 to 5 (since the size of the list is 5), we need to perform the fo
Reduce the value 6 to 5.

String is anagram or not


Pair sum problem
Program and Logic to add Numbers in string
Palindrome program
String Anagram program
Pair sum problem- If an integer array is given we have to print the count of pairs in array having the sum as k
Remove
segregatecommon subsequence
0 and 1,longest from the
consecutive string in a recursive
subarray,find manner
even or odd if any
without letter
using occurs
modulo continuously for 3 times
operator
Sample input: aqqqbceeed
Sample output:
Iteration 1: abceeed
Iteration 2: abcd

Basic C functions (scanf, printf)


Array
Reverse a string
Word count in a string
No of letters in a string
Palindrome or not
Find the Vowels in the Sentence
ReverseOutput
Sample the String
2: 4
Long Programming Round [ ER or Class Diagram or flowchart + Coding ]
Build a Music
Nth prime subscription application. And solves following requirements.
number
1. Create a catalogue of music with artist, album, year, and genre details for each song
No of palindromes
2. Create in atheir
playlist with sentence
favorite songs
3. Sort and filter songs based on Artist, Album, Year and Genre
4. Add multiple devices with their account
5. Purchase individual albums if he/she doesn't have a valid subscription.
6. Purchase subscriptions as,
[a. Weekly, b. Monthly, c. Quarterly, d. Yearly]
7. Sync playlists and purchased songs between devices.
Merge 2 unsorted array.
1.Binary search algorithm implementation (both ascending and descending) with time complexity
2.Quick sort implementation
PROGRAMMING QUESTION: and he
GETasked me to FROM
STRING explainUSER,
the whole
FINDcode with time complexity
THE
OCCURENCE OF TARGET CHARACTER IN THE STRING.
Print leap years within the given range
2. Print the factorial and its reverse
1.REVERSE EVERY WORD IN A STRING
2.PASCAL’S TRIANGLE
3.REVERSE THE GIVEN STRING
Program
Print to print
the same Armstrong
output Numbers
string in reverse.within any range
llleh
Print dorow
the non occurred character or alphabet Input : computer
Output : abdfghijklnqsvwxyz
Reverse a string without using strrev function
o Print the palindrome substrings in a given string
o Print all the prime numbers within a given range
Swap adjacent elements in an array.
2) Remove vowels in string.
Remove parenthesis form the given string
Removeoutput:
Sample the duplicate elements from the dynamic array
irannab output:
Sample namma etutitsni
41 2 3 4 5
Output:37

9Check
4 3 1 whether
8 two given numbers are co-primes.
Output: 1 1 2 3 3 4 4 5 8 9
1- To find the prime number within the given interval
2- Occurance of letters in the given word.
To print the Armstrong numbers present within the given interval
•To find
Input the occurrence count of each character in the given string
: babcabpqp
Output : b-3 a-2 c-1 p-2 q-1
Print Armstrong Numbers within the given range.
print the characters count only when the
A count is prime.
(Use the loops efficiently)

Implement a program to find the number of repeated elements in the word “Geeks for geeks”.
Company Batch
Avasoft 2024
Avasoft 2025
Avasoft 2025
Avasoft 2025
Avasoft 2025
Avasoft 2025
Avasoft 2025
Avasoft 2025
Avasoft 2025
TVS Motors 2024
TVS Motors 2024
Kaar technologies 2025
Kaar technologies 2025
Kaar technologies 2025
Kaar technologies 2025
Kaar technologies 2025
Kaar technologies 2025
Kaar technologies 2025

ZOHO 2025
ZOHO 2025
ZOHO 2025
ZOHO 2025

ZOHO 2025
ZOHO 2025

ZOHO 2025

ZOHO 2025

ZOHO 2025
ZOHO 2025

ZOHO 2025

ZOHO 2025

ZOHO 2025

ZOHO 2025
ZOHO 2025

ZOHO 2025

ZOHO 2025

ZOHO 2025

ZOHO 2025

ZOHO 2025
ZOHO 2025

ZOHO 2025

ZOHO 2025

ZOHO 2025

ZOHO 2025

ZOHO 2025
ZOHO 2025
ZOHO 2025

ZOHO 2025

ZOHO 2025

ZOHO 2025
ZOHO 2025

ZOHO 2025

ZOHO 2025

ZOHO 2025
ZOHO 2025

ZOHO 2025
ZOHO 2025

ZOHO 2025

ZOHO 2025

ZOHO 2025
ZOHO 2025

ZOHO 2025

ZOHO 2025

ZOHO 2025

ZOHO 2024
ZOHO 2024

ZOHO 2024

ZOHO 2024

ZOHO 2024
ZOHO 2024

ZOHO 2024

ZOHO 2024

ZOHO 2024
ZOHO 2024

ZOHO 2024

ZOHO 2024
WORKHALL 2026
WORKHALL 2026
WORKHALL 2025
WORKHALL 2025
WORKHALL 2025
WORKHALL 2025
WORKHALL 2025
WORKHALL 2026
WORKHALL 2026
WORKHALL 2026
WORKHALL 2026
WORKHALL 2026
WORKHALL 2026
WORKHALL 2026
WORKHALL 2026
Mr. Cooper 2026
Mr. Cooper 2025
Mr. Cooper 2026
Mr. Cooper 2026
Mr. Cooper 2025
Mr. Cooper 2025
Mr. Cooper 2025
Mr. Cooper 2025
Mr. Cooper 2025
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
CEI INDIA 2025
CEI INDIA 2025
CEI INDIA 2025
GX Group 2024
DataCorp Traffice 2025
DataCorp Traffice 2025
DataCorp Traffice 2025
DataCorp Traffice 2025
Aaludra 2024
DataCorp Traffice 2025
DataCorp Traffice 2025
DataCorp Traffice 2025
DataCorp Traffice 2024
DataCorp Traffice 2024
DataCorp Traffice 2024
DataCorp Traffice 2024
DataCorp Traffice 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Jman 2025
Kaar technologies 2025
Kaar technologies 2025
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Kaar technologies 2025
Informatica 2024
Kaar technologies 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Kaar technologies 2024
Informatica 2024
Informatica 2024
Informatica 2024
DeltaX 2024
DeltaX 2024
Kaar technologies 2024
Kaar technologies 2024
DeltaX 2024
DeltaX 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Thoughtworks 2025
Thoughtworks 2025
Kaar technologies 2024
Kaar technologies 2024
Kovai.co 2024
APPLIED MATERIALS 2025
Tiger Analytics 2024
APPLIED MATERIALS 2025
Tiger Analytics 2024
Tiger Analytics 2024
Tiger Analytics 2024
Tiger Analytics 2024
Tiger Analytics 2024
Tiger Analytics 2024
Tiger Analytics 2024
Tiger Analytics 2024
Tiger Analytics 2024
Tiger Analytics 2024
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
Juspay 2026
Juspay 2026
Juspay 2026
Juspay 2026
Juspay 2025

Juspay 2025
Juspay 2025

Juspay 2025
Juspay 2025
Juspay 2025
WNS vuram 2025
WNS vuram 2025
WNS vuram 2025
WNS vuram 2025
WNS vuram 2025
WNS vuram 2025
WNS vuram 2025
Saama Technologies 2025
Responsive 2025
Responsive 2025
Responsive 2025
Responsive 2024
Responsive 2024
Responsive 2024
Responsive 2024

EY Global Delivery Service 2025


EY Global Delivery Service 2025
EY Global Delivery Service 2025
KT TELEMATICS Solution 2025
Petrus Technologies 2025
Petrus Technologies 2025
Mr. Cooper 2024
Survey Sparrow 2024
Survey Sparrow 2024
Survey Sparrow 2024
Soliton 2024
Soliton 2024
Soliton 2024
Soliton 2024
Soliton 2024
Soliton 2024
Soliton 2024
Soliton 2024
Soliton 2024
Soliton 2025
Soliton 2025
Soliton 2025
Soliton 2025
Soliton 2025
Soliton 2025
Soliton 2025
Soliton 2025
E-con Systems 2024
E-con Systems 2024
E-con Systems 2024
Presidio 2024
Presidio 2025
Presidio 2025
Mistral 2024
Mistral 2024
Mistral 2024
Mistral 2024
Mistral 2024
Mistral 2024
Mistral 2024
Mistral 2024
Mistral 2024
Mistral 2024
Mistral 2025
Mistral 2025
Mistral 2025
Mistral 2025
Mistral 2025
Mistral 2025
Mistral 2025
Mistral 2025
Data Patterns 2025
Data Patterns 2025
Data Patterns 2025
Data Patterns 2025
Data Patterns 2025
Data Patterns 2025
Lucid Imaging 2025
Lucid Imaging 2025
Lucid Imaging 2024
Lucid Imaging 2024
CodingMart 2025

CodingMart 2025
CodingMart 2025
Accenture 2024
Accenture 2024
Accenture 2024
Accenture 2024
Accenture 2024
Accenture 2024
TCS 2024
TCS 2024
TCS 2024
TCS 2024
TCS 2024
TCS 2024
TCS 2025
TCS 2025
TCS 2024
TCS 2024
TCS 2024
TCS 2024
TCS 2024
TCS 2024
TCS 2024
TCS 2024
TCS 2024
TCS 2024
TCS 2024
TCS 2024
TCS 2024
TCS 2024
TCS 2024
TCS 2024
Trustrace 2025
Trustrace 2025
Trustrace 2025
Trustrace 2025
Trustrace 2025
Trustrace 2025
Trustrace 2025
Trustrace 2025
Trustrace 2025

Trustrace 2025

Trustrace 2025

Trustrace 2025
Trustrace 2025
Trustrace 2025
Trustrace 2025

Trustrace 2025

Trustrace 2024

Trustrace 2024

2024

Turing 2025

Turing 2025

Turing 2025
Turing 2025

Turing 2025

Turing 2025

RFPIO 2023

RFPIO 2023

RFPIO 2023

RFPIO 2023
RFPIO 2023
RFPIO 2023
RFPIO 2022
RFPIO 2021
RFPIO 2021
RFPIO 2021
Zoho 2022
Zoho 2022
Zoho 2022
Zoho 2022
Zoho 2022
Zoho 2022
Zoho 2022
Zoho 2022
Zoho 2022

Zoho 2022

Zoho 2022

Zoho 2022

Zoho 2022

Zoho 2022
Zoho 2022

Zoho 2022

Zoho 2022

Zoho 2021

Zoho 2021

Zoho 2021

Zoho 2021

Zoho 2021

Intersect IQ 2023

Intersect IQ 2023

Intersect IQ 2023
Data Corp Traffic 2023
Data Corp Traffic 2023
Xoriant 2021
Xoriant 2021
Xoriant 2021
Xoriant 2021
Juspay 2023
Juspay 2022
Juspay 2022
Juspay 2021
Xoriant 2021
Xoriant 2021
Xoriant 2021
Xoriant 2021
Xoriant 2021
Xoriant 2021
Xoriant 2021

Mitsogo 2022

Mitsogo 2022

Mitsogo 2022

Mitsogo 2022
Mitsogo 2022

Mitsogo 2022
DeltaX 2021
DeltaX 2021
DeltaX 2021
DeltaX 2021
DeltaX 2021
DeltaX 2021
DeltaX 2021
DeltaX 2021
ThoughtWorks 2023
ThoughtWorks 2023
ThoughtWorks 2023
Zoho 2023

Zoho 2023

Zoho 2023
Zoho 2023

Zoho 2023

Zoho 2023

Zoho 2023
Zoho 2023

Zoho 2023
Zoho 2023
Zoho 2023

Zoho 2023

Zoho 2023

Zoho 2023
Zoho 2023
Zoho 2023
Zoho 2023
Zoho 2023

Zoho 2023

Zoho 2023

Zoho 2023
Zoho 2023

Zoho 2023

Zoho 2023

Zoho 2023

Zoho 2023

Zoho 2023
Zoho 2023

Zoho 2023

Zoho 2023

Zoho 2023
Zoho 2023
Zoho 2023
Zoho 2023
Zoho 2023
Zoho 2023
Zoho 2023
Zoho 2023

Zoho 2023

Zoho 2023
Zoho 2023
Zoho 2023
Zoho 2023
Zoho 2023
Zoho 2023
Zoho 2023
Zoho 2023
Zoho 2023
Zoho 2023
Zoho 2023
Zoho 2023

Zoho 2023
Zoho 2023

Zoho 2023

Zoho 2023
Zoho 2023
Zoho 2023
Kovai.co 2021
Kovai.co 2021
Kovai.co 2021

Trustrace 2023

Trustrace 2023

Trustrace 2022
WNS VURAM 2022
WNS VURAM 2022
WNS VURAM 2022
WNS VURAM 2022
WNS VURAM 2022
WNS VURAM 2022
Survey Sparrow 2023

Lucid Imaging 2022


WNS VURAM 2021
WNS VURAM 2021
ACHERON 2023
ACHERON 2023
ACHERON 2023
ACHERON 2023
ACHERON 2023
ACHERON 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023

Mr.Cooper 2023
Mr.Cooper 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2022
KAAR TECHNOLOGIES 2022
KAAR TECHNOLOGIES 2022
KAAR TECHNOLOGIES 2022
KAAR TECHNOLOGIES 2022
KAAR TECHNOLOGIES 2022
KAAR TECHNOLOGIES 2022
KAAR TECHNOLOGIES 2022
KAAR TECHNOLOGIES 2022
KAAR TECHNOLOGIES 2022
S No
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
Questions
Explanation of bubble sorting
Types of sorting
What is linked list?
Stack operations
What is Double pointer
How to find Loop in Linked List
Time Complexity of Searching algorithms
Can you write the preorder and inorder traversals of a given tree?
How would you implement inorder traversal using recursion?
How would you move the last n elements to the front of a singly linked list?
What data structure is used in Spotify for navigating through songs?
Can you explain circular doubly linked lists?
define some use cases or scenario where a particular data structure will be used like HashMap and HashSet
Merge Two Sorted Linked Lists
Given an array for eg : a[] = {3,4,12,8,6} They gave an array and asked to tell what is subarray and subsequence.
Given an element, implement it using stack and explain the working flow correctly.
Concept
How willofyou
Stack andthe
detect Queue
loop in a Linked list? (Note: Don't tell slow pointer faster pointer logic. They expect differen
Logic rather than common one)
Given an array convert it into BST
Write the logic for lnorder traversal and explain it
Array vs Linked List
Circular Linked List
D/B Binary Tree and Binary search Tree
Implement the logic of Binary search Tree
Explain
They treethe
asked traversals (DFS - Preorder,
time complexity lnorder,
of the above Postorder)
coding which I have implemented. [They told me I don't need any
optimization you can go with the Brute Force approach.]
Hashmap
array fronttime
and complexity andReturn
greater at last. space complexity.
the minimum no of swaps.
I/P: a[]= {1,24,10,14,7,3} b = 20

A graph in which all vertices have equal degree is known as ____


(A) Complete
which graph (B)data
of the following Regular graph
structure (C)beMulti
will graph (D) Simple graph
required?
(A)
The Hash table (B) Queue
time complexity (C) Binary
of quicksort search tree (D) Stack
is ……..
A.
TheO(n)
totalB.number
O(logn)
ofC. O(n2) D. O(n
comparisons in alogn)
bubble sort is ….
A. O(n logn) B. O(2n) C. O(n2) D. O(n)
A. LIFO, Last In First Out B. FIFO, First In First Out C. Both a and b
D. None of these
What is datastructure
Difference between linear and non linear data structure
types of sorting
which sorting method is more efficient
how merge sort, bubble sort works
What is LinkedList? Difference between Array and LinkedList
Explain about Queue
Explain about Stack
Real time example of linkedlist ,stack, queue
What is Circular Queue with realtime example?
Circular Linkedlist
How Queue can be implemented?
Time complexity of removing and inserting an element to queue that implemented using linkedlist.
Which is Underlying Datastructure of Hashset
How elements are inserted in Hashtable?
What is collision in hashtable?
Types of searching Techniques
What is Breadth-first search (BFS)
Explain the algorithm for Inorder, Preoder and Postorder Traversal.
about tree traversal, BFS and DFS
which shortest path algorithm is more efficient
What is Data Structure?
DEFINE DATA STRUCTURES (STACK, QUEUE)
DFS and BFS
Internal working of map
write the
Asked to pseudocode for binary
explain the logic search. tree for Merge
and recursion
Sort.
Priority queue
Dequeue properties
Merge sort and quick sort
Heap time complexity
What is the time complexity of bubble sort, and how is it implemented?
How many traversals does bubble sort takes?
What is the Time complexity for sorting in BST?
Where Postfix, Prefix and Infix is used?
Linear and Non-linear Data structures
Insertion sort and Bubble sort.
Difference between array and struct
What are the different types of Linked List?
Difference between linear search and binary search
Sorting algorithms explain insertion sort in notepad.
types of sort
real
if time booking
you're examplestickets
of stack
for railway seats, one may get seat successfully booked, other may get no seats available, ot
may get invalid access. Which data structure is responsible for such kind of activities?
You need to search phone number of a person using data structures and you should not use any database or files?
DFS, BFS of graph
Cycle detection
Topological sort
Djistra and Bellman-Ford algorithms
Cycle of maximum weight of the graph
What is array?
What is linked list?
Types of data structure?
Example for Stack, Linked list
Operations on stack
Time complexity for array, linked list
Find if there is loop in a linked list
What is a Linked List?
Types of Linked List
Difference between Array and Linked List?
Explain Binary Search Algorithm (Concept)
What is AVL Tree?
Types of Traversal in a Tree?
Data structure ( Stack, Queue)
Types of data structure
● Types of linked list
● Difference between singly linked list, doubly linked linked list and circular linked
Difference between linked list and nested list
Types of linked list
Real time applications of stack and queue.
Difference between stack and queue
 Explain about the sorting and searching algorithms.
What is Linked List? Give one real time example.
Difference between Linked list and Array.
Difference between call by value and call by address and which is better to use?
What is call by reference?
Program for binary search in data structures.
Company Batch
Avasoft 2025
Avasoft 2025
IAMNEO 2025
IAMNEO 2025
IAMNEO 2025
Uhnder 2025
Lucid Imaging 2025
Mr. Cooper 2026
Mr. Cooper 2026
Mr. Cooper 2026
Mr. Cooper 2026
Mr. Cooper 2026
Mr. Cooper 2025
Mr. Cooper 2024
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025

CEI INDIA 2025


CEI INDIA 2025
CEI INDIA 2025
CEI INDIA 2025
CEI INDIA 2025
GX Group 2024
GX Group 2024
Informatica 2024
Informatica 2024
Informatica 2024
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Kaar technologies 2025
Kaar technologies 2025
Informatica 2024
Informatica 2024
Kaar technologies 2025
Kaar technologies 2025
Kaar technologies 2024
Thoughtworks 2025
TIger Analytics 2024
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
WNS vuram 2025
WNS vuram 2025
E-con Systems 2024
E-con Systems 2024
Hexaware 2024
Mistral 2024
Mistral 2025
Data Patterns 2025
TCS 2025
RFPIO 2021
IAMNEO 2022
IAMNEO 2022
IAMNEO 2022
IAMNEO 2022
Juspay 2023
Juspay 2023
Juspay 2023
Juspay 2023
Juspay 2023
Xoriant 2021
Xoriant 2021
Xoriant 2021
Xoriant 2021
Xoriant 2021
Xoriant 2021
Thoughtworks
KreditBee 2023
KreditBee 2023
KreditBee 2023
KreditBee 2023
KreditBee 2023
KreditBee 2023
WNS vuram 2021
KAAR TECHNOLOGIE 2023
KAAR TECHNOLOGIE 2023
KAAR TECHNOLOGIE 2023
KAAR TECHNOLOGIE 2023
KAAR TECHNOLOGIE 2023
KAAR TECHNOLOGIE 2022
KAAR TECHNOLOGIE 2022
KAAR TECHNOLOGIE 2022
KAAR TECHNOLOGIE 2022
KAAR TECHNOLOGIE 2022
KAAR TECHNOLOGIE 2022
KAAR TECHNOLOGIE 2022
KAAR TECHNOLOGIE 2022
S No
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Questions
what is object-oriented programming and what is the advantage of it over normal Structural programming Language?
what areabstraction
explain the concepts
andthat are alternative
asked available inapproach
OOPS to achieve abstraction (By means of data hiding by declaring the d
as private).
Can we write nested structure in C, if so, then why there is a concept of oops, if not why?
What is the difference between an abstract class and an interface?
What are the interfaces that we regularly use in daily coding?
What is inheritance, and how do the keywords extends and implements work in OOPS?
What is the use of the static keyword in OOPS?
OOPS concepts with respect to chess game.
Inheritance and types
Polymorphism
Abstraction
Encapsulation
What is class and object? real world example
What is static and dynamic polymorphism?
Implementation of method overloading and overriding.
Which keyword will let us use the class or function without creating an object to it?
What are the scheduling algorithms?
What is encapsulation
What is inheritance
Stack implementation of push and pop using any language.
Explain Polymorphism
Difference between overloading and overriding
What is Inheritance
What is static keyword in java
Explain Encapsulation with example
What is class and object ? real world example
What is scope resolution operator?
Explain OOPs concept
Inheritance and types
Polymorphism
Abstraction
Encapsulation
Explain oops concepts
Why inheritance
What is the need for polymorphism?
Real time example for abstraction
WHAT IS OOPS? (WITH REAL TIME EXAMPLE)
CHARACTERISTICS OF OOPS.
 WHAT IS POLYMORPHISM AND DIFFERENCE BETWEEN IT’S TYPES
Tell me about oops.
Why we use oops.
What is Oops and Abstraction
Explain oops concepts
Why inheritance
What is the need for polymorphism?
Real time example for abstraction
Which concept is used banks.
Dynamic polymorphism
Keyword to implement encapsulation in a program
What is Polymorphism and real time example
What is the purpose of object oriented programming
Complete explanation of Oops concept (four basic principles) with real time Example
Why multiple inheritance is not supported by Java
What is static keyboard and final keyword?
Whether an interface can have a definition/implementation for a method?
code multiple inheritance in oops
implememt the acess specifiers and non acess specifiers in the code.
write a code in abstract class
Code for polymorphism, method overload and override.
What is Multiple and Multilevel Inheritance.
What is Inheritance
Objects, class with realtime example like employee management system.
.Polymorphism ->method overloading, method overriding.
What virtual functions and pure virtual functions are.
What is Polymorphism?
What is Data Abstraction?
What is Inheritance?
Types of Inheritance
Oops concept- What is Inheritance, encapsulation, polymorphism
What is Database Management Systems
class , object , inheritance (types & examples) , Polymorphism (types and examples) , Deadly Diamond problem
Method overloading and method overriding
What is polymorphism?
Types of inheritance
what is programming explain to a 10yr old kid
encapsulation(explain to a kid)
real time example of oops concepts (as my area of interest is OOPS)
Difference between class and structure
Company Batch
Avasoft 2025
Avasoft 2025
Avasoft 2025
WORKHALL 2025
Mr. Cooper 2026
Mr. Cooper 2026
Mr. Cooper 2026
Mr. Cooper 2026
Mr. Cooper 2025
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
DataCorp Traffice 2025
DataCorp Traffice 2025
Jman 2024
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Kaar technologies 2025
Kaar technologies 2025
Kaar technologies 2025
Kaar technologies 2025
Kaar technologies 2025
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
kovai.co 2024
APPLIED MATERIALS 2025
TCS 2024
Tcs 2024
Trustrace 2025
Trustrace 2025
Trustrace 2025
Trustrace 2025
Trustrace 2025
RFPIO 2023
RFPIO 2023
RFPIO 2023
RFPIO 2021
Xoriant 2021
kovai.co 2021
kovai.co 2023
kovai.co 2023
kovai.co 2023
KreditBee 2023
KreditBee 2023
KreditBee 2023
KreditBee 2023
WNS VURAM 2022
WNS VURAM 2022
Mr.Cooper 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2022
KAAR TECHNOLOGIES 2022
KAAR TECHNOLOGIES 2022
KAAR TECHNOLOGIES 2022
S No
1
2
3
4
5
6
7
8
9
10

11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71

72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101

102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
Questions
Explain the difference between MySQL and PostgreSQL
About ACID properties
Situations where to use MongoDB
Schema of Mongodb
Comparison of relational and non-relational databases.
Comparison
From Table 1ofmake
MongoDB
a queryand
thatSQL
gives maximum marks for each subject.
Convert the above SQL query into code (HINT: use of struct).
Differentiation of inner join and natural join with tables 1 and 2.
Can you normalize a table with 15 columns?
How do you rectify update anomalies in a table?
constraints, aggregate functions, views
Write an SQL query to get the number of rooms in each hostel
Entity-relationship model for a hostel room allocation project
What is a Database
Structured and unstructured DB
What is mongoDB
Askedare
There about Joinsgiven.
2 tables and explain about
The first tableitscontains
types briefly
the details of stud_id,stud_name and their data. In the second table s
will you make this to be used. [explained About foreign key and when its implemented]
Given a table write a query to find the average marks of the given stud_id
What is Deadlock and how to prevent it?
ACID properties.
Given a Table and output Table, asked to write SQL query to obtain the output table.
What is primary key
What is composite key
SQL is used for?
Inner Join SQL Query
Query to fetch employee records whose salary lies between 50,000 and 70,000 (USE BETWEEN OR AND)
Query to fetch employee details whose address (city) is DELHI (USE LIKE KEYWORD)
Query to fetch count of employees in HR department (USE OF COUNT FUN AND GROUP BY)
What is normalization?
Explain the types of joins in MySQL
About joins and types of joins
Difference between left and right join
Select query, join query
Difference between “where” and “having” clause.
Types of Joins
Types of relationship
Draw an example for many-many relationship
Write an query to print num_of_students in each department from a table
Types of joint to be used to retrieve counts of students from each department when there are two separate tables nam
What is Primary key and Foreign key?
How more than one organizations details can be stored in a single table?
Draw a schema diagram for Facebook application
Index in sql
Create two tables with a Foreign key reference
Query to find the duplicate records in a table
Query to find topper in each department in the college
Queries using JOINS
Explain Subqueries with an Example
ACID Properties
Normalize the given Table
Triggers
DDL and DML Queries
Difference between DELETE and TRUNCATE
What is VIEWS and INDEX of a table?
SQL having and where clause difference
SQL concepts like LIKE , Differences between two concepts etc..
SQL questions using group by
Sql queries from joins
How will you add an extra column to the already existing table
Scenarios to use joins and subquery
Can we use if in a query?
what is deadlock
Conditions necessary for deadlock to occur and how to prevent it.
HashMap DS, how to handle duplicate keys(Linked list and rehashing)
ACID properties
What are the reasons that cause database to be slow.
Handling concurrent requests in a database on the same data
DBMS vs RDBMS
Referential integrity
Cartesian product and cross join
Joins based on scenario.
Table A contains:
employee ID and employee name,
Table B contains:
employee ID, salary, and department.
Write a SQL query to display the complete details of a particular employee with a given ID.

Complete explanation of normalization in RDBMS (1NF to 5NF with dependencies)


When should we use normalization and when should we not use it?
To create own relational database for one of the projects and integrate the relations using keys.
How can we optimize database schema level: Indexing,Partitioning
Types of joins in SQL
Primary key and foreign key
Explain primary key and foreign key
Why we need joins?
What is switch in SQL?
Why we need joins?
QUESTIONS IN DBMS (ACID PROPERTIES)
What are joins in DBMS
 Write an real time example for inner join and query for it.
 Difference between RDBMS and DBMS
Where do we use DBMS
RAID in DBMS
Normalization in DBMS. Explain with an example?
INNER Join in SQL.
RAID in DBMS.
Normalization in DBMS.
Explain primary key and foreign key
Why we need joins?
What are the different database you know?
What are the different types of joins?
Need to draw DB schema for library management system
4 basic sql query based on aggregate functions
Questions from normalization and differ types of normalization
Difference Between Sql Trigger and Sql Function
What is DBMS?
In department i need deparment wise employee count
Select department , count(department) from employee Group by department ;
Havingemployee_name
Select count(department) > 5; from employee order by salary desc OFFSET 4
, salary
LIMIT 1;
How Triggers Work
Explain the different types of SQL languages, including DDL, DML, TCL, DQL, and DCL
Workflow of ACID concept.
database tables (views, foreign keys, etc.).
SQL Queries for Joins and sort in ascending order
Joins, Views and some basics
Given a table and ask to print the details who have highest salary.
What is table and view in SQL.
About DDL and DML and its command
SQL queries using CASE, GROUP BY
Questions on window functions
SQL and NoSQL use case based question
ER Diagram for Hospital Management
Write SQL Queries Using Joins, Limit, Group By, Having
Explain some SQL queries?
About MongoDB.
Advantages and disadvantages of MySQL
Difference between SQL and MySQL
dbms acid properties
Normalization in sql
Basic questions in DBMS - Order by, Group by clauses and asked me to explain with an example.
What is the difference between inner join and full outer join
Write a SQL query to find the maximum salary and its count.
DBMS (Architecture, query, joins)
DBMS joins, foreign key , primary key with real time examples.
What joins are.
DBMS Joins
SQL Queries on Create, Delete Table, and Update Values in Tables
Given tables like student(id,name) Teacher(id,name) Learning(stu id,teacher id) How will you retrive all the Teacher
What is the Primary Key?
What is a Unique Key?
What is a Foreign Key?
Joins - SQL
Difference between Unique Key and Primary Key?
SQL Query
What is Normalization?
What are ACID Properties?
what is database, primary key, foreign key
How did you use the database in your project? How did you configure it?
What is the use of database
What is a primary key,foreign key and Candidate key
DBMS (Serializability)
What is SQL?
What is Primary Key?
What is Foreign Key?
Explain foreign key with an example.
What are the types of databases?
On what database you have worked on?
What are the types of databases available other than MySQl?
DBMS – joins
Normalizations , Denormalization, Joins
WHAT IS DBMS
- NORMALIZATION
- SQL QUERIES
- GROUP BY AND ORDER BY
What is normalization in DBMS?
 What are the types of Normalization?
Company Batch
IAMNEO 2025
IAMNEO 2025
WORKHALL 2025
WORKHALL 2025
WORKHALL 2025
WORKHALL 2025
WORKHALL 2025
WORKHALL 2025
Mr. Cooper 2026
Mr. Cooper 2026
Mr. Cooper 2024
WORKHALL 2026
WORKHALL 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
WORKHALL 2026
Zoho 2025
Zoho 2025
Aaludra 2024
Aaludra 2024
Xoriant 2025
Xoriant 2025
Xoriant 2025
Aaludra 2024
Aaludra 2024
DataCorp Traffice 2025
DataCorp Traffice 2025
DataCorp Traffice 2024
DataCorp Traffice 2024
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Jman 2025
Jman 2025
Jman 2024
Jman 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024

Trustrace 2025
Trustrace 2025
Trustrace 2025
Trustrace 2025
Trustrace 2025
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2025
Kaar technologies 2025
Kaar technologies 2025
Kaar technologies 2025
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Thoughtworks 2025
Thoughtworks 2025
Tiger Analytics 2024
Tiger Analytics 2024
Hexaware 2024

RapidData 2025
RapidData 2025
RapidData 2025
Kovai.co 2024
Kovai.co 2024
Kovai.co 2024
WNS vuram 2025
WNS vuram 2025
WNS vuram 2025
WNS vuram 2025
WNS vuram 2025
WNS vuram 2025
Saama Technologies 2025
Saama Technologies 2025
Radiant Global Technologies2025
Radiant Global Technologies2025
Alter Office 2026
Data patterns 2024
Data patterns 2024
TCS 2025
TCS 2025
TCS 2024
TCS 2024
TCS 2024
TCS 2024
RFPIO 2021
Xoriant 2021
Kovai.co 2023
Kovai.co 2023
Kovai.co 2021
Kovai.co 2021
Mitsogo 2022
KreditBee 2023
KreditBee 2023
KreditBee 2023
KreditBee 2023
KreditBee 2023
KreditBee 2023
KreditBee 2023
KreditBee 2023
WNS VURAM 2022
WNS VURAM 2022
WNS VURAM 2022
WNS VURAM 2022
WNS VURAM 2021
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
Mr.Cooper 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2022
KAAR TECHNOLOGIES 2022
S No Questions Company
1 What is a single thread in C? Aaludra
2 Do C support multithreading? Aaludra
3 Explain about R-value and L-value? Aaludra
4 Explain about malloc and calloc? Aaludra
5 Pointers in C programming Kaar technologies
6 What's the data type of pointers Kaar technologies
7 Difference between C and Java? Kaar technologies
8 Is OOPS possible in C ? Why? Kaar technologies
9 Macros in C Kaar technologies
10 Difference between Structure and Union Kaar technologies
11 What are pointers Kaar technologies
12 Questions from pointers and memory allocation in c. Mistral
13 Storage Classes in C Mistral
14 Difference b/w malloc and calloc Mistral
15 "free" keyword in C Mistral
16 Dynamic Memory Allocation vs Static Memory Allocation Mistral
17 What is pointers? Explain wild pointer. Mistral
18 Increment and decrement questions. Mistral
19 Storage classes in C Mistral
20 Explain about pointers ( explained with real time example ) Data Patterns
21 What is padding in C (structural padding) Data Patterns
22 What is malloc and calloc? Data Patterns
23 What is makefile and sharedlibraries in c? Accenture
24 Exception Handling Trustrace
25 Difference between compile time and runtime with examples Trustrace
26 What is a structure GX Groups
27 What is size of pointer GX Groups
28 difference between array variable and variable WNS VURAM
29 Difference between c and C++ WNS VURAM
30 What is '#' in c WNS VURAM
31 What are header files WNS VURAM
32 What is an array? WNS VURAM
33 Compiler VS Interpreter KAAR TECHNOLOGIES
34 DIFFERENCE BETWEEN C AND C++ KAAR TECHNOLOGIES
35 Is function overloading available in c? KAAR TECHNOLOGIES
36 ● Pointer declaration KAAR TECHNOLOGIES
37 What is a pointer and represent a pointer. KAAR TECHNOLOGIES
38 What is the difference between C and Cpp? KAAR TECHNOLOGIES
39 What is array? Give one real time example. KAAR TECHNOLOGIES
40 Do we take 2 kinds of data types in a single array? What is structure i KAAR TECHNOLOGIES
41 What is wild pointer? KAAR TECHNOLOGIES
Batch
2024
2024
2024
2024
2025
2025
2025
2025
2024
2024
2024
2024
2024
2024
2024
2024
2025
2025
2025
2025
2025
2025
2024
2025
2025
2023
2023
2022
2022
2022
2022
2022
2023
2023
2023
2023
2023
2022
2022
2022
2022
S No
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Questions
What is need for memory management.
What is a deadlock and tell its prevention.
What is an OS
Which type of scheduling algorithm is best? And Why.
What is paging?
What is Segmentation?
What is context switching? (very important Qn)
What is the use of RAM
What is process and thread [I have explained it with real application uses]
What is multiprogramming
What is the difference between Windows and Linux?
What is paging and what is os and kernel
What are
What doesthe
restarting an of
properties operating system
processes in an do?
operating system?

Whta is the use of BIOS


What are the Main function of shared memory
What is context switching
Explain Starvation
Why Computers use OS?
How OS works with hardware and software?
What is Kernel and their types?
What is virtual desktop
What is deadlock?
When will deadlock occurs?
What is Thread and Multithreading ?
How a collection
Whether of threads
threads are canor
dependent beindependent
created together?
, if one thread is affected then whether all threads get affected or
not?
What is kernel?
CPU Scheduling
Which is faster Single core 500GB RAM or Quadcore 50GB RAM for
a specified task
How a file is read when a user opens a file. Asked to explain how it is done.
Difference between process and thread. Process contains thread or thread contains process?
32-bit vs 64-bit architecture OS.
Memory management in both architectures.
RAM limitation comparison.
Print odd and even numbers using two different threads
what is bootstrap
what is semaphore
What is the purpose of an OS?
Which OS am I using in my laptop?
What are the features added in Windows 11?
What is a deadlock?
How do you dual boot a system?
Compiler and interpreter difference
What is Thread and multithreading
Operating system scheduling algorithm.
Concepts on Operating system like Deadlock, how to overcome deadlock
About memory allocations.
About operating systems.
Company Batch
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Zoho 2025
CEI INDIA 2025
CEI INDIA 2025
CEI INDIA 2025
CEI INDIA 2025
Xoriant 2025
Xoriant 2025
GX Group 2024
GX Group 2024
GX Group 2025
WNS vuram 2025
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Informatica 2024
Informatica 2024
Informatica 2024
Zoho 2025
Zoho 2025
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Mr. Cooper 2025
Mr. Cooper 2025
Mr. Cooper 2025
Mr. Cooper 2025
Mr. Cooper 2024
Thoughtworks 2025
Thoughtworks 2025
TCS 2024
Xoriant 2021
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
S No
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Questions
What is Interfaces?
Rotate array
Wrapper Class
Strings and StringBuffer
Final and Finally Keyword
JDK, JVM, JRE
Ternary Operator
"." Operator Used for
Boxing and Unboxing in Wrapper Class
What are Collections?
What is a Package and Why Do We Need It?
What are the Main Concepts in Java?
Marker Interface
What is overloading and overriding
Difference between final, finally, finalize() keyword
What is Multithreading
Error handling in java
Java is a platform independent language. Why?
Is the JVM platform independent?
Difference between JDK and JRE
What is static and dynamic memory allocation?
What is Garbage collection in JAVA?
What is the work of finally class or block?
Try and catch block based questions
When memory is allocated in Java
How much memory does class takes in Java
What is Java?
Does the main method exist in Java?
Explain the structure of the main method
Static keyword in Java
What is overloading and overriding
Difference between final, finally, finalize() keyword
What is Multithreading
Error handling in java
Java is a platform independent language. Why?
Is the JVM platform independent?
Difference between JDK and JRE.
What is static and dynamic memory allocation ?
What is Garbage collection in JAVA?
Heap memory allocation.
Static class , static method, static variable
dependency of java and JVM
What is class and objects ?
Is multiple inheritance possible in Java? How would you overcome it?
Multithreading in Java
Difference between thread, task and process
Interface in Java
Abstraction in java
Final and Finally keyword difference
Real time example of finally keyword
What are interfaces in java
About stack JRE, JVM, JDK, JIT
Write a program to remove vowels from a string (asked to optimize it)
Mergelogical
(Use 2 Array list
operators mon||tue as a case to return true or return false
in default)
// this loop fetch all the row data from table
}
How to add elements in arraylist ( list.add(); )
How to increase array size lets say arr[n]; and n=5 you should not change value of n.
Finally block in exception handling
Thread priorities
Garbage collection
JVM , JDK , JRE
Try with multiple catch blocks
Abstract class
String constant pool
Final keyword
Stack and Heap area in memory
Diff btw Stringbuilder and Stringbuffer
Collections in java
Is any possible to write a program without main function in java?
Why pointer not in Java?
Java and C++ Difference
Collection Frameworks
What is Multithreading?
mutable and immutable objects in Java
Difference between Java and C language.
What are the new features added to the newer version of Java.
What is the use of keywords in Java programming language?
What is the use of access specifiers and when to use them with examples?
About collections in Java, what is the use of it, and what are all the available classes and interfaces?
Difference between List and Set
How HashMap works?
Program to call a function without creating object – using static keyword.
Code for polymorphism, method overload and override.
find all the repeated characters and no.of occurrences in a string using Collections.
Synchronizing the Functions for multithreading.
If a string is declared as char name[]=”vuram” which is datatype, variable name & value
Difference between c, c++ and java
● Difference between static and global
● What is meant by mutable and immutable?
● Can we use virtual function inside constructor?
Does java has pointers?
Company Batch
IAMNEO 2025
Avasoft 2025
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Kaar technologies 2025
Kaar technologies 2025
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Kaar technologies 2024
Thoughtworks 2025
Thoughtworks 2025
Kaar technologies 2024
Thoughtworks 2025
RapidData 2025
RapidData 2025
RapidData 2025
RapidData 2025
RapidData 2025
RapidData 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
WNS vuram 2025
Radiant Global Technologies 2025
Radiant Global Technologies 2025
Mr.Cooper 2024
TCS 2025
TCS 2025
Trustrace 2025
Trustrace 2025
Trustrace 2025
Trustrace 2025
Trustrace 2025
Trustrace 2025
Trustrace 2025
RFPIO 2023
RFPIO 2021
RFPIO 2021
Juspay 2021
WNS VURAM 2022
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
S No
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
Questions
Working of OSI Layers with examples.
How information travels from layer 1 of one device to layer 1 of another device.
Role of gateways in the transmission of information
Role of router and switches
What is MAC Address
What is a network?
What are the network topology and explain it with its advantage
What is a switch.hub
What is a node and a link
OSI layer
TCP,UDP lies in which layer of OSI layer
Explain about TCP
What is IPV4 [I had explained both IPV4 and as well as IPV6]
IPV4 class address
What are the networking devices
What are the protocols in the transport layer?
What are the uses of Port, Router, Socket
Working of DNS
How OS layers works in real time?
Explain routers and functions
What is router and how do you use it with ARP and DHCP?
d/b ipv4 and ipv6 address
why we need ipv6 over ipv4
Layers of TCP/IP model
Protocols used in each layer
Importance of each layer
IP address is a physical address or logical address
How was the mac address allocated and which layer is responsible for it?
What is meant by socket and where it is used
What is port number?
what is DNS and its purpose
protocols used in transport model
d/b TCP
What and UDP
happens internally when we type a website address in browser
(explain wrt OSI layer and root DNS servers)
Classes of IP addresses
Difference
When between
a client needs Http and Https.
to establish a TCP connection to a server. What mechanism is used to establish a first
connection. Topic: Three way handshake mechanism.
Difference between TCP and UDP. Advantages and disadvantages.
Osi layers in order. After that they ask to explain any one the layer.
they asked to explain about load balancing in cloud computing.
If I need to connect to a sever from remote location what and all things happened in the backend.
OSI Model (Explanation of all layers)
3-Way Handshake Protocol (Mechanism and flags)
Definitions and Functions of Protocols (TCP, UDP, SMTP, PPP, ICMP, ARP, DHCP, IP)
IPv4 vs IPv6
MAC Address vs IP Address
Subnet Masking
Network Topologies
Networking Devices
Asked about Routers and Gateways.
Difference Between Firewall and Anti-virus
DNS Server (Definition and Working Mechanism)
How to Get the IP Address of a Laptop
Ping Configuration
What will happen when you type google.com?
What is a Domain Name?
What is a Domain Name Server (DNS)?
How data transmission will happen if you access your college website from California?
What is TCP and UDP?
Websites come under TCP or UDP?
TRACERT Command (Function and Usage)
Troubleshooting a Non-Working Router (Steps to Rectify Issues)
How Google Search Network Works
Subnet Masking
TTL (Time To Live)
Protocol Used by Routers
TCP vs UDP
Flags
What is a firewall.
CDMA and CSMA (networks)
DHCP (Dynamic Host Configuration Protocol)
DNS (Domain Name System)
TCP/IP (Transmission Control Protocol/Internet Protocol)
Protocols in the Transport Layer of TCP/IP (TCP, UDP)
Internal implementation of DNS server
Internal implementation of IP address to dynamic web page
What is DNS and DHCP?
Difference Between Firewall and Antivirus
What is a Port and Reserved Port Range?
What is HTTPS, SSL, and the Port of HTTPS?
What is VLAN?
What is the purpose of a Router and Gateway?
Topologies(Which is best) and draw the topologies(Ring topology&Star topology).
Port number for HTTPS and HTTP
What is Subnet ?
What is the difference between Hub and Switch and its uses?
What is MAC Address?
What is Data and Network Security?
What is Session and Data link layer?
OSI layers
OSI layers
Difference between Tcp and Udp
IP Addressing – Classes of IP Addresses, Subnet Mask, Broadcast IP Address
Types of Communication – Unicast, Broadcast and Multicast
Questions on OSI model
Questions on MAC address
About Authentication layer in OSI
Difference between HTTP and HTTPS
Aware of Networking protocols such as HTTP and HTTPS.
What is a web server? Give an example.
What is DNS, DHCP?
Difference between Firewall and Antivirus.
Explain about HTTP, URL, DNS
What is a Web Server
Network question on real time example (like browser forward and backward button implementation data str
TCP and UDP
TCP and UDP
Where UDP is used?
What does Zoom use TCP OR UDP?
Why don't we use UDP instead of TCP?
When we enter a url in a browser what happens in the backend?
How does DNS work?
Questions related to router , switch and Hub
Company Batch
WORKHALL 2025
WORKHALL 2025
WORKHALL 2025
WORKHALL 2025
WORKHALL 2026
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
Xoriant 2025
GX Group 2025
Xoriant 2025
GX Group 2024
GX Group 2024
GX Group 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Informatica 2024
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Zoho 2025
Movate 2024
Movate 2024
Movate 2024
Movate 2024
Movate 2024
Movate 2024
Movate 2024
Movate 2024
Movate 2024
Movate 2024
Movate 2024
Movate 2024
Movate 2024
Mr. Cooper 2025
Mr. Cooper 2025
Mr. Cooper 2025
Mr. Cooper 2025
Mr. Cooper 2025
Mr. Cooper 2025
Movate 2024
Movate 2024
Movate 2024
Movate 2024
Movate 2024
Movate 2025
Movate 2025
Movate 2025
Kaar technologies 2024
Kaar technologies 2024
Movate 2025
Movate 2025
Movate 2025
Movate 2025
Thoughtworks 2025
Thoughtworks 2025
kovai.co 2025
kovai.co 2025
Alter office 2026
Alter office 2026
Data patterns 2024
Data patterns 2024
Data patterns 2024
Data patterns 2024
Data patterns 2024
Data patterns 2024
Data patterns 2024
Data patterns 2024
Data patterns 2024
TCS 2024
Xoriant 2021
Xoriant 2021
Movate 2022
Movate 2022
Movate 2022
Movate 2022
Xoriant 2021
Kovai.co 2023
Kovai.co 2021
Kovai.co 2021
Kovai.co 2021
Kovai.co 2021
Kovai.co 2021
Kovai.co 2021
Thoughtworks 2022
Thoughtworks 2022
Thoughtworks 2021
Thoughtworks 2021
Thoughtworks 2021
Thoughtworks 2021
Thoughtworks 2021
Thoughtworks 2021
Thoughtworks 2021
S No Questions Company Batch
1 Linux vs Windows Informatica 2024
2 Linux booting process Informatica 2024
3 What happens after Linux login in. Informatica 2024
4 Directories and their structure in Linux. Informatica 2024
5 File permission (in depth). -chmod command Informatica 2024
6 Users in Linux. Informatica 2024
7 Identify users, current user, change user. Informatica 2024
8 Write 40 Linux commands. Informatica 2024
9 cmd for hidding files , and cmd for viewing files RFPIO 2022
10 cmd for conf ip address RFPIO 2022
11 cmd for checking latest downloads RFPIO 2022
12 cmd for reversing the numbers RFPIO 2022
13 write a script to reverse the given arrays using bash script or l RFPIO 2022
14 cmd for checking space in the drives RFPIO 2022
15 cmd for checking updates RFPIO 2022
16 booting process in linux step by step RFPIO 2022
17 diff between linux and unix RFPIO 2022
S No Questions Company
1 Enum APPLIED MATERIALS
2 stl(standard template library) Mr.Cooper
3 what is meant by #include<iostream> Data Patterns
4 What is the purpose of including using namespace std; in the program? Data Patterns
5 Vector in C++ TCS
6 in c++ how many datatypes will be there give brief definition TCS
7 How many access specifiers in Cpp and what are they? KAAR TECHNOLOGIES
8 Difference between protected and private. KAAR TECHNOLOGIES
9 How to delete an array? KAAR TECHNOLOGIES
10 How to print the 2D array they gave the question and asked me the logic. KAAR TECHNOLOGIES
Batch
2025
2024
2025
2025
2024
2024
2022
2022
2022
2022
S No Questions
1 What is lambda function in python?
2 List comprehension programs
3 List based programs without using loops
4 Explain the role of garbage collection in python.
5 Mutable and immutable datatypes in python
6 What is meant by pep
7 What is the difference between generators and iterators.
8 OOPS concepts in python
9 python code to get an array of elements from user and arrange them in ascending and descending
10 Iterator in python
11 What is a dictionary in python and how can you access it?
12 Python datatypes
13 Why tuples are immutable?
Company Batch
IAMNEO 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Avasoft 2025
Uhnder 2025
TCS 2025
KAAR TECHN 2023
KAAR TECHN 2023
S No
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

55
56

57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Questions
Explain about HTML tags and types of CSS.
Css(Box model, Type of Styles, alt in image etc.).
Write a basic structure of html.
Explain Work Flow of e commerce website (Start to end).
what is doctype<html>, what is tags, what is elements.
What is the functional component in React?
What is HTML?
Margin vs Padding in HTML
Name some tags in HTML
What are the self-closed tags in HTML?
What tag is used for hyperlink?
<div> is used for?
Is div block or inline?
CSS flex, box, grid
Working of API
What is frontend, backend
What's the key difference between client and server
Asked to develop knowledge in MERN stack and MEAN stack
what is padding?
write the code for box model in html with appropriate css
QUESTIONS IN FRONTEND DEVELOPMENT
What is <ul> in HTML5?
React.js Lifecycle Methods, Hooks, and State Management
Building and Maintaining RESTful APIs
Difference between div and span tag
o List out all the tags you know
o They will give a design, we need to write CSS code. (Flex, Grid)
How the authentication works?
• How Security is implemented in Website
What is middleware?
• Write code for middleware you used in your project?
Web development (as I mentioned in my Resume)
• Arrow functions in JS
• What Flex property do
• Asked to implement flex property in bootstrap ( as I mentioned
Bootstrap)
<div class="container">
<div class="row">
<div class="col">
</div>
<div class="col">
</div>
</div>
</div>

Asked one more approach without using row (i.e. without


splitting into 12 columns)
We can use dflex property
What is API?
About HTTP methods and about API creation
Difference between PUT and POST method
How e-commerce website works ?
Github vs Git
Authentication and Authorization with real time examples.
Asked to explain the APIs
About API Integration
Why react is preferred?
Hooks in React(eg:UseState,UseEffect)
OnClick , count Should increase which hook , why?
UseCase of useEffect
Function and class component preference,Comparison.
CSS:
div and span comparison , on mouse hover,position:absolute,relative usages.
Javascript:
Diff on setTimeOut , setInterval
Question on maps , lists (Two lists given print common,Two maps given print common)
Write HTML,Js code for login and authentication (Username and Password)
What is DOM and Virtual DOM?
Draw a DOM Diagram

What is React.js and Why Do We Use It?


What is a Web Server, How to Control Server Errors, and Why They Happen

DOM Tree
VDOM (Virtual DOM)
Inspect Tab in Browser (Use Cases)
What are Hooks?
Uses of useEffect()
Customized Hooks
Redux and Why It Is Used?
useContext() Hook
Fetch vs Axios
box model, units, positions, display properties, and semantic tags
clicking an icon in the provided layout should increase a count, which should be reflected in the UI
UI is given and we need to write code for that UI .
Write a Bash script to install, upgrade, start, stop, and uninstall LAMP stack on Debian and Red Hat
How to search and render live with limited no of API request
Shopping card application
Web hosting vs local hosting and how it works?
Create a normalised table structure for a online shopping website
Some SQL queries relating to aggregate function
API’s and Rest API’s
Web development lifecycle.
What is API?
Difference between a website that uses JavaScript and a website
that
why we use use
doesn’t JavaScript
HTML, CSS and
JavaScript
What is web service?
Company Batch
WORKHALL 2025
Avasoft 2025
Avasoft 2025
Avasoft 2025
Avasoft 2025
Xoriant 2025
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Aaludra 2024
Kaar technologies 2025
Kaar technologies 2025
Kaar technologies 2025
Kaar technologies 2025
DataCorp Traffice 2025
DataCorp Traffice 2025
Kaar technologies 2024
Kaar technologies 2024
Naatscorp 2025
Naatscorp 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
RapidData 2025
kovai.co 2025
Trustrace 2025
Trustrace 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
APPLIED MATERIALS 2025
WNS vuram 2025
WNS vuram 2025
Responsive 2024
Responsive 2024
Responsive 2024
Responsive 2024
Responsive 2024
Responsive 2024
Responsive 2024
Responsive 2024
Responsive 2024
Responsive 2024
Responsive
KT TELEMATICS Solutions 2024
KT TELEMATICS Solutions 2025
2025
KT TELEMATICS Solutions
KT TELEMATICS Solutions 2025
2025

Alter Office 2026


Alter Office 2026
Alter Office 2026
Alter Office 2026
Alter Office 2026
Alter Office 2026
Alter Office 2026
Alter Office 2026
Alter Office 2026
Survey Sparrow 2025
Survey Sparrow 2025
Presidio 2024
Presidio 2024
Presidio 2025
Juspay 2023
ThoughtWorks 2021
ThoughtWorks 2021
ThoughtWorks 2021
kovai.co 2023
kovai.co 2023
KreditBee 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
KAAR TECHNOLOGIES 2023
S No
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

25
26
27
28
29
30
31
Questions
Image enhancement techniques.
Explain the concept of attention mechanism in vision models.
An image will be given, and a scenario will be explained; we need to answer accordingly.
Yolo based questions
Difference between instance segmentation and semantic segmentation.
What are anchors
How non-maximum suppression (NMS) works in object detection.
How can histogram equalization improve image quality.
What is the role of feature extraction in CNN models.
What are optimisers, which is the best optimiser and reason for that
What are activation functions, effect of activation functions on neural networks
Difference between ridge and lasso regression
What are hyperparameters and how are they used
Explain data augmentation and its importance in deep learning.
What is transfer learning, and how does it help in model training?
What is filter and pooling in cnn and how does it affect the model training
Bias variance tradeoff and reason for it – with respect to underfitting, overfitting
Difference between one shot and zero shot learning
Supervised vs Unsupervised learning
Create a model for movie review data set using ML and test the given input to verify the validation of th
Data visualization using Power BI
Mobile price range classification.
Replace the Null value by 99.
Output the shape of the data and Mean of the column(should convert the data as numbers using Label En
Scenarios were given and have to find perfect model that suits the solution and write the complete
process of deploying a model.
Algorithm of Face Recognition, basics of CNN, Edge Detection
What is machine learning
machine learning vs deep learning
Supervised and unsupervised learning explanation
Supervised VS Unsupervised Machine learning
Company Batch
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Doers Tech 2025
Avasoft 2025
Myways.ai 2025
WNS vuram 2025
Petrus Technologies 2025
Petrus Technologies 2025
Petrus Technologies 2025

Petrus Technologies 2025


Lucid Imaging 2025
TCS 2024
TCS 2024
TCS 2024
KAAR TECHNOLOGIES 2023
S No Questions Company Batch
1 AWS (Amazon Web Services) Mr. Cooper 2025
2 IoT (Internet of Things) Mr. Cooper 2025
3 Generative AI Mr. Cooper 2025
4 Containerization Mr. Cooper 2025
5 Web Mr. Cooper 2025
6 Serverless Architecture Mr. Cooper 2025
7 Private Cloud Mr. Cooper 2025
8 Public Cloud Mr. Cooper 2025
9 What is DevOps and work flowAPPLIED MATERIALS 2025
10 AWS (Amazon Web Services) RFPIO 2022
11 DevOps RFPIO 2022
12 what is SAP, ERP, CRM? KAAR TECHNOLOGIES 2023
13 what is KTERN AI? KAAR TECHNOLOGIES 2023
14 Real time applications of ERP. KAAR TECHNOLOGIES 2023
S No
1
2
3
4
5
6
7
8
9
10
11
12
Questions
Develop a UI to display the data from the API given with each page having 10 data using offset and Pagination
Refresh tokens and fetching
Front End - Create api from backend
a train reservation application.
application along with a mobile view.
Back End - Create an train reservation backend application with the API given from affordmed . (Need to know abo
few JS output questions like console.log(+true) etc..
ReactJS questions like performance optimization techniques , React “State” and other basic react questions.
refreshatokens
create reactjsand
appfetching
for loginapi
andfrom backendfor
registration application
an ecommerce website using local storage for data storage in 45 min
tip calculator using HTML/CSS/JS in 35 mins.
create two APIs for registering and logging in the user of that ecommerce application.
React.js
Give a real time scenario in full stack how to overcome this conflict
Difference between frontend and backend
Difference between Angular and React JS
What is Mern stack?
Company Batch
Affordmed 2025
Affordmed 2024
Affordmed 2024
Affordmed 2024
Affordmed 2024
Affordmed 2024
Affordmed 2024
Survey Sparrow 2025
Presidio 2025
TCS 2025
Trustrace 2025
KAAR TECHNOLOGIES 2023

You might also like