Tip 1 : Stick with one coding language for DSA
Tip 2 : SQL / DSA is must for better opportunity
Tip 3 : Consistency
Tip 1 : Keep it simple
Tip 2 : Put only those tech for which are under your knowledge
There was an aptitude test which having question from Sets, Union, the environment was good. Total 20 MCQs on Sets and Their Representations, Subsets, Power Set, Universal Set, Venn Diagrams
Example: Let U = {1,2,3,4,5,6,7,8,9,10} and A= {1,3,5,7,9}. Find A. S
Solution : We note that 2, 4, 6, 8, 10 are the only elements of U which do not belong to A. Hence A = {2, 4, 6, 8, 10}.
The average of 8 numbers is 21. If each of the numbers is mulitiplied by 8, the average of the new set of numbers is
Here , The average of 8 numbers = 21
When each number is multiplied by 8, the new average gets multiplied by 8.
So , New average = 21 × 8 = 168
So , New average = 21 × 8 = 168
A single letter is selected at random from the word 'PROBABILITY' . The probability that it is a vowel, is ?
Total number of letters = n(S) = 11
whereas, number of vowels = n(E) = 4
∴ Required probability = n(E)/n(s) = 4/11
∴ Required probability = n(E)/n(s) = 4/11
What is the output of the following Java program?
public class Test
{
Test(int a, int b)
{
System.out.println("a = "+a+" b = "+b);
}
Test(int a, float b)
{
System.out.println("a = "+a+" b = "+b);
}
public static void main (String args[])
{
byte a = 10;
byte b = 15;
Test test = new Test(a,b);
}
}
a = 10 b = 15
What is the output of the following Java program?
class Test
{
int test_a, test_b;
Test(int a, int b)
{
test_a = a;
test_b = b;
}
public static void main (String args[])
{
Test test = new Test();
System.out.println(test.test_a+" "+test.test_b);
}
}
There is a compiler error in the program because there is a call to the default constructor in the main method which is not present in the class. However, there is only one parameterized constructor in the class Test. Therefore, no default constructor is invoked by the constructor implicitly.
Can we assign the reference to this variable?
final int a;
No, this cannot be assigned to any value because it always points to the current class object and this is the final reference in Java. However, if we try to do so, the compiler error will be shown.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?