Interview Question Bank /top 100 SQL Questions
Interview Question Bank /top 100 SQL Questions
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]
● 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
Sophia, aphios
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]
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).
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”}}
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}}
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”
Examples:
Input: mat[][]= [[1, 3, 3],
[2, 1, 4],
[0, 6, 4]]
Output: 12
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
Given an array of strings, find all anagram pairs in the given array.
Example:
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:
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.
You have intercepted a secret message encoded as a string of numbers. The message is decoded via the following ma
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
[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
Examples:
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:
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:
Climbing Stairs
Example 1:
Input: n = 2
Output: 2
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]
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}
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
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
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/
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
Roman to Integer
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).
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.
191CS105 ABINAYA R
Eg : Input : 2 10 12
Output : yes
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
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: 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.
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
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
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
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.
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?
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>
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
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