Osttra
Wicode Infotech Interview Questions and Answers
Q1. Any instances in your organization where you presented a POC?
Yes, I presented a POC for a new feature in our company's software platform.
I conducted research to identify the need for the new feature
I developed a prototype to demonstrate the functionality of the feature
I presented the POC to stakeholders for feedback and approval
Q2. Longest Substring without repeating character
Find the longest substring without repeating characters in a given string.
Use a sliding window approach to iterate through the string and keep track of the characters seen so far.
Update the start index of the window when a repeating character is encountered.
Keep track of the longest substring length and characters seen in a hashmap.
Q3. Promise and callbacks, tell the sequence which runs first.
Callbacks run first before promises in JavaScript.
Callbacks are executed immediately when they are defined.
Promises are executed asynchronously, after the current call stack is empty.
Example: Callback function passed to setTimeout() runs before the promise resolves.
Q4. How to achieve singleton in angular.
Singleton in Angular can be achieved by creating a service with providedIn: 'root' in the @Injectable decorator.
Create a service with providedIn: 'root' in the @Injectable decorator
Use the service throughout the application to ensure only one instance is created
Q5. RXJS subject and behavior subject difference.
RXJS subject is a generic observable while behavior subject has an initial value and replays it to new subscribers.
RXJS subject is a generic observable that can emit multiple values to multiple subscribers.
Behavior subject is a type of subject that requires an initial value and replays it to new subscribers.
Behavior subject is useful for scenarios where you always want new subscribers to get the most recent value.
Example: RXJS subject - new Subject(), Behavior subject - new B...read more
Q6. Event Loop in JS.
Event Loop in JS manages asynchronous operations by executing callback functions in a queue.
Event Loop is a mechanism in JavaScript that allows asynchronous operations to be handled efficiently.
It continuously checks the call stack for any functions to execute, and the callback queue for any functions to be pushed onto the call stack.
Example: setTimeout() function in JS uses the Event Loop to execute a callback function after a specified delay.
Q7. What is java and datatypes and methods and jdk jvm
Java is a programming language used to create software applications. It has various datatypes and methods, and requires JDK and JVM.
Java is an object-oriented programming language
Datatypes include int, double, boolean, etc.
Methods are functions that perform specific tasks
JDK (Java Development Kit) is a software development environment
JVM (Java Virtual Machine) is a runtime environment
Example: int x = 5; System.out.println(x);
Interview Process at Wicode Infotech
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month