Filter interviews by
Wildcard routes in Angular allow for handling unknown routes and redirecting to a default route.
Wildcard route is denoted by '**' in the route configuration.
It is typically used at the end of the route configuration to handle unknown routes.
Example: { path: '**', redirectTo: '/404' }
Subject vs BehaviourSubject in Angular
Subject is a basic observable that emits values to subscribers
BehaviourSubject is a type of Subject that stores the latest value and emits it to new subscribers
BehaviourSubject requires an initial value when created
ForkJoin is an operator in Angular that allows for parallel execution of multiple observables.
ForkJoin combines the values from multiple observables and emits them as an array when all observables complete.
It waits for all observables to complete and then emits the combined result.
Example: forkJoin([observable1, observable2]).subscribe(result => console.log(result));
Handle errors in fetching API calls by implementing error handling mechanisms.
Use try-catch blocks to catch errors during API calls
Implement error handling logic in the catch block to handle different types of errors
Display user-friendly error messages to inform users about the issue
Use HTTP status codes to identify the type of error (e.g. 404 for not found)
Implement retry mechanisms for temporary network issues
Custom pipes in Angular are used to transform data in templates.
Custom pipes are created using the @Pipe decorator in Angular.
To use a custom pipe in HTML, you need to include it in the declarations array of the NgModule.
You can pass parameters to custom pipes in HTML using the pipe symbol (|).
Example: {{ value | customPipe:param1:param2 }}
Shallow copy only copies the references of nested objects, while deep copy creates new copies of nested objects.
Shallow copy creates a new object but does not create copies of nested objects.
Deep copy creates a new object and also creates copies of nested objects.
Shallow copy is faster and more memory efficient, but changes to nested objects affect both original and copied objects.
Deep copy is slower and consumes ...
ng-template, ng-content, and ng-container are Angular structural directives used for template rendering and content projection.
ng-template is used to define a template that can be rendered conditionally or multiple times.
ng-content is used for content projection, allowing the insertion of content from a parent component into a child component.
ng-container is a grouping element that doesn't interfere with styles or...
Arrow functions are concise and do not bind their own 'this' value, while regular functions have their own 'this' value and can be used as constructors.
Arrow functions have a more concise syntax compared to regular functions.
Arrow functions do not have their own 'this' value, they inherit it from the parent scope.
Regular functions have their own 'this' value, which can be useful for object-oriented programming and...
I appeared for an interview in Dec 2024.
ES6 features are modern JavaScript enhancements that improve code readability and efficiency.
Arrow functions for concise syntax: const add = (a, b) => a + b;
Let and const for block-scoped variables: let x = 5; const y = 10;
Template literals for string interpolation: const name = 'John'; console.log(`Hello, ${name}!`);
Destructuring assignment for easily extracting values from arrays or objects: const { firstName, las...
Arrow functions are concise and do not bind their own 'this' value, while regular functions have their own 'this' value and can be used as constructors.
Arrow functions have a more concise syntax compared to regular functions.
Arrow functions do not have their own 'this' value, they inherit it from the parent scope.
Regular functions have their own 'this' value, which can be useful for object-oriented programming and cons...
Subject vs BehaviourSubject in Angular
Subject is a basic observable that emits values to subscribers
BehaviourSubject is a type of Subject that stores the latest value and emits it to new subscribers
BehaviourSubject requires an initial value when created
Custom pipes in Angular are used to transform data in templates.
Custom pipes are created using the @Pipe decorator in Angular.
To use a custom pipe in HTML, you need to include it in the declarations array of the NgModule.
You can pass parameters to custom pipes in HTML using the pipe symbol (|).
Example: {{ value | customPipe:param1:param2 }}
ng-template, ng-content, and ng-container are Angular structural directives used for template rendering and content projection.
ng-template is used to define a template that can be rendered conditionally or multiple times.
ng-content is used for content projection, allowing the insertion of content from a parent component into a child component.
ng-container is a grouping element that doesn't interfere with styles or layo...
ForkJoin is an operator in Angular that allows for parallel execution of multiple observables.
ForkJoin combines the values from multiple observables and emits them as an array when all observables complete.
It waits for all observables to complete and then emits the combined result.
Example: forkJoin([observable1, observable2]).subscribe(result => console.log(result));
Wildcard routes in Angular allow for handling unknown routes and redirecting to a default route.
Wildcard route is denoted by '**' in the route configuration.
It is typically used at the end of the route configuration to handle unknown routes.
Example: { path: '**', redirectTo: '/404' }
Handle errors in fetching API calls by implementing error handling mechanisms.
Use try-catch blocks to catch errors during API calls
Implement error handling logic in the catch block to handle different types of errors
Display user-friendly error messages to inform users about the issue
Use HTTP status codes to identify the type of error (e.g. 404 for not found)
Implement retry mechanisms for temporary network issues
Top trending discussions
posted on 17 Sep 2023
I applied via Naukri.com and was interviewed before Sep 2022. There were 4 interview rounds.
Basic programming questions, like find the occurrence of the characters in a string
I applied via Naukri.com and was interviewed in Oct 2021. There were 4 interview rounds.
A prime number is a natural number greater than 1 that cannot be formed by multiplying two smaller natural numbers.
A prime number has exactly two distinct positive divisors: 1 and itself.
Examples of prime numbers include 2, 3, 5, 7, 11, and 13.
The number 1 is not prime, and 2 is the only even prime number.
To check if a number n is prime, test divisibility from 2 to sqrt(n).
For example, to check if 29 is prime, test div...
Java is platform independent due to its bytecode and the Java Virtual Machine (JVM) that allows execution on any OS.
Java code is compiled into bytecode, which is platform-independent.
The Java Virtual Machine (JVM) interprets bytecode on any operating system.
This allows Java applications to run on Windows, macOS, Linux, etc., without modification.
Example: A Java program compiled on Windows can run on Linux without recom...
REST API is lightweight and flexible, while SOAP is more structured and secure.
REST uses HTTP protocol and supports multiple data formats like JSON, XML, etc.
SOAP uses XML protocol and supports only XML data format.
REST is faster and consumes less bandwidth than SOAP.
SOAP has built-in security features like WS-Security and WS-Trust.
REST is easier to implement and maintain than SOAP.
SOAP is better suited for enterprise-...
I applied via Naukri.com and was interviewed in May 2021. There were 3 interview rounds.
To create a repository in GIT using command prompt, use the 'git init' command.
Open the command prompt and navigate to the directory where you want to create the repository
Type 'git init' command to initialize the repository
Add files to the repository using 'git add' command
Commit the changes using 'git commit' command
Create a remote repository on GitHub or any other hosting service
Add the remote repository using 'git ...
Primary key uniquely identifies a record in a table, while foreign key refers to a field in another table.
Primary key is a column or set of columns that uniquely identifies each row in a table
Foreign key is a column or set of columns in one table that refers to the primary key in another table
Primary key cannot have null values, while foreign key can have null values
Primary key can be used to create relationships betwe...
Count the characters in a given string.
Iterate through the string and count each character
Use a hash table to store the count of each character
Handle edge cases such as empty string or null input
REST is an architectural style while SOAP is a protocol. REST is lightweight and uses HTTP while SOAP is XML-based and uses other protocols.
REST is stateless while SOAP maintains state
REST uses HTTP verbs (GET, POST, PUT, DELETE) while SOAP uses XML messaging
REST is faster and easier to use while SOAP is more secure and reliable
REST is used for web services while SOAP is used for enterprise-level web services
Examples o...
I applied via Referral and was interviewed in Dec 2021. There were 5 interview rounds.
oAuth tokens are used for authentication and authorization purposes in web applications.
oAuth tokens are used to grant access to resources without sharing the user's credentials.
There are three types of oAuth tokens: access tokens, refresh tokens, and authorization codes.
Access tokens are short-lived tokens that are used to access protected resources.
Refresh tokens are long-lived tokens that are used to obtain new acce...
Stored Procedures are pre-compiled SQL statements stored in the database and executed on demand.
Stored Procedures are used to improve performance by reducing network traffic and improving security.
They can be used to encapsulate business logic and provide a consistent interface to the database.
They can be called from other PL/SQL code or from external applications.
Examples include procedures for inserting, updating, an...
Drop command removes a table from the database, truncate command removes all rows from a table, and delete command removes specific rows from a table.
Drop command removes the table structure and all associated data
Truncate command removes all rows from a table but keeps the table structure
Delete command removes specific rows from a table based on a condition
Drop and truncate are faster than delete as they do not genera...
Merge Sort and Quick Sort are sorting algorithms. Merge Sort is stable but slower. Quick Sort is faster but unstable.
Merge Sort divides the array into two halves, sorts them recursively, and then merges them.
Quick Sort selects a pivot element, partitions the array around the pivot, and then recursively sorts the subarrays.
Merge Sort has a time complexity of O(nlogn) and space complexity of O(n).
Quick Sort has a time co...
Object Oriented Programming is a programming paradigm that focuses on objects and their interactions.
OOP is based on the concepts of encapsulation, inheritance, and polymorphism.
It allows for modular and reusable code.
Objects have attributes (data) and methods (functions) that operate on that data.
Examples of OOP languages include Java, Python, and C++.
Armstrong number problem solved using double pointers.
Use double pointers to access each digit of the number.
Calculate the sum of each digit raised to the power of the number of digits.
Compare the sum with the original number to check if it is an Armstrong number.
VPC stands for Virtual Private Cloud, which is a virtual network in the cloud.
VPC allows users to create their own isolated network within the cloud
It provides control over network topology, IP address range, and subnets
VPC can be used to securely connect resources in the cloud and on-premises
Examples of cloud providers that offer VPC are Amazon Web Services and Google Cloud Platform
On-premises servers can be connected to the Cloud using VPN or Direct Connect.
Use a VPN to establish a secure connection between on-premises servers and the Cloud.
Direct Connect can be used for a dedicated, private connection between on-premises servers and the Cloud.
Ensure proper network configuration and security measures are in place.
Examples of VPN solutions include OpenVPN, Cisco AnyConnect, and AWS VPN.
Examples o...
I applied via Naukri.com and was interviewed in Jul 2021. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Jul 2021. There were 4 interview rounds.
I applied via Recruitment Consulltant and was interviewed before Feb 2021. There were 4 interview rounds.
Java code to get odd numbers
Use a loop to iterate through numbers
Check if the number is odd using modulus operator
Add the odd number to a list or print it
Scalability refers to the ability of a system to handle increasing amounts of work. Cloud integration is the process of connecting cloud-based services with other systems or applications.
Scalability involves designing a system that can handle increased workload without sacrificing performance or reliability.
Cloud integration involves connecting cloud-based services with other systems or applications, often through APIs...
I applied via Naukri.com and was interviewed in Feb 2022. There were 5 interview rounds.
based on 1 interview experience
Difficulty level
Duration
Software Engineer
219
salaries
| ₹4.2 L/yr - ₹10.3 L/yr |
Senior Software Engineer
199
salaries
| ₹11.9 L/yr - ₹21 L/yr |
Senior QA Engineer
47
salaries
| ₹8.2 L/yr - ₹15.2 L/yr |
QA Engineer
44
salaries
| ₹4.5 L/yr - ₹9 L/yr |
Softwaretest Engineer
44
salaries
| ₹4.1 L/yr - ₹10.3 L/yr |
Damco Solutions
smartData Enterprises
In Time Tec Visionsoft
AgreeYa Solutions