ONPASSIVE
20+ KARNAWATI TRADELINK Interview Questions and Answers
Q1. How can you pass data between parent and child components?, what is component interaction
Passing data between parent and child components is component interaction in Angular.
Use @Input decorator to pass data from parent to child component
Use @Output decorator and EventEmitter to pass data from child to parent component
Use services to share data between components
Use ViewChild to access child component's properties and methods from parent component
Q2. What are life cycle hooks and have you worked on them in your project?
Life cycle hooks are methods that get called at specific stages of a component's life cycle.
ngOnInit() - called after the component is initialized
ngOnChanges() - called when the component's input properties change
ngOnDestroy() - called just before the component is destroyed
Used to perform specific actions at different stages of a component's life cycle
Yes, I have worked on them in my project
Q3. what are the features of latest typescript version you used in your project
The latest version of TypeScript used in my project has several new features.
Optional Chaining and Nullish Coalescing
Improved performance with faster compilation times
Support for private fields and methods
Higher order type inference from generic constructors
Support for ECMAScript private fields
Improved support for tuples
Smaller bundle sizes with tree shaking
Q4. What are different data bindings in angular
Angular has four types of data bindings: Interpolation, Property binding, Event binding, and Two-way binding.
Interpolation: {{ expression }}
Property binding: [property]="expression"
Event binding: (event)="expression"
Two-way binding: [(ngModel)]="expression"
Q5. How do you call REST APIs in angular?
To call REST APIs in Angular, use the HttpClient module and its methods like get(), post(), put(), delete().
Import the HttpClientModule in your Angular module
Inject the HttpClient service in your component or service
Use the HttpClient methods to make HTTP requests to the REST APIs
Handle the response using observables and subscribe to them
Example: httpClient.get('https://api.example.com/data')
Example: httpClient.post('https://api.example.com/data', postData)
Q6. What is the importance of having Exploratatory Testing in Test plan?
Exploratory testing in test plan helps uncover defects that may not be found through scripted testing.
Allows testers to explore the application and identify defects that may not be covered in scripted tests
Encourages creativity and critical thinking in testers
Helps in finding unexpected issues and improving test coverage
Can be more efficient in certain scenarios compared to scripted testing
Provides valuable feedback to improve the overall quality of the software
Q7. What is your test strategy and test plan when you are assigned to E-Commerce project?
My test strategy for an E-Commerce project involves thorough functional testing, performance testing, security testing, and user experience testing.
Conduct functional testing to ensure all features work as expected (e.g. product search, add to cart, checkout).
Perform performance testing to assess system response times under various loads (e.g. peak shopping periods).
Conduct security testing to identify vulnerabilities in payment processing and user data protection.
Test user e...read more
Q8. Tell me about a common challenge that you faced while testing an application?
One common challenge I faced while testing an application was dealing with inconsistent test environments.
Inconsistent test environments can lead to unreliable test results.
Ensuring that all test environments are set up correctly and consistently is crucial.
Communicating with developers and other team members to address any issues with test environments is important.
Documenting any discrepancies or issues encountered during testing for future reference.
Q9. What will you do if the requirements are keep on changing?
I will communicate with stakeholders to understand the changes, assess impact on current work, prioritize tasks, and update documentation accordingly.
Communicate with stakeholders to understand the changes
Assess impact on current work and project timeline
Prioritize tasks based on new requirements
Update documentation and test cases accordingly
Q10. How do you handle the scenario if there is a scope creep?
I would communicate with stakeholders to understand the changes, assess impact on project timeline and budget, and document the changes formally.
Communicate with stakeholders to understand the changes
Assess impact on project timeline and budget
Document the changes formally
Q11. what is routing and write its syntax
Routing is the process of navigating between different components or pages in an Angular application.
Routing is used to create single-page applications (SPAs) where the content is dynamically loaded without refreshing the entire page.
In Angular, routing is achieved using the RouterModule and the RouterLink directives.
The RouterModule is imported from the @angular/router package and added to the imports array of the app module.
Routes are defined as an array of objects, where e...read more
Q12. What is lazy loading and write syntax
Lazy loading is a technique in Angular that loads modules or components on-demand, improving performance.
Lazy loading helps reduce initial load time by loading modules or components only when needed
It improves performance by splitting the application into smaller chunks
Syntax: import() function is used to dynamically load modules or components
Q13. Difference between Observable and Promise?
Observable is for handling multiple values over time, while Promise is for handling a single value.
Observable can emit multiple values over time, while Promise can only emit a single value.
Observable can be cancelled, while Promise cannot be cancelled.
Observable provides operators for transforming and combining data, while Promise does not have such operators.
Observable is lazy, meaning it won't start emitting values until someone subscribes to it, while Promise starts execut...read more
Q14. What do you know about Bug release and Bug Leakage?
Bug release is when a bug is fixed and the updated software is released to users. Bug leakage is when a bug is not detected during testing and is found by users after release.
Bug release occurs when a bug is fixed and the updated software is released to users.
Bug leakage happens when a bug is not detected during testing and is found by users after release.
Bug release is a planned process, while bug leakage is an unplanned occurrence.
Bug release can be controlled by thorough t...read more
Q15. What is your approach when defect found in Production?
I prioritize investigating the root cause, collaborating with the team to fix the defect, and implementing preventive measures.
Investigate the root cause of the defect
Collaborate with the team to fix the defect
Implement preventive measures to avoid similar defects in the future
Q16. What are @Input() and @Output()?
The @Input() and @Output() are decorators in Angular used for communication between parent and child components.
The @Input() decorator is used to pass data from a parent component to a child component.
The @Output() decorator is used to emit events from a child component to a parent component.
The @Input() property is bound to a value in the parent component template using property binding.
The @Output() property is bound to an event in the child component template using event b...read more
Q17. Can you tell me about the Defect life cycle?
Defect life cycle is the process of identifying, reporting, fixing, retesting, and closing defects in software development.
Defect identification: Defects are identified through testing or user feedback.
Defect reporting: Once a defect is identified, it is reported in a defect tracking system.
Defect fixing: Developers analyze and fix the reported defects.
Defect retesting: Testers verify that the fixed defects are indeed resolved.
Defect closing: Once the fixed defects are verifi...read more
Q18. what are web workers?
Web workers are JavaScript scripts that run in the background, separate from the main browser thread.
Web workers allow for parallel execution of tasks, improving performance and responsiveness.
They can perform computationally intensive tasks without blocking the user interface.
Web workers communicate with the main thread using message passing.
Examples of tasks suitable for web workers include data processing, image manipulation, and complex calculations.
Q19. What difference between spring vs spring boot
Spring is a framework while Spring Boot is an extension of Spring.
Spring Boot provides a pre-configured environment for Spring applications.
Spring Boot reduces the amount of boilerplate code required for setting up a Spring application.
Spring Boot includes an embedded server, making it easier to deploy applications.
Spring Boot provides a range of starter dependencies for common use cases.
Spring Boot is ideal for microservices architecture.
Spring is more flexible and customiza...read more
Q20. What's are access modifiers What is thread locking What is hasmap and hashset
Access modifiers control the visibility of class members. Thread locking is a mechanism to synchronize access to shared resources. HashMap and HashSet are Java collections.
Access modifiers include public, private, protected, and default
Thread locking prevents multiple threads from accessing shared resources simultaneously
HashMap is a collection that stores key-value pairs and allows null keys and values
HashSet is a collection that stores unique elements and does not allow dup...read more
Top HR Questions asked in KARNAWATI TRADELINK
Interview Process at KARNAWATI TRADELINK
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month