NCR Voyix
Polycab Wires Interview Questions and Answers
Q1. Reverse the items in the array with highest values skip the lowest
Reverse items in array with highest values, skipping the lowest
Sort the array in descending order
Skip the lowest value(s)
Reverse the remaining items
Q2. java interface and abstract class difference
Java interface defines a contract for classes to implement, while abstract class provides common functionality for subclasses.
Interface can only have abstract methods, while abstract class can have both abstract and non-abstract methods.
A class can implement multiple interfaces but can only extend one abstract class.
Interfaces are used to achieve multiple inheritance in Java, while abstract classes are used to provide a common base for subclasses.
Interfaces are implicitly abs...read more
Q3. One coding problem in go lang
Implement a function to reverse a string in Go lang
Create a function that takes a string as input
Convert the string into a slice of bytes for easier manipulation
Use a loop to iterate through the slice and reverse the order of characters
Convert the reversed slice back into a string and return it
Q4. How do you test faulty ATM
To test a faulty ATM, simulate various scenarios like card reader failure, cash dispenser malfunction, network connectivity issues, etc.
Simulate card reader failure by inserting a damaged card or a card with a magnetic strip issue.
Test cash dispenser malfunction by requesting cash withdrawal and observing if the correct amount is dispensed.
Check for network connectivity issues by trying to access online banking services or performing transactions.
Test keypad functionality by ...read more
Q5. MVVM Pattern in android
MVVM is a design pattern used in Android development to separate the UI logic from the business logic.
MVVM stands for Model-View-ViewModel
Model represents the data and business logic
View is the UI component that displays the data
ViewModel acts as a mediator between the Model and View, handling the UI logic and data manipulation
MVVM helps in maintaining a clean and organized codebase
Q6. Print missing number in given array
Find and print the missing number in a given array of strings.
Convert the array of strings to an array of integers for easier manipulation.
Iterate through the array to find the missing number by comparing consecutive elements.
Print the missing number once found.
Q7. explain oops concept and it's pillars
OOPs stands for Object-Oriented Programming. It is based on four main pillars: Inheritance, Encapsulation, Abstraction, and Polymorphism.
Inheritance: Allows a class to inherit properties and behavior from another class. Example: class B extends class A.
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: using private access modifiers to restrict access to certain data.
Abstraction: Hiding the complex implementation details and showing...read more
Q8. print string in reverse
Reverse a string in an array of strings
Iterate through each string in the array
Use a loop to reverse each string character by character
Store the reversed strings in a new array
More about working at NCR Voyix
Interview Process at Polycab Wires
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month