Coforge
30+ Speed King Road Lines Interview Questions and Answers
Q1. Why we use declare expression and example, What is sub report
Declare expression is used to define reusable expressions. Sub report is a report within a report.
Declare expression helps in reducing redundancy and improving maintainability of the code.
It allows defining expressions that can be used across multiple rules and decision tables.
For example, a declare expression can be used to calculate the age of a customer based on their date of birth.
A sub report is a report that is embedded within another report.
It is used to display relate...read more
Q2. Give you an array of words. You have to reverse the words and they should be where they were at initially?
Reverse the words in an array without changing their positions.
Iterate through each word in the array and reverse them individually
Store the reversed words in a new array while maintaining the original positions
Return the new array with reversed words
Q3. Where do you declare connection string when using middleware
Declaring connection string in middleware
Connection string can be declared in appsettings.json file
It can also be declared in environment variables
Connection string can be injected using dependency injection
Middleware can access connection string from IConfiguration object
Q4. What is the process for building and deploying SPFx (SharePoint Framework) solutions?
The process for building and deploying SPFx solutions involves development, packaging, and deployment steps.
Develop the SPFx solution using web technologies like TypeScript, React, and CSS.
Package the solution using the SharePoint Framework toolchain.
Deploy the packaged solution to the SharePoint app catalog or directly to a site collection.
Test the solution in the SharePoint environment to ensure functionality and compatibility.
Q5. What is difference between mocking and stubbing
Mocking is creating a fake object with predefined behavior, while stubbing is providing a predefined response to a method call.
Mocking is used for testing behavior, while stubbing is used for testing state.
Mocking is more complex and involves creating a complete fake object, while stubbing is simpler and only involves providing a predefined response.
Mocking is used to test interactions between objects, while stubbing is used to test individual methods.
Example of mocking: crea...read more
Q6. What are distributes transactions and how these can be handled in microservices
Distributed transactions involve multiple systems coordinating to ensure data consistency across different services in a microservices architecture.
Distributed transactions involve multiple services or databases working together to ensure data consistency.
In microservices, handling distributed transactions can be challenging due to the decentralized nature of the architecture.
One approach to handling distributed transactions in microservices is using compensating transactions...read more
Q7. How the sales order will cancel which was already invoiced
The sales order can be cancelled by creating a credit memo against the invoice.
Create a credit memo against the invoice for the amount of the invoice.
Ensure that the credit memo is linked to the original sales order.
Update the sales order status to reflect the cancellation.
If any goods have already been shipped, ensure that they are returned and the inventory is updated.
If any payment has been received, issue a refund to the customer.
Q8. What are the out-of-the-box features of SharePoint?
SharePoint out-of-the-box features include document management, collaboration tools, workflow automation, and integration with Microsoft Office.
Document management: SharePoint allows users to store, organize, and share documents in a centralized location.
Collaboration tools: Users can collaborate on documents, tasks, calendars, and discussions within SharePoint sites.
Workflow automation: SharePoint offers built-in workflows to automate business processes and streamline tasks....read more
Q9. What do you consider while choosing between a SQL and nosql database.
Consider data structure, scalability, consistency, and query requirements when choosing between SQL and NoSQL databases.
Consider data structure - SQL for structured data, NoSQL for unstructured or semi-structured data
Scalability - NoSQL databases are more scalable horizontally
Consistency - SQL databases offer strong consistency, while NoSQL databases may offer eventual consistency
Query requirements - SQL for complex queries, NoSQL for simple queries or real-time data processi...read more
Q10. Difference between component and Directives
Components are reusable UI elements while directives are instructions to manipulate the DOM.
Components are self-contained and can be used multiple times in an application.
Directives are used to add behavior to an existing DOM element.
Components have their own template while directives do not.
Examples of components are buttons, forms, and menus while examples of directives are ngIf, ngFor, and ngStyle.
Q11. What is good exists or In in SQL queries
Good exists or In are SQL operators used to filter data based on a list of values.
Good exists operator checks if a subquery returns any rows, and returns true if it does.
In operator checks if a value matches any value in a list.
Both operators are used in the WHERE clause of a SQL query to filter data based on a list of values.
Example: SELECT * FROM table WHERE column_name EXISTS (SELECT * FROM another_table WHERE condition);
Example: SELECT * FROM table WHERE column_name IN (v...read more
Q12. Difference between hashtable and dictionary
Hashtable and dictionary are both key-value pair data structures, but hashtable is a general term while dictionary is specific to Python.
Hashtable is a general term for a data structure that maps keys to values, while dictionary is a specific implementation of a hashtable in Python.
Hashtable is used in many programming languages, while dictionary is specific to Python.
Hashtable allows null values and null keys, while dictionary does not allow null keys.
Hashtable is thread-saf...read more
Q13. Difference between observable and promise
Observables are streams of data that can be observed over time, while Promises are a one-time operation that returns a single value.
Observables can emit multiple values over time, while Promises can only emit a single value.
Observables can be cancelled, while Promises cannot be cancelled once they are initiated.
Observables are lazy, meaning they only execute when subscribed to, while Promises are eager and execute immediately upon creation.
Observables have operators that can ...read more
Q14. What is a component. What is a service How do you communicate between components.
Components are reusable and independent parts of an application. Services are functions that can be shared across components. Communication between components can be achieved through various methods.
Components are modular and can be easily replaced or updated
Services provide functionality that can be shared across components
Communication between components can be achieved through props, events, or a state management system like Redux
Components can be functional or class-based...read more
Q15. Abstraction and encapsulation in c#
Abstraction and encapsulation are two fundamental concepts in object-oriented programming.
Abstraction is the process of hiding complex implementation details and exposing only the necessary information to the user.
Encapsulation is the process of wrapping data and code into a single unit, preventing direct access to the data from outside the unit.
In C#, abstraction can be achieved through abstract classes and interfaces.
Encapsulation can be achieved through access modifiers li...read more
Q16. How many years of exp you have in java
I have 8 years of experience in Java.
I have worked on various Java projects including web applications, desktop applications, and mobile applications.
I am proficient in Java programming language and its related technologies such as Spring, Hibernate, and JPA.
I have experience in designing and developing scalable and maintainable Java applications.
I have also worked on integrating Java applications with other technologies such as databases, messaging systems, and web services.
Q17. Attribute directives in angular
Attribute directives in Angular are used to modify the behavior or appearance of an element.
Attribute directives are used to change the behavior or appearance of an element based on the value of an attribute.
They are denoted by square brackets [] in the HTML template.
They can be used to add, remove or modify attributes of an element.
Examples include ngClass, ngStyle, and ngModel.
Q18. Explain controls in standard order,cash sales
Controls in standard order for cash sales involve ensuring accuracy and security of transactions.
Verify the amount of cash received matches the sale amount
Ensure the cash is deposited in a secure location
Record the transaction in the sales ledger
Reconcile the cash register at the end of the day
Perform regular audits to detect any discrepancies
Q19. What is dependency injection
Dependency injection is a design pattern used to remove hard-coded dependencies and make code more flexible and testable.
Dependency injection involves injecting dependencies into a class rather than having the class create them itself.
This allows for easier testing and swapping out of dependencies.
There are three types of dependency injection: constructor injection, setter injection, and interface injection.
Example: Instead of creating a database connection within a class, th...read more
Q20. What is app.use and app.run
app.use and app.run are methods in Express.js framework for middleware and starting the server respectively.
app.use is used to mount middleware functions in the application's request processing pipeline.
app.run is used to start the server and listen for incoming requests.
Middleware functions can be used for tasks such as logging, authentication, and error handling.
Example: app.use(express.json()) to parse incoming JSON data.
Example: app.run(3000) to start the server on port 3...read more
Q21. Assembly language role in C#
Assembly language is not directly used in C#, but can be used for low-level optimization.
Assembly language can be used to write low-level code that can be called from C#.
It can also be used for performance optimization in critical sections of code.
However, it is not commonly used in modern C# development.
Examples of using assembly language in C# include writing device drivers or interfacing with hardware.
Q22. Life cycle of angular hooks
Angular hooks have a life cycle consisting of several phases.
Angular hooks are functions that allow you to tap into the lifecycle of a component or directive in Angular.
The lifecycle of an Angular hook consists of several phases, including OnInit, OnDestroy, and ngOnChanges.
OnInit is called once the component or directive is initialized, while OnDestroy is called when it is destroyed.
ngOnChanges is called whenever there is a change to the input properties of the component or ...read more
Q23. Rxjs library in angular
Rxjs is a library for reactive programming using Observables in Angular.
Rxjs provides a way to handle asynchronous data streams in Angular applications.
It allows for easy manipulation and transformation of data streams.
Operators like map, filter, and reduce can be used to modify data streams.
Rxjs also provides error handling and retry mechanisms for data streams.
It is an essential part of Angular development and used extensively in Angular applications.
Q24. Should we declare lambda expression
Yes, it is a good practice to declare lambda expressions.
Declaring lambda expressions makes the code more readable and maintainable.
It also helps in debugging and error handling.
Declaring lambda expressions also allows for better type inference and reduces the risk of errors.
For example, instead of writing (x, y) -> x + y, we can declare it as BinaryOperator
add = (x, y) -> x + y;
Q25. Low level design for flight booking system
The flight booking system is a low level design that allows users to search, book, and manage flights.
Design a database schema to store flight details, user information, and booking records
Implement a search functionality to allow users to find available flights based on criteria such as date, destination, and number of passengers
Develop a booking feature that allows users to reserve seats on selected flights
Include a payment gateway integration to handle secure transactions
D...read more
Q26. What are spring components
Spring components are reusable software modules that provide functionality to Spring applications.
Spring components are Java classes that are managed by the Spring IoC container.
They provide functionality such as data access, security, and web services.
Examples include @Controller, @Service, @Repository, and @Component annotations.
Spring components can be easily configured and wired together using dependency injection.
They promote modularity, reusability, and testability in S...read more
Q27. What is hashcode method
Hashcode method returns a unique integer value for an object
Used for efficient storage and retrieval of objects in hash-based data structures
Implemented in Java using hashCode() method
Should be overridden in classes that override equals() method
Example: String class in Java overrides hashCode() method to return a unique integer value for each string
Q28. What is factless fact ?
A factless fact is a fact table that does not have any measures or quantitative data associated with it.
Factless facts are used to represent events or relationships between dimensions without numerical data.
They are commonly used in data modeling to track occurrences or relationships.
Examples include a table tracking student enrollment in courses without any specific metrics, or a table tracking customer purchases without quantities or prices.
Q29. SQL server query optimization
SQL query optimization involves improving the performance of SQL queries by reducing execution time and resource usage.
Use indexes to speed up query execution
Avoid using SELECT * and instead specify only required columns
Use JOINs instead of subqueries
Avoid using functions in WHERE clauses
Use parameterized queries to prevent SQL injection attacks
Q30. 2. What are oops concepts
OOPs concepts refer to Object-Oriented Programming principles such as Inheritance, Encapsulation, Polymorphism, and Abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding the complex implementation details and showing only the necessary features.
Q31. Describe about pricsing
Pricing refers to the process of determining the value of a product or service and setting a monetary amount for it.
Pricing involves analyzing market trends and competition
Factors such as production costs, target audience, and perceived value are considered
Pricing strategies include cost-plus pricing, value-based pricing, and dynamic pricing
Pricing can be adjusted based on demand and supply
Pricing can affect a company's profitability and market position
Q32. Structure of Angular
Angular is a structural framework for dynamic web apps.
Angular uses a component-based architecture
It has a template system for rendering HTML
It uses dependency injection for managing components
Angular has a powerful set of built-in directives and services
It supports two-way data binding for real-time updates
Q33. Find Min max using recursion
Recursively find the minimum and maximum values in an array of strings.
Create a recursive function that takes in an array of strings and two variables to hold the minimum and maximum values.
Base case: if the array has only one element, set both minimum and maximum to that element.
Recursive case: divide the array in half and recursively call the function on each half, updating the minimum and maximum values accordingly.
Combine the minimum and maximum values from each half to g...read more
Q34. Explain Spring actuator
Spring Actuator is a tool that provides endpoints for monitoring and managing Spring Boot applications.
Actuator endpoints provide information about the application's health, metrics, and other details.
It can be used to monitor and manage the application remotely.
It can be customized to expose additional endpoints or to secure the existing ones.
Some of the commonly used endpoints are /health, /info, /metrics, /env, etc.
Q35. Transactions in springboot
Transactions in Spring Boot help manage database operations as a single unit of work.
Transactions ensure that all database operations either succeed or fail together.
Use @Transactional annotation to mark a method as transactional.
Transactions can be managed programmatically using TransactionTemplate.
Spring Boot supports declarative transaction management using @EnableTransactionManagement.
Example: @Transactional public void saveData() { // save data to database }
Q36. Write a simple C++ program
A simple C++ program that prints 'Hello, World!'
Use the 'cout' function from the 'iostream' library to print the message
Remember to include the necessary header files at the beginning of the program
Q37. Internal working of Hashmap
HashMap is a data structure that stores key-value pairs and uses hashing to quickly retrieve values based on keys.
HashMap internally uses an array of linked lists to store key-value pairs.
When a key-value pair is added, the key is hashed to determine the index in the array where the pair will be stored.
If multiple keys hash to the same index, a collision occurs and the pairs are stored in a linked list at that index.
To retrieve a value, the key is hashed again to find the ind...read more
Q38. Types of Dimensions
Types of dimensions include conformed, degenerate, junk, and role-playing dimensions.
Conformed dimensions are shared across multiple data marts or data warehouses.
Degenerate dimensions are attributes that are stored in fact tables.
Junk dimensions are small dimensions that contain flags and indicators.
Role-playing dimensions are dimensions that are used in multiple ways in the same database schema.
Q39. Lifecycle of Android
Android lifecycle refers to the series of states an activity goes through from creation to destruction.
Android lifecycle includes onCreate, onStart, onResume, onPause, onStop, onDestroy, etc.
Activities can be paused, stopped, resumed, or destroyed based on user interactions or system events.
Understanding Android lifecycle is crucial for managing resources and handling state changes effectively.
Interview Process at Speed King Road Lines
Top Senior Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month