i
Tech Q Ware Technologies
Filter interviews by
Custom implementation of flatten method in Ruby
Create a recursive function to iterate through the array elements
Check if each element is an array or not, if it is an array then call the function recursively
Concatenate the elements into a single array and return the result
Mixins in Ruby are a way to add functionality to a class without inheritance.
Mixins are modules that can be included in a class to extend its functionality.
They allow for code reuse and help avoid duplication.
Mixins are included using the 'include' keyword in Ruby.
extend adds class methods, prepend adds instance methods, include adds module methods
extend adds methods to a class as class methods
prepend adds methods to a class as instance methods
include adds methods to a class as module methods
Class methods are called on the class itself, while instance methods are called on instances of the class.
Class methods are defined using 'self' keyword in the method name.
Instance methods are defined without 'self' keyword in the method name.
Class methods are used for operations that are not specific to any instance of the class.
Instance methods are used for operations that are specific to individual instances of the
Top trending discussions
ES6 introduced several new features and improvements to JavaScript, making it more powerful and efficient.
Arrow functions for more concise syntax
Let and const for block-scoped variables
Classes for easier object-oriented programming
Template literals for easier string interpolation
Default parameters and rest parameters for function arguments
Destructuring assignment for easier data extraction
Promises for asynchronous prog
Yes, let and const variables are hoisted but not initialized.
let and const variables are hoisted to the top of their block scope, but they are not initialized until the actual line of code is executed.
This means that you cannot access a let or const variable before it is declared in the code.
For example, trying to access a let variable before it is declared will result in a ReferenceError.
Global context refers to the overall environment or setting in which something exists or operates.
Global context encompasses all variables, functions, and objects that are accessible throughout an entire program.
It can be thought of as the 'big picture' view of a program's execution.
In web development, global context includes the window object in JavaScript.
Temporal dead zone is a period during the variable creation process where accessing the variable results in a ReferenceError.
Occurs when trying to access a variable before it has been declared with let or const
Happens due to the variable being in the temporal dead zone until it is declared
Example: accessing a variable before its declaration will result in a ReferenceError
Modules in Node.js are reusable blocks of code that encapsulate related functionality.
Modules in Node.js can be built-in modules like fs (file system) or third-party modules like express.
Modules help in organizing code into separate files for better maintainability and reusability.
Modules can be imported using the require() function in Node.js.
Indexes in MongoDB improve query performance by allowing the database to quickly locate and retrieve specific documents.
Indexes help to speed up query performance by allowing the database to quickly locate specific documents based on the indexed fields.
Without indexes, MongoDB would have to perform a collection scan, which can be slow and resource-intensive.
Indexes can be created on single fields or compound fields to ...
Hooks are a feature in React that allow you to use state and other React features in functional components. useRef is a hook that allows you to create a mutable object that persists for the lifetime of the component.
Hooks are used to add state and lifecycle methods to functional components in React
useRef is used to create a mutable reference that persists between renders
useRef can be used to access DOM elements directl
Mongoose is an Object Data Modeling (ODM) library for MongoDB that provides a higher level of abstraction and simplifies interactions with the database.
Mongoose provides schema validation which helps maintain data integrity.
Mongoose simplifies querying and data manipulation with built-in functions.
Mongoose supports middleware functions for pre and post processing of data operations.
I applied via Company Website and was interviewed in Jul 2024. There were 2 interview rounds.
posted on 13 Aug 2024
I applied via Referral and was interviewed in Jul 2024. There was 1 interview round.
Single page application is a web application that loads a single HTML page and dynamically updates the content as the user interacts with the app.
SPA uses AJAX and HTML5 to create fluid and responsive user experience.
It eliminates the need for page reloading during use, making it faster and more efficient.
Examples include Gmail, Facebook, and Google Maps.
State management is the process of managing the state of an application, including data flow, user interface updates, and user interactions.
State management involves storing and updating the state of an application to ensure data consistency.
It helps in managing user interface updates based on changes in the application state.
State management is crucial for handling user interactions and maintaining a seamless user exp...
I applied via LinkedIn and was interviewed in Sep 2024. There was 1 interview round.
posted on 24 Sep 2024
I was interviewed in Aug 2024.
Coding test on java full stack
Classes are blueprints for creating objects in object-oriented programming. They define properties and behaviors.
Classes are templates for creating objects with similar properties and behaviors.
They can have attributes (variables) and methods (functions).
Classes can inherit properties and behaviors from other classes through inheritance.
Example: Class 'Car' can have attributes like 'color' and methods like 'drive'.
A string in Java is a sequence of characters used to represent text.
Strings are objects in Java and are immutable, meaning their values cannot be changed once they are created.
Strings can be created using double quotes, like "Hello, World!", or by calling the String constructor.
String concatenation can be done using the '+' operator, like "Hello" + "World".
Common methods for manipulating strings include length(), charA...
I applied via Naukri.com and was interviewed in Feb 2024. There were 2 interview rounds.
posted on 17 Oct 2023
I applied via Campus Placement and was interviewed in Sep 2023. There were 3 interview rounds.
Aptitude test reasoning test 30 questions and technical part 30 questions
Method overloading and overriding are used in object-oriented programming to create multiple methods with the same name but different parameters or implementations. For and while loops are used for iteration in programming.
Method overloading involves creating multiple methods in the same class with the same name but different parameters. Example: void print(int num) and void print(String str)
Method overriding involves ...
The aptitude test was of moderate level.
It checked on the concepts of oops
I will prioritize tasks, communicate effectively with team members, and utilize time management techniques to meet deadlines.
Prioritize tasks based on importance and urgency
Break down tasks into smaller manageable chunks
Communicate effectively with team members to coordinate efforts
Utilize time management techniques such as Pomodoro technique or Agile methodologies
Identify and eliminate any potential roadblocks or bott...
based on 1 review
Rating in categories
Software Engineer
5
salaries
| ₹2.4 L/yr - ₹10.5 L/yr |
Senior Software Engineer
4
salaries
| ₹14 L/yr - ₹26 L/yr |
Front end Developer
4
salaries
| ₹2.5 L/yr - ₹7.6 L/yr |
Senior Software Developer
3
salaries
| ₹7 L/yr - ₹25 L/yr |
Infosys
TCS
Wipro
HCLTech