Tip 1: Do practice coding questions regularly on coding platforms.
Tip 2: Before going interview. Check the interview experience. You will get some ideas.
Tip 3: Maintain your consistency.
Tip 1: Don't write false information in your resume.
Tip 2: Be prepared with your resume.
In this round, questions are based on numerical ability, verbal ability, logical ability, and computer fundamentals. The duration of the test is around 90 minutes, scheduled for 13 December. Mainly, they are focusing on the aptitude part, which I was able to clear this round. The questions were quite easy, although some were tricky. I can say the level of this round is easy to moderate. Additionally, 1-2 coding questions were also included.
Consider an array of size six. The elements of the array are { 6, 4, 3, 5, 5, 1 }.
The array should contain elements from one to six. Here, 2 is not present and 5 is occurring twice. Thus, 2 is the missing number (M) and 5 is the repeating number (R).
Can you do this in linear time and constant additional space?
Traverse all elements and put them in a hash table. Element is used as the key and the count of occurrences is used as the value in the hash table.
Traverse the array again and print the element with count 1 in the hash table.
nteger value, n
Set value = 1, n = 45
while(value less than equal to n)
value = value << 1
end loop
Print value
A 16
B 32
C 64
D 36
Ans:- C) 64
Firstly variables n and value are initialized, then n and value are assigned values 45 and 1 respectively.
Now run a while loop will until the value becomes greater than 45, in each iteration of the loop perform a left shift by 1(multiply by 2) operation on the value variable.
Thus the value changes in order 1, 2, 4, 8, 16, and 32 till here the value is less than 45 then again perform the operation value << 1, value = 64 and the while loop terminates.
Integer a, b, c
Set b = 4, c = 5
for(each a from 2 to 4)
print c
b = b - 1
c = c + b
end for
A
5 8 10
B
1 3 6
C
8 9 10
D
3 6 9
Firstly variables a, b, and c are initialized, then b and c are assigned values 4 and 5 respectively.
Now run a loop from 2 to 4, in each iteration b is decremented by 1, and c is incremented by b.
In the first iteration print c = 5 value of b is decremented by 1 i.e. b = 3, c is incremented by b i.e. c = 5
In the second iteration print c = 8 value of b is decremented by 1 i.e. b = 2, c is incremented by b i.e. c = 8
In the third iteration print c = 10 value of b is decremented by 1 i.e. b = 1, c is incremented by b i.e. c = 10
Thus the final series is A) 5, 8, 10
#include
int main()
{
if (remove("myfile.txt") != 0)
perror("Error");
else
puts("Success");
return 0;
}
Options:
a) Error
b) Success
c) Runtime Error
d) Can’t say
Ans:- D)
If myfile.txt exists, then it will delete the file. Else it will print an error message.
Which type of data can be stored in the database?
a) Image-oriented data
b) Text, files containing data
c) Data in the form of audio or video
d) All of the above
CPU scheduling is the basis of
a) multiprogramming operating systems
b) larger memory sized systems
c) multiprocessor systems
d) none of the mentioned
Tip 1: you can do numeric ability questions the logical ability and verbal ability
Tip 2: practice ques from the interview bit
A boat can travel at a speed of 13 km/hr in still water. If the speed of the stream is 4 km/hr, find the time taken by the boat to go 68 km downstream.
A. 2 hours
B. 3 hours
C. 4 hours
D. 5 hours
Tip 1: you can do numeric ability questions the logical ability and verbal ability
Tip 2: practice ques from the interview bit
153 = 1^3 + 5^3 + 3^3.
Therefore 153 is an Armstrong number.
The idea is to first count the number of digits (or find the order). Let the number of digits be n. For every digit r in input number x, compute rn. If sum of all such values is equal to n, then return true, else false.
Here are two coding questions some pseudocode and also the dsa concept. this level is not hard to moderate. Lastly, there is a psychometric test which is very simple and easy. the platform is SHL.
If the given input string is "Welcome to Coding Ninjas", then you should return "Ninjas Coding to Welcome" as the reversed string has only a single space between two words and there is no leading or trailing space.
i used stack in this question
In the given linked list, there is a cycle, hence we return true.
Traverse the list individually and keep putting the node addresses in a Hash Table.
At any point, if NULL is reached then return false
If the next of the current nodes points to any of the previously stored nodes in Hash then return true.
CONVERSATIONAL TEST
N=3
We can climb one step at a time i.e. {(0, 1) ,(1, 2),(2,3)} or we can climb the first two-step and then one step i.e. {(0,2),(1, 3)} or we can climb first one step and then two step i.e. {(0,1), (1,3)}.
1) A prime number is a number that has only two factors: 1 and the number itself.
2) 1 is not a prime number.
First, take the number N as input.
Then use a for loop to iterate the numbers from 1 to N
Then check for each number to be a prime number. If it is a prime number, print it.
Which will be used with physical devices to interact with C++ programs?
a) Programs
b) Library
c) Streams
d) Iterators
There are 3 women and 3 men They all have to cross a river in a boat. The boat can only carry two people at a time. As long as there are an equal number of devils and priests, then devils will not eat Priest. If the number of devils is greater than the number of priests on the same side of the river then devils will eat the priests. So how can we make all the 8 people arrive on the other side safely?
What is the time complexity used for inserting a node in a priority queue based on key is:
O(log N) time
Which of the following is a linear data structure?
a> array
b> AVL tree
c> binary search
d> graph
F(n) = F(n-1) + F(n-2),
Where, F(1) = F(2) = 1.
For ‘N’ = 5, the output will be 5.
i used recursion
Difference between overriding and overloading
What is polymorphism?
what is the static class?
what is a constructor?
Types of constructors?
In C++ he asked to share screen and write syntaxes of string compare and syntaxes of polymorphism types.
Q1> What is super key?
Q2> What is primary key?
Q3> What is normalisation?
Given :-
‘N’ = 218
Then the answer will be true because it can be rearranged to 128, which is 2 raised to the power of 7.
A simple method for this is to simply take the log of the number on base 2 and if you get an integer then the number is the power of 2
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which array operation has O(n) worst-case time complexity?