TailNode
Artcreed Technosys Interview Questions and Answers
Q1. count the number of words in given strings of array using higher order function?
Count the number of words in given strings of array using higher order function.
Use the map function to transform each string into an array of words
Use the reduce function to count the total number of words in all strings
Handle edge cases such as empty strings or strings with leading/trailing spaces
Q2. Fetch the API with proper error handling and async await?
To fetch an API with proper error handling and async await, use try-catch block and await keyword.
Use the fetch() function to make the API request.
Wrap the fetch() call in a try-catch block to handle errors.
Use the await keyword before the fetch() call to wait for the response.
Check the response status code to handle different scenarios.
Handle any errors or exceptions that may occur during the API request.
Q3. What is event bubbling?
Event bubbling is the process in which an event triggered on a nested element is also triggered on its parent elements.
Events in JavaScript propagate from the innermost element to the outermost element.
During event bubbling, the event is first handled by the innermost element and then propagated to its parent elements.
This allows for event delegation, where a single event handler can be used to handle events on multiple elements.
Event.stopPropagation() can be used to stop the...read more
Q4. Psuedo classes in css?
Pseudo classes in CSS are used to select and style elements based on their state or position in the document.
Pseudo classes start with a colon (:) followed by the name of the pseudo class
Common pseudo classes include :hover, :active, :focus, :first-child, :last-child
Pseudo classes can be used to style links, form elements, and other interactive elements
Pseudo classes can also be combined with other selectors to create more specific styles
Q5. Selectors in css?
Selectors in CSS are patterns used to select and style HTML elements.
Selectors are used to target specific elements in an HTML document
There are different types of selectors like element selectors, class selectors, ID selectors, etc.
Selectors can be combined to create complex selectors
Examples: 'h1' selects all h1 elements, '.class' selects elements with a specific class, '#id' selects elements with a specific ID
Q6. How will scale the above problem on basis of using different DB or or caching storage mechanism?
Scaling the problem using different DB or caching storage mechanism involves evaluating performance requirements, data structure, and access patterns.
Evaluate performance requirements to determine if a different DB or caching storage mechanism is necessary
Consider the data structure and access patterns to choose the most suitable storage solution
Implement sharding or partitioning for horizontal scaling with a different DB
Utilize caching mechanisms like Redis or Memcached to i...read more
Q7. How would tackle difficult to communicate effectively while making your point.
I would use clear and concise language, provide examples, and actively listen to ensure understanding.
Use clear and concise language to avoid confusion
Provide examples to illustrate your point
Actively listen to ensure understanding and address any confusion
Interview Process at Artcreed Technosys
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month