OpenText Technologies
20+ CAD Deziners Interview Questions and Answers
Q1. how do you display different color in atable using css for odd even rows
To display different colors in a table using CSS for odd and even rows, you can use the :nth-child() selector.
Use the :nth-child(odd) selector to target odd rows and apply a specific color using the background-color property.
Use the :nth-child(even) selector to target even rows and apply a different color using the background-color property.
For example, you can use CSS code like this: tr:nth-child(odd) { background-color: #f2f2f2; } tr:nth-child(even) { background-color: #fff...read more
Q2. write a program to display words separated by space
This program displays words separated by spaces.
Use an array of strings to store the words.
Iterate through the array and print each word followed by a space.
Exclude the space after the last word.
Q3. how do you develop CSS without using bootstrap
Developing CSS without using bootstrap involves writing custom CSS code to style web pages.
Write CSS code to define styles for HTML elements
Use CSS selectors to target specific elements
Apply CSS properties to modify the appearance of elements
Create media queries for responsive design
Implement CSS animations and transitions
Optimize CSS code for performance
Q4. what is the difference between factory and service
A factory is responsible for creating and managing objects, while a service is responsible for providing specific functionality or performing tasks.
A factory is used to create and initialize objects, often based on certain parameters or configurations.
A service is a component that provides specific functionality or performs tasks for other components or systems.
Factories are commonly used in object-oriented programming to encapsulate object creation logic.
Services are often u...read more
Q5. explain working of Hashing data structure, complexities of various operations in ArrayList and LinkedList, Hashtable vs Hashset
Explanation of Hashing, complexities of ArrayList and LinkedList, and comparison of Hashtable and Hashset.
Hashing is a technique to map data to a fixed-size table using a hash function.
ArrayList has O(1) time complexity for accessing elements, but O(n) for insertion and deletion.
LinkedList has O(1) time complexity for insertion and deletion, but O(n) for accessing elements.
Hashtable is synchronized and allows null values, while Hashset is not synchronized and does not allow d...read more
Q6. how do you develop CSS for different devices
To develop CSS for different devices, use media queries, responsive design principles, and testing on various devices.
Use media queries to apply different CSS styles based on the device's screen size
Follow responsive design principles to ensure the layout adapts to different devices
Test the CSS on various devices to ensure compatibility and responsiveness
Q7. what is angular js
AngularJS is a JavaScript framework for building dynamic web applications.
AngularJS is a client-side MVC framework.
It allows developers to build single-page applications.
It extends HTML with new attributes and tags.
AngularJS uses two-way data binding to automatically synchronize data between the model and the view.
It provides dependency injection and modularization features.
Some popular examples of websites built with AngularJS are Gmail, YouTube, and Netflix.
Q8. What are different annotations you used in sprig framework
Annotations used in Spring framework
1. @Autowired - for automatic dependency injection
2. @Controller - for defining a controller class
3. @RequestMapping - for mapping HTTP requests to controller methods
4. @Service - for defining a service class
5. @Repository - for defining a repository class
6. @Component - for defining a generic Spring-managed component
7. @Value - for injecting values from properties files or environment variables
8. @Qualifier - for specifying which bean to i...read more
Q9. how to get value from ng-getValue=""
ng-getValue is not a standard attribute in Angular. It may be a custom directive or a typo.
Check if ng-getValue is a custom directive or attribute in your Angular application
Verify if it is being used correctly in the HTML template
If it is a typo, correct it to the appropriate attribute or directive
Q10. Write a program to implement strcmp
Program to implement strcmp
Use a loop to compare each character of the two strings
Return 0 if both strings are equal, -1 if s1
s2 Handle null and empty strings appropriately
Q11. Write a program to implement strcat
Program to implement strcat
Declare two character arrays to store the strings to be concatenated
Use a loop to copy the first string into the result array
Use another loop to copy the second string into the result array after the first string
Terminate the result array with a null character
Q12. what is directive
A directive is a programming construct that provides instructions to a compiler or interpreter.
Directives are used to control the behavior of a program or to provide additional information to the compiler or interpreter.
They are typically written as special comments or statements in the code.
Examples of directives include #include in C/C++ to include header files, #pragma to control compiler-specific behavior, and #define to define constants or macros.
Q13. how to consume a restful web service
To consume a RESTful web service, use HTTP methods like GET, POST, PUT, DELETE to interact with the API endpoints.
Identify the API endpoint and its HTTP method
Send a request to the endpoint using the appropriate HTTP method
Receive the response from the API
Parse the response and use the data as required
Q14. write a program to sort
A program to sort an array of strings.
Use a sorting algorithm like bubble sort, insertion sort, or quicksort.
Compare strings using a comparison function.
Implement the sorting algorithm in a function that takes the array as input and modifies it in place.
Q15. what is$watch and $ digest
The $watch and $digest are two important concepts in AngularJS for data binding and updating the view.
$watch is a function in AngularJS that allows you to watch for changes in a specific variable or expression.
$digest is a function in AngularJS that triggers a process called the digest cycle, which updates the bindings and synchronizes the model and view.
The $watch function takes two parameters: the variable or expression to watch and a callback function that gets executed wh...read more
Q16. what is factory
A factory is a design pattern that provides an interface for creating objects of a certain class.
A factory encapsulates the object creation logic and hides it from the client.
It allows the client to create objects without knowing the specific class or implementation details.
Factories can be used to create different types of objects based on certain conditions or parameters.
They promote loose coupling and flexibility in object creation.
Example: A car manufacturing factory that...read more
Q17. what is services
Services are software components that perform specific tasks or provide functionality to other software applications.
Services are self-contained and independent modules that can be accessed by other software components.
They can be used to handle business logic, data processing, communication with external systems, etc.
Examples of services include web services, microservices, RESTful APIs, and cloud services.
Services can be implemented using various technologies and programmin...read more
Q18. what is ng-repeat
ng-repeat is a directive in AngularJS used to repeat HTML elements for each item in an array.
ng-repeat is used to create a loop in AngularJS
It is commonly used to display a list of items from an array
The directive is placed on an HTML element and uses the 'item in array' syntax
It can also be used with filters and sorting
Example:
- {{ item }}
Q19. what is CDN
CDN stands for Content Delivery Network. It is a distributed network of servers that deliver web content to users based on their geographic location.
CDN improves website performance by reducing latency and increasing page load speed.
CDN caches content in multiple locations, allowing users to access it from a server closest to them.
CDN can handle high traffic loads and distribute it across multiple servers.
Popular CDN providers include Cloudflare, Akamai, and Amazon CloudFront...read more
Q20. what is $ rootscope
The $rootscope is a service in AngularJS that provides a global scope for sharing data between controllers.
It is a part of the AngularJS framework.
It is used to share data between controllers.
It is a singleton object accessible throughout the application.
It can be used to broadcast and listen to events.
Q21. what is provider
A provider is a software component or service that supplies data, functionality, or resources to other software applications.
A provider is responsible for delivering data, services, or resources to other software components or applications.
Providers can be APIs, libraries, frameworks, or any other software component that offers functionality to other software.
Examples of providers include database management systems, cloud service providers, and web service APIs.
Q22. what is jquery
jQuery is a fast, small, and feature-rich JavaScript library that simplifies HTML document traversal and manipulation, event handling, and animation.
jQuery is a JavaScript library.
It simplifies HTML document traversal and manipulation.
It provides easy event handling and animation.
jQuery is fast, small, and feature-rich.
Q23. Explain OAuth 2.0
OAuth 2.0 is an authorization framework that allows third-party applications to obtain limited access to a user's account.
OAuth 2.0 is used for delegated authorization, allowing a user to grant access to their resources without sharing their credentials.
It uses tokens (access token, refresh token) to grant access to resources on behalf of the user.
OAuth 2.0 is widely used in APIs, social media platforms, and other web services for secure authorization.
Examples of OAuth 2.0 im...read more
Q24. Design URL Shortener
Design a URL shortener service
Generate a unique short code for each long URL
Store the mapping of short code to long URL in a database
Redirect users from short URL to long URL when accessed
Consider implementing custom short domains for branding
Track analytics for shortened URLs for performance monitoring
Interview Process at CAD Deziners
Top Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month