Wittybrains Software Technologies
10+ Andromeda Shipping Interview Questions and Answers
Q1. Write a program to count vowels and consonants in string
A program to count the number of vowels and consonants in a given string.
Iterate through each character in the string
Check if the character is a vowel or consonant
Increment the respective count
Return the counts of vowels and consonants
Q2. What is the difference between truncate and drop command
Truncate removes all data from a table while drop deletes the table itself.
Truncate is faster than drop as it only removes data and not the table structure
Truncate cannot be rolled back while drop can be
Truncate resets the identity of the table while drop does not
Truncate can only be used on tables while drop can be used on tables, views, and indexes
Q3. Write a program to delete middle node from the linked list
Program to delete middle node from linked list
Traverse the list to find the middle node
Delete the middle node by updating pointers
Handle edge cases like even number of nodes
Q4. what is oops, what are 4 pillars in oops, what are class and object, what is interface oops, questions. then Data structure and algorithms 1 what is an array, LinkedList, stack, queues, tree, graph, and its ope...
read moreInterview questions for Software Developer covering OOPs, Data Structures and Algorithms, and DBMS.
OOPs: 4 pillars, class, object, and interface
Data Structures: array, LinkedList, stack, queues, tree, graph, and their operations
Algorithms: Fibonacci series, palindrome, array min max questions
DBMS: general questions
Q5. Write a program to reverse a string
Program to reverse a string
Use a loop to iterate through the string and append each character to a new string in reverse order
Alternatively, use built-in string functions like reverse() or slice()
Q6. Write a program to find the duplicate number in an array ranging 1 to 100, the input array contains exactly 100 items.
Program to find duplicate number in array of 1 to 100 items.
Iterate through array and use a set to keep track of seen numbers.
If a number is already in set, it is a duplicate.
Return the duplicate number found.
Q7. What is static keyword
Static keyword is used to define a class-level variable or method that can be accessed without creating an instance of the class.
Static variables are shared among all instances of a class
Static methods can be called without creating an object of the class
Static keyword can also be used to define a static block of code that gets executed only once when the class is loaded
Example: public static int count = 0; or public static void printMessage() {}
Q8. On which technology do you wish to work?
I wish to work on developing applications using artificial intelligence and machine learning technologies.
Passionate about developing intelligent systems that can learn and adapt
Interested in working on projects involving natural language processing, computer vision, and predictive analytics
Experience with tools and frameworks like TensorFlow, PyTorch, and scikit-learn
Q9. Explain oops concept (polymorphism)
Polymorphism is the ability of an object to take on many forms.
Polymorphism allows objects of different classes to be treated as if they are of the same class.
It can be achieved through method overloading or method overriding.
Example: A shape class can have different subclasses like circle, square, and triangle. Each subclass can have its own implementation of the draw method.
Polymorphism makes code more flexible and reusable.
Q10. What is Regression Testing. Functional Testing, Smoke testing?
Regression testing ensures changes don't break existing functionality. Functional testing checks if software meets requirements. Smoke testing checks basic functionality.
Regression testing verifies that changes to the software do not break existing functionality
Functional testing checks if the software meets the specified requirements
Smoke testing checks the basic functionality of the software
Regression testing is usually automated
Functional testing can be manual or automated...read more
Q11. Wap where n=2, power=3, output=8 using recursion
A Java program to calculate the power of a number using recursion.
Create a recursive function that takes two parameters: the number and the power.
If the power is 0, return 1.
If the power is 1, return the number.
Otherwise, recursively call the function with the number multiplied by itself and the power decreased by 1.
Return the result.
Q12. Wap to print prime number between 1-100 alternately?
Print prime numbers between 1-100 alternately using Java.
Create a function to check if a number is prime or not.
Use a loop to iterate through numbers 1-100.
Alternate between printing prime and non-prime numbers.
Use a boolean variable to keep track of whether the last printed number was prime or not.
Q13. Wap to print prime number between 1-100?
A program to print prime numbers between 1-100.
Iterate from 1 to 100
For each number, check if it is divisible by any number from 2 to itself-1
If not divisible by any number, it is a prime number
Q14. Difference between overloading and overriding
Overloading is when multiple methods have the same name but different parameters. Overriding is when a subclass provides a different implementation of a method inherited from its superclass.
Overloading is compile-time polymorphism, while overriding is runtime polymorphism.
Overloading allows a class to have multiple methods with the same name but different parameters.
Overriding is used to provide a different implementation of a method in a subclass.
Overloading is determined at...read more
Q15. how to create thread
To create a thread in Java, you can extend the Thread class or implement the Runnable interface.
Extend the Thread class and override the run() method
Implement the Runnable interface and pass an instance to the Thread constructor
Start the thread using the start() method
Example: Thread thread = new Thread(() -> System.out.println("Hello World")); thread.start();
Q16. Overloading vs Overriding
Overloading is having multiple methods with the same name but different parameters. Overriding is having a method in a subclass with the same name and parameters as a method in its superclass.
Overloading is compile-time polymorphism while overriding is runtime polymorphism
Overloading is used to provide different ways of calling a method with different parameters
Overriding is used to provide a specific implementation of a method in a subclass
Overloading can be done in the same...read more
Q17. What is recursion
Recursion is a programming concept where a function calls itself to solve a problem by breaking it down into smaller subproblems.
Recursion involves a base case and a recursive case
It is commonly used to solve problems that can be divided into smaller, similar subproblems
Examples include factorial calculation, Fibonacci sequence, and tree traversal
Q18. What is constructor
A constructor is a special method used to initialize objects in a class.
Constructors have the same name as the class they belong to.
They are called automatically when an object is created.
Constructors can have parameters to initialize object properties.
They can be overloaded to have multiple versions with different parameters.
Constructors can also call other constructors using the 'this' keyword.
Q19. Methods in thread
Methods in thread are used to perform tasks concurrently.
Thread.start() method is used to start a new thread.
Thread.sleep() method is used to pause the execution of a thread.
Thread.join() method is used to wait for a thread to finish its execution.
Thread.yield() method is used to give a chance to other threads to execute.
Interview Process at Andromeda Shipping
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month