Winjit Technologies Interview Questions | Imp | From Interview given Candidate
Reactjs
React is a free and open-source front-end JavaScript library for building user interfaces or UI components. It is maintained by Facebook and a community of individual developersCallback Function
A callback function is a function passed into another function as an argument
Here is a quick example:
function greeting(name) {
alert('Hello ' + name);
}
function processUserInput(callback) {
var name = prompt('Please enter your name.');
callback(name);
}
processUserInput(greeting);
Promise in Reactjs
Promise object = > Like a simply a wrapper around a value that may or may not be known when the object is instantiated and provides a method for handling the value after it is known (also known as resolved ) or is unavailable for a failure reasonAVL tree
AVL tree is a self-balancing Binary Search Tree (BST) where the difference between heights of left and right subtrees cannot be more than one for all nodes.
70 80 100 105 110 120 130 [ Balanced Tree = Each Node => 1 / -1 / 0 ]
What is the need for an AVL tree?
Because BST Worst case is O(n) means if we enter elements then it will be Right Skewed tree
AVL = Balanced BST
So to get Balanced Tree we need AVL TreeDisadvantage of a Doubly linked list
Disadvantages Of DLL:
It uses extra memory when compared to the array and singly linked list.
Since elements in memory are stored randomly, therefore the elements are accessed sequentially no direct access is allowed.
Technical achievement bhi pucha
Fat arrow function in react.js
In short, with arrow functions, there is no binding of this. In regular functions, this keyword represented the object that is called the function, which could be the window, the document, a button, or whatever. With arrow functions, this keyword always represents the object that defined the arrow functionClass level component ka life cycle
React Lifecycle
Each component in React has a lifecycle that you can monitor and manipulate during its three main phases.
Three phases are Mounting, Updating, and Unmounting.
Tere resume mai jo technology likha hai na
Uspai hi questions puchega
Tell about your final year project (Or they can also ask about a project which you have mentioned in your resume)
What is the use of <marqee> tag in html
Scrolling area of text.
<marquee>This is basic example of marquee</marquee>
<marquee direction = "up">The direction of top.</marquee>
What are different access specifiers?
public - members are accessible from outside the class
private - members cannot be accessed (or viewed) from outside the class
protected - members cannot be accessed from outside the class, however, they can be accessed in inherited classes.
What is static polymorphism?
Static polymorphism => occurs at compile-time
Dynamic polymorphism => occurs at runtime (during application execution).
Which keyword is used for virtual functions = > virtual
What are AI and ML
Artificial intelligence, or AI, is the ability of a computer or machine to mimic or imitate human intelligent behavior and perform human-like tasks.
Machine learning, or ML, is the subset of AI that has the ability to automatically learn from the data without explicitly being programmed or assisted by domain expertise.
Where AI is used
Virtual Assistant or Chatbots
Retail, Shopping, and Fashion
Security and Surveillance
Live Stock and Inventory Management
Self-driving cars or Autonomous Vehicles
Healthcare and Medical Imaging Analysis
Difference between a simple program vs AI-related program