Add office photos
Engaged Employer

Cognizant

3.8
based on 47k Reviews
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by

70+ Interview Questions and Answers

Updated 16 Oct 2024
Popular Designations

Q1. What is an API? Why APIs are so popular these days? What is API Management? Why we need an API Management tool such as Apigee Edge? What is REST? What is the difference between SOAP & REST API ? What is API Pro...

read more
Ans.

Answers to common questions related to APIs, API management, and Apigee Edge

  • API stands for Application Programming Interface and is a set of protocols and tools for building software applications

  • APIs are popular because they allow different software systems to communicate and share data with each other

  • API management involves the process of creating, publishing, documenting, and analyzing APIs

  • Apigee Edge is an API management tool that provides features such as security, analyt...read more

Add your answer

Q2. 1.Four pillars of OOPS concepts with real time example and have you used in your project or not? 2.Abstract class and interfaces with realtime example 3.Finalise and dispose method 4.Garbage collection in c# 5....

read more
Ans.

Interview questions for Project Associate position covering OOPS concepts, MVC, ADO.NET, and SQL.

  • Four pillars of OOPS: Abstraction, Encapsulation, Inheritance, Polymorphism

  • Abstract class: Cannot be instantiated, can have abstract and non-abstract methods

  • Interfaces: Contract that defines a set of methods, can be implemented by classes

  • Finalize method: Called by garbage collector before object is destroyed

  • Dispose method: Used to release unmanaged resources, should be called expl...read more

Add your answer

Q3. Write a program to display most frequent element in an array using Streams and Lambda expression. Difference between ArrayList and HashSet. What is the use of default method in interface? Difference between Str...

read more
Ans.

Answers to technical interview questions on Java programming language.

  • To display most frequent element in an array using Streams and Lambda expression, use Collectors.groupingBy() and Collectors.counting() methods.

  • ArrayList is an ordered collection of elements while HashSet is an unordered collection of unique elements.

  • Default methods in interface are used to provide a default implementation of a method that can be overridden by implementing classes.

  • StringBuffer is synchroniz...read more

Add your answer

Q4. How to debug using gdb and write the commands used ?

Ans.

Debugging using gdb and writing commands

  • Compile the code with -g flag to include debugging information

  • Start gdb with the executable file as argument

  • Set breakpoints using 'break' command

  • Run the program using 'run' command

  • Use 'next' or 'step' command to execute the code line by line

  • Print variable values using 'print' command

  • Use 'backtrace' command to see the call stack

  • Exit gdb using 'quit' command

Add your answer
Discover null interview dos and don'ts from real experiences

Q5. What are the commands to push a file to a repository (add, commit, push)?

Ans.

Commands to push a file to a repository are add, commit, push.

  • Use 'git add ' to stage the changes

  • Use 'git commit -m ' to commit the changes

  • Use 'git push' to push the changes to the remote repository

Add your answer

Q6. What unit testing. What is the framework used for unit testing.

Ans.

Unit testing is a software testing technique where individual units or components of a software application are tested in isolation.

  • Unit testing helps to identify defects early in the development cycle

  • It ensures that each unit of code is working as expected

  • Unit tests are automated and can be run frequently to catch regressions

  • Popular unit testing frameworks include JUnit for Java, NUnit for .NET, and pytest for Python

Add your answer
Are these interview questions helpful?

Q7. What is the use of @Transactional and @Value? What is @Id? Explain lifecycle of a bean. Scopes of bean.

Ans.

Explaining @Transactional, @Value, @Id, bean lifecycle and scopes

  • Transactional is used to manage transactions in Spring

  • Value is used to inject values from properties files or environment variables

  • Id is used to mark a field as the primary key of an entity

  • Bean lifecycle includes instantiation, initialization, use and destruction

  • Scopes of bean include singleton, prototype, request, session, and global session

Add your answer

Q8. 1. What is the data flow in your current project starting from Dataware house till Dumping data in downstream.

Ans.

Data flows from Data Warehouse to downstream through ETL process and data transformation.

  • Data is extracted from Data Warehouse using ETL tools like Informatica, Talend, etc.

  • Data is transformed and cleansed using various data transformation techniques.

  • Transformed data is loaded into downstream systems like Hadoop, Spark, etc.

  • Data is dumped into downstream systems for further processing and analysis.

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. What is process of agile you are working on. And which tool you are using for that.

Ans.

I am currently working on the Scrum process of Agile and using Jira as the tool for project management.

  • I am following the Scrum framework of Agile which involves iterative and incremental development.

  • I am responsible for facilitating daily stand-up meetings, sprint planning, sprint review, and retrospective meetings.

  • Jira is the tool we are using for project management, which helps us to track the progress of tasks, assign them to team members, and monitor the overall project ...read more

Add your answer

Q10. what is node js and what are its major features and cons?

Ans.

Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine.

  • Node.js allows for server-side scripting and event-driven programming.

  • It has a large and active community with a vast number of libraries and modules available.

  • Node.js is known for its scalability and high performance.

  • Cons include potential security vulnerabilities and difficulty in debugging asynchronous code.

  • Node.js is commonly used for web applications, real-time chat applications, and IoT devices.

Add your answer

Q11. What are the match and merge Rules. Difference between match level and search level.

Ans.

Match and merge rules determine how records are matched and merged in a database. Match level refers to the criteria used to identify potential matches, while search level refers to the process of finding and comparing those potential matches.

  • Match rules define the criteria used to identify potential matches between records.

  • Merge rules determine how those potential matches are combined into a single record.

  • Match level refers to the criteria used to identify potential matches,...read more

Add your answer

Q12. What is provisioning tool . Layout designer. Reference entity in provisioning .

Ans.

Provisioning tool is used to automate the process of setting up and managing resources. Layout designer is a tool to design the layout of the provisioning portal. Reference entity is a data model used in provisioning.

  • Provisioning tool automates the process of setting up and managing resources

  • Layout designer is a tool to design the layout of the provisioning portal

  • Reference entity is a data model used in provisioning

  • Provisioning tools include Chef, Puppet, Ansible, etc.

  • Layout ...read more

Add your answer

Q13. What is micro service? How it is different from monolithic application ??

Ans.

Microservices are small, independent, and loosely coupled services that work together to form a larger application.

  • Microservices are independently deployable and scalable.

  • Each microservice performs a specific task and communicates with other services through APIs.

  • Monolithic applications are a single, tightly-coupled unit, while microservices are modular and flexible.

  • Microservices allow for faster development and easier maintenance.

  • Examples of microservices include Amazon, Net...read more

Add your answer

Q14. what do you understand by single threaded operation?

Ans.

Single threaded operation refers to the execution of a program using only one thread of execution.

  • Single threaded programs can only perform one task at a time.

  • They are simpler to write and debug than multi-threaded programs.

  • Examples of single threaded programs include most console applications and simple scripts.

  • Single threaded programs can be less efficient than multi-threaded programs when dealing with complex tasks or large amounts of data.

Add your answer

Q15. How spring boot works , what is beans and scope of the beans

Ans.

Spring Boot is a framework that simplifies the development of Java applications by providing pre-configured settings and dependencies.

  • Spring Boot uses the concept of 'beans' to manage application components and their dependencies.

  • Beans are Java objects that are instantiated, assembled, and managed by the Spring IoC container.

  • The scope of a bean determines its lifecycle and visibility within the application context.

  • There are several bean scopes in Spring Boot, including single...read more

Add your answer

Q16. What is agile. Do you have experience of agile.

Ans.

Agile is a project management methodology that emphasizes flexibility, collaboration, and iterative development.

  • Agile values individuals and interactions over processes and tools

  • It emphasizes working software over comprehensive documentation

  • It involves frequent communication and collaboration between team members

  • It encourages adapting to change rather than following a rigid plan

  • Examples of agile methodologies include Scrum, Kanban, and Extreme Programming

Add your answer

Q17. Difference between sleep and wait in Thread.

Ans.

Sleep and wait are methods used in Thread class in Java for pausing the execution of a thread.

  • Sleep method pauses the execution of the current thread for a specified amount of time.

  • Wait method pauses the execution of the current thread until another thread notifies it to resume.

  • Sleep method does not release the lock on the object while wait method releases the lock on the object.

  • Sleep method is used for delay whereas wait method is used for synchronization.

  • Example: Thread.sle...read more

Add your answer

Q18. What is swiftlint and why it is used.

Ans.

SwiftLint is a tool to enforce Swift style and conventions.

  • SwiftLint is used to ensure consistent coding style and best practices in Swift code.

  • It can be integrated into Xcode or run as a command line tool.

  • SwiftLint checks for issues such as unused code, trailing whitespace, and naming conventions.

  • It can be customized with rules and configurations to fit specific project needs.

Add your answer

Q19. What are different techniques of performance tuning.

Ans.

Different techniques of performance tuning include indexing, query optimization, caching, and code refactoring.

  • Indexing: Creating indexes on frequently queried columns to improve search performance.

  • Query optimization: Rewriting queries to make them more efficient by reducing the number of operations or utilizing indexes.

  • Caching: Storing frequently accessed data in memory to reduce the need for repeated database queries.

  • Code refactoring: Restructuring code to improve efficienc...read more

Add your answer

Q20. what is IBM MQ and how it is configured in java code?

Ans.

IBM MQ is a messaging middleware that enables communication between applications using messages.

  • IBM MQ is a reliable and secure messaging solution

  • It supports various messaging patterns like point-to-point and publish/subscribe

  • IBM MQ can be configured in Java code using the MQ classes for Java API

  • Configuration involves setting up connection factories, queues, and channels

  • Example: Configuring IBM MQ in Java code involves creating a connection factory, setting properties like ho...read more

Add your answer

Q21. Is parrallel execution possible in micro services?

Ans.

Yes, parallel execution is possible in microservices.

  • Microservices architecture allows for independent deployment and scaling of services.

  • Each microservice can be executed in parallel, enabling concurrent processing.

  • Parallel execution improves performance and scalability of the overall system.

  • Microservices can communicate asynchronously, further enhancing parallelism.

  • Examples of parallel execution in microservices include processing multiple requests simultaneously and execut...read more

Add your answer

Q22. what is microservices and have you worked on it?

Ans.

Microservices is an architectural style where an application is composed of small, independent services that communicate with each other.

  • Microservices are independently deployable and scalable.

  • Each microservice performs a specific business function.

  • Communication between microservices is usually through APIs.

  • Microservices can be developed using different programming languages and technologies.

  • Examples of companies using microservices include Netflix, Amazon, and Uber.

Add your answer

Q23. diff between views and MV's rank and dense_rank diff between functions and procedure whAT is private functions about my last working experience

Ans.

Questions related to database concepts and work experience.

  • Views are virtual tables while MVs are physical tables that store the result of a query.

  • Rank assigns a unique rank to each row while dense_rank assigns the same rank to rows with the same value.

  • Functions return a value while procedures do not. Private functions are only accessible within the package they are defined in.

  • Discussed my previous work experience and responsibilities.

Add your answer

Q24. what is the difference between var, let & const?

Ans.

var, let & const are JavaScript keywords used for declaring variables with different scoping rules.

  • var has function scope and can be redeclared and updated

  • let has block scope and can be updated but not redeclared

  • const has block scope and cannot be updated or redeclared

  • Use const for values that won't change, let for values that will change, and var for legacy code

  • Example: var x = 10; let y = 'hello'; const z = true;

Add your answer

Q25. What is difference between SQL and PLSQL?

Ans.

SQL is a standard language for managing relational databases, while PLSQL is Oracle's proprietary extension for SQL with procedural capabilities.

  • SQL is a standard language used to manage and manipulate data in relational databases.

  • PLSQL is Oracle's proprietary extension to SQL that adds procedural capabilities.

  • SQL is used for querying and updating data, while PLSQL is used for writing procedural code like functions and stored procedures.

  • SQL is a declarative language, while PL...read more

Add your answer

Q26. why node. js you have used ? why not java ?

Ans.

Node.js was chosen for its event-driven, non-blocking I/O model and scalability.

  • Node.js is well-suited for real-time applications that require high concurrency and low latency.

  • Java is better suited for large-scale enterprise applications that require strict type checking and robust error handling.

  • Node.js has a large and active community with many useful libraries and frameworks.

  • Node.js is lightweight and easy to deploy, making it a good choice for microservices architecture.

  • N...read more

Add your answer

Q27. How Web API request is processed in asp.net core pipeline?

Ans.

Web API requests in ASP.NET Core are processed through middleware in the request pipeline.

  • Web API requests are processed through middleware components in the ASP.NET Core pipeline.

  • Each middleware component can inspect, modify, or pass on the request to the next component.

  • Middleware components can perform tasks such as authentication, logging, routing, and error handling.

  • The request pipeline is configured in the Startup class using the Configure method.

Add your answer

Q28. Job scheduler and its application in detail

Ans.

Job scheduler is a tool that automates the execution of tasks at specified times or events.

  • Job scheduler helps in automating repetitive tasks

  • It can be used for scheduling backups, sending emails, running scripts, etc.

  • Examples of job schedulers include Cron, Windows Task Scheduler, and Jenkins

  • Job scheduler can improve efficiency and reduce errors in task execution

Add your answer

Q29. Code migration tool and its application in detail

Ans.

A code migration tool is used to transfer code from one platform to another.

  • Code migration tools automate the process of transferring code from one platform to another.

  • They can be used to migrate code between different programming languages or frameworks.

  • Examples of code migration tools include Apache's Ant, Microsoft's Visual Studio, and JetBrains' ReSharper.

  • Code migration tools can help save time and reduce errors when transferring code.

  • They can also help ensure that the mi...read more

Add your answer

Q30. What is PCF ? Why it is preferred today ?

Ans.

PCF stands for Pivotal Cloud Foundry. It is a cloud-native platform for deploying and managing applications.

  • PCF is a popular choice for cloud application development and deployment.

  • It provides a platform for developers to build, test, and deploy applications quickly and easily.

  • PCF offers a range of features such as automatic scaling, load balancing, and self-healing.

  • It supports multiple programming languages and frameworks, including Java, .NET, and Node.js.

  • PCF is preferred t...read more

Add your answer

Q31. What are different http verbs and their uses

Ans.

HTTP verbs are used to specify the type of action to be performed on a resource.

  • GET - retrieve information from the server

  • POST - submit data to be processed by the server

  • PUT - update a resource on the server

  • DELETE - delete a resource on the server

  • HEAD - retrieve headers from the server

  • OPTIONS - retrieve the supported HTTP methods for a resource

  • PATCH - update a resource partially on the server

Add your answer

Q32. How to deploy an application in cloud(Azure/Aws)

Ans.

To deploy an application in cloud, follow these steps:

  • Choose a cloud provider (Azure/AWS)

  • Create an account and login to the cloud console

  • Create a virtual machine or container to host the application

  • Upload the application code and necessary dependencies

  • Configure the application settings and environment variables

  • Test the application and make necessary adjustments

  • Deploy the application to the cloud

  • Monitor the application performance and usage

Add your answer

Q33. What is behaviour subject and its usage?

Ans.

BehaviorSubject is a type of subject in RxJS that emits the most recent value to its subscribers.

  • BehaviorSubject is a type of subject in RxJS

  • It emits the most recent value to its subscribers

  • It requires an initial value upon creation

  • It can be used to share state between components

  • Example: const subject = new BehaviorSubject('initial value')

  • Example: subject.subscribe(value => console.log(value))

  • Example: subject.next('new value')

Add your answer

Q34. What is your role in priveous organization?

Ans.

I was responsible for coordinating project activities, managing timelines, and ensuring deliverables were met.

  • Coordinated project activities among team members

  • Managed project timelines and deadlines

  • Ensured project deliverables were met on time and within budget

Add your answer

Q35. How do you manage login activities in app

Ans.

Login activities in app are managed by implementing secure authentication methods and tracking user login/logout events.

  • Implement secure authentication methods such as OAuth, JWT, or biometric authentication

  • Track user login/logout events to monitor user activity and detect any suspicious behavior

  • Use session management to control user access and prevent unauthorized login attempts

Add your answer

Q36. What are the services familiar in the Azure.

Ans.

Azure offers a wide range of services including computing, storage, databases, networking, analytics, AI, IoT, and more.

  • Compute services (Virtual Machines, App Services)

  • Storage services (Blob Storage, File Storage)

  • Database services (SQL Database, Cosmos DB)

  • Networking services (Virtual Network, Load Balancer)

  • Analytics services (Azure Data Lake, HDInsight)

  • AI services (Cognitive Services, Machine Learning)

  • IoT services (IoT Hub, Event Hubs)

Add your answer

Q37. Explain the use of exception filters in Asp.net MVC?

Ans.

Exception filters in Asp.net MVC are used to handle exceptions globally in the application.

  • Exception filters are attributes that can be applied to controller actions or globally to handle exceptions.

  • They are executed when an unhandled exception occurs during the execution of an action method.

  • Exception filters can be used to log exceptions, redirect to error pages, or perform any custom action.

  • Example: [HandleError] attribute can be used as an exception filter to handle except...read more

Add your answer

Q38. what is package.json ?

Ans.

package.json is a file used in Node.js projects to manage dependencies and configuration.

  • Contains metadata about the project such as name, version, and dependencies

  • Used by package managers like npm to install and manage dependencies

  • Can include scripts to automate tasks like testing and building

  • Example: {"name": "my-project", "version": "1.0.0", "dependencies": {"express": "^4.17.1"}}

Add your answer

Q39. How to production done in any company?

Ans.

Production in a company involves the process of converting raw materials or components into finished goods or services.

  • Planning and scheduling production activities

  • Procuring raw materials or components

  • Manufacturing or assembling products

  • Quality control and assurance

  • Packaging and labeling

  • Distribution and logistics

Add your answer

Q40. How is springboot better than spring

Ans.

Spring Boot is a framework that simplifies the development of Spring applications by providing pre-configured settings and conventions.

  • Spring Boot eliminates the need for manual configuration by providing default settings and auto-configuration.

  • It reduces the development time and effort required to set up a Spring application.

  • Spring Boot includes embedded servers like Tomcat, Jetty, and Undertow, making it easier to deploy standalone Spring applications.

  • It offers a variety of...read more

Add your answer

Q41. what are design patterns in java

Ans.

Design patterns in Java are reusable solutions to common problems encountered in software design.

  • Design patterns help in creating maintainable, scalable, and reusable code.

  • Examples of design patterns in Java include Singleton, Factory, Observer, and Strategy.

  • They provide a general solution that can be adapted to various scenarios.

  • Design patterns promote best practices and improve code readability.

Add your answer

Q42. 2. What is tokenisation in MDM.

Ans.

Tokenisation in MDM is the process of replacing sensitive data with unique identifiers.

  • Tokenisation helps in securing sensitive data by replacing it with a unique identifier or token.

  • The token can be used for data processing and analysis without exposing the original data.

  • For example, credit card numbers can be tokenised to protect them from theft or misuse.

  • Tokenisation is different from encryption as it does not require a key to decrypt the data.

  • Tokenisation can also help in...read more

Add your answer

Q43. What is spread operator?

Ans.

Spread operator is a syntax in JavaScript that allows an iterable such as an array or string to be expanded into individual elements.

  • It is denoted by three dots (...)

  • It can be used to concatenate arrays

  • It can be used to copy an array

  • It can be used to pass arguments to a function

  • It can be used to create a new object with properties of an existing object

  • Example: const arr1 = [1, 2, 3]; const arr2 = [...arr1, 4, 5, 6];

  • Example: const arr1 = [1, 2, 3]; const arr2 = [...arr1];

  • Examp...read more

Add your answer

Q44. What is the types collection in plsql

Ans.

Types collection in PL/SQL is a collection type that can store multiple values of the same data type.

  • Types collection can be nested tables, varrays, or associative arrays.

  • Nested tables are like one-dimensional arrays with no upper bounds.

  • Varrays are like arrays with a maximum size that is specified at declaration.

  • Associative arrays are like arrays indexed by a key value.

View 1 answer

Q45. Can a class be converted to list?

Ans.

Yes, a class can be converted to a list.

  • A class can be converted to a list using the built-in list() function.

  • The resulting list will contain all the attributes of the class.

  • This can be useful for debugging or for iterating over the attributes of the class.

Add your answer

Q46. Difference between a session and a cookie?

Ans.

A session is a server-side storage of user data that is unique to each user, while a cookie is a client-side storage of user data that is stored on the user's browser.

  • Session data is stored on the server, while cookie data is stored on the client's browser.

  • Sessions are typically used for storing sensitive information like user authentication details, while cookies are often used for tracking user behavior or preferences.

  • Sessions are temporary and expire when the user closes t...read more

Add your answer

Q47. How to restrict API calls?

Ans.

API calls can be restricted by implementing rate limiting, authentication, and access control.

  • Implement rate limiting to limit the number of requests per user or IP address.

  • Use authentication to ensure only authorized users can access the API.

  • Implement access control to restrict access to certain endpoints or resources.

  • Use API keys to track usage and identify abusive behavior.

  • Consider using a Content Delivery Network (CDN) to cache responses and reduce server load.

  • Monitor API...read more

Add your answer

Q48. Lifecycle of react in functional component.

Ans.

React lifecycle in functional components involves useEffect hook for side effects.

  • UseEffect hook is used to perform side effects in functional components.

  • It replaces lifecycle methods like componentDidMount, componentDidUpdate, and componentWillUnmount.

  • UseEffect can be used to fetch data, subscribe to services, or update the DOM.

  • Example: useEffect(() => { console.log('Component mounted'); }, []);

Add your answer

Q49. what are PLSQL Objects?

Ans.

PLSQL Objects are user-defined data types in PL/SQL that encapsulate data and behavior.

  • PLSQL Objects are created using the CREATE TYPE statement.

  • They can have attributes (data) and methods (behavior).

  • Objects can be instantiated and used in PL/SQL programs.

  • Example: CREATE TYPE Person AS OBJECT (name VARCHAR2(50), age NUMBER);

Add your answer

Q50. Usage of authguard, interceptor

Ans.

AuthGuard and Interceptor are used in Angular for authentication and HTTP requests respectively.

  • AuthGuard is used to protect routes from unauthorized access.

  • Interceptor is used to modify HTTP requests and responses.

  • AuthGuard can be used to redirect unauthorized users to a login page.

  • Interceptor can be used to add headers or tokens to HTTP requests.

  • Both can be used together to ensure authenticated users have access to protected routes.

Add your answer

Q51. Javascript, Explain node js architecture

Ans.

Node.js architecture is based on event-driven, non-blocking I/O model.

  • Node.js runs on V8 JavaScript engine

  • It uses an event-driven architecture to handle asynchronous operations

  • Node.js has a single-threaded event loop that allows for handling multiple connections simultaneously

  • Modules in Node.js help in organizing code and promoting reusability

Add your answer

Q52. What is OOPs concept in java

Ans.

OOPs concept in Java stands for Object-Oriented Programming, which is a programming paradigm based on the concept of objects.

  • OOPs focuses on creating objects that contain data and methods to manipulate that data.

  • It involves concepts like inheritance, encapsulation, polymorphism, and abstraction.

  • In Java, classes and objects are used to implement OOPs concepts.

  • Example: Creating a class 'Car' with properties like 'brand' and 'color', and methods like 'drive' and 'stop'.

Add your answer

Q53. Difference between react and angular

Ans.

React is a library for building UI components while Angular is a full-fledged framework for building web applications.

  • React uses a virtual DOM while Angular uses a real DOM

  • React is more lightweight and flexible while Angular is more opinionated

  • React uses JSX syntax while Angular uses HTML templates

  • React has a larger ecosystem of third-party libraries while Angular has more built-in features

  • React is easier to learn for beginners while Angular has a steeper learning curve

Add your answer

Q54. What is hoisting?

Ans.

Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope.

  • Variables declared with var are hoisted to the top of their scope.

  • Function declarations are also hoisted to the top of their scope.

  • Function expressions are not hoisted.

  • Hoisting can lead to unexpected behavior and bugs in code.

  • Example: console.log(x); var x = 5; // Output: undefined

Add your answer

Q55. write program for implement async await

Ans.

Implementing async await in a program

  • Use async keyword before a function to make it asynchronous

  • Use await keyword before a promise to pause execution until the promise is resolved

  • Handle errors using try-catch blocks

Add your answer

Q56. what is closure?

Ans.

Closure is a feature in programming languages that allows a function to access variables outside its scope.

  • Closure is used to create private variables and methods in object-oriented programming.

  • It is also used to create callbacks and event handlers in JavaScript.

  • A closure is created when a function is defined inside another function and the inner function references variables from the outer function.

  • The outer function can then return the inner function, which retains access t...read more

Add your answer

Q57. What is paging, lazy loading

Ans.

Paging is a technique used to divide large data sets into smaller chunks. Lazy loading is a technique used to load data on demand.

  • Paging is used to improve performance by reducing the amount of data loaded into memory at once.

  • Lazy loading is used to improve performance by only loading data when it is needed.

  • Paging is commonly used in web applications to display large amounts of data in a user-friendly way.

  • Lazy loading is commonly used in web applications to improve page load ...read more

Add your answer

Q58. What's are basic c# concepts

Ans.

Basic C# concepts include data types, variables, loops, conditional statements, classes, and methods.

  • Data types in C# include int, string, bool, double, etc.

  • Variables are used to store data and can be declared using var keyword.

  • Loops like for, while, and do-while are used for repetitive tasks.

  • Conditional statements like if-else and switch-case help in decision making.

  • Classes are used to define objects with properties and methods.

  • Methods contain code that performs specific tas...read more

Add your answer

Q59. What is Event loop ?

Ans.

Event loop is a mechanism in programming that allows for asynchronous execution of code by continuously checking for and executing tasks in a queue.

  • Event loop is commonly used in JavaScript to handle asynchronous operations.

  • It allows for non-blocking I/O operations by delegating tasks to the operating system.

  • Event loop continuously checks the call stack and task queue to determine which tasks to execute next.

  • Example: setTimeout() function in JavaScript uses event loop to exec...read more

Add your answer

Q60. What is dependency injection

Ans.

Dependency injection is a design pattern in which components are given their dependencies rather than creating them internally.

  • Allows for easier testing by mocking dependencies

  • Promotes loose coupling between components

  • Improves code reusability and maintainability

  • Commonly used in frameworks like Spring in Java

Add your answer

Q61. briefly describe Webdriver Interface

Ans.

Webdriver Interface is a programming interface that allows interaction with web browsers.

  • It is a part of Selenium framework

  • It provides methods to interact with web elements

  • It can simulate user actions like clicking, typing, etc.

  • It can handle alerts, frames, and windows

  • It supports multiple programming languages like Java, Python, etc.

Add your answer

Q62. What is concurrent hashmap

Ans.

ConcurrentHashMap is a thread-safe implementation of the Map interface in Java.

  • ConcurrentHashMap allows multiple threads to read and write to the map concurrently without the need for external synchronization.

  • It achieves thread-safety by dividing the map into segments, each of which can be locked independently.

  • ConcurrentHashMap is more efficient than using synchronized collections for concurrent access.

  • Example: ConcurrentHashMap map = new ConcurrentHashMap<>();

Add your answer

Q63. Difference between error and exception

Ans.

Error is a compile-time issue while exception is a runtime issue in programming.

  • Error is a compile-time issue detected by the compiler.

  • Exception is a runtime issue that disrupts the normal flow of a program.

  • Errors are generally caused by the environment in which the application is running.

  • Exceptions are typically caused by the application itself.

  • Example: Syntax error is an error, while NullPointerException is an exception.

Add your answer

Q64. Define authentication in web api

Ans.

Authentication in web API is the process of verifying the identity of a user or system before granting access to resources.

  • Authentication involves validating the credentials provided by the user, such as username and password.

  • Common authentication methods include token-based authentication, OAuth, and JWT.

  • Authentication helps in ensuring that only authorized users can access protected resources.

  • Examples of authentication in web APIs include using API keys, OAuth tokens, and u...read more

Add your answer

Q65. Dayaweave code for array sorting

Ans.

Dayaweave code for array sorting

  • Use the sort() method to sort the array of strings alphabetically

  • You can also use a custom compare function for sorting based on specific criteria

  • Remember that sort() method modifies the original array

Add your answer

Q66. Explain nodejs architecture

Ans.

Node.js architecture is based on event-driven, non-blocking I/O model, with a single-threaded event loop.

  • Node.js uses V8 JavaScript engine for executing code.

  • It has a built-in module system for loading external modules.

  • Node.js applications are typically run on a server, handling multiple client requests concurrently.

  • It allows for real-time communication through WebSockets or other protocols.

  • Node.js can be used for building APIs, web servers, microservices, and more.

Add your answer

Q67. What is Virtual DOM

Ans.

Virtual DOM is a lightweight copy of the actual DOM in memory, used for efficient updating of the real DOM.

  • Virtual DOM is a concept used in frameworks like React to improve performance by minimizing actual DOM manipulations.

  • Changes are first made to the Virtual DOM, which is then compared to the real DOM to identify the minimal updates needed.

  • This approach reduces the number of costly DOM operations, resulting in faster rendering and better user experience.

Add your answer

Q68. What is what &amp; how

Ans.

The question is asking for an explanation of 'what' something is and 'how' it works.

  • Define the subject or concept being asked about

  • Explain the characteristics or components of the subject

  • Describe the process or mechanism of how it functions

  • Provide examples to illustrate the explanation

Add your answer

Q69. Teradata vs snowflake

Ans.

Teradata is a traditional data warehouse system, while Snowflake is a cloud-based data warehouse platform.

  • Teradata is an on-premise data warehouse solution known for its scalability and performance.

  • Snowflake is a cloud-based data warehouse platform that offers flexibility and scalability.

  • Teradata uses a shared-nothing architecture, while Snowflake uses a multi-cluster, shared data architecture.

  • Snowflake separates storage and compute, allowing for independent scaling of each.

  • T...read more

Add your answer

Q70. Migration process in snowflake

Ans.

Migration process in Snowflake involves copying data from one environment to another while maintaining data integrity and consistency.

  • Use Snowflake's COPY INTO command to export data from one environment and COPY INTO to import data into another environment

  • Ensure proper permissions are set up for the migration process

  • Consider using Snowpipe for real-time data ingestion during migration

  • Monitor the migration process using Snowflake's built-in monitoring tools

  • Test the migration ...read more

Add your answer

More about working at Cognizant

Top Rated Mega Company - 2024
Top Rated IT/ITES Company - 2024
HQ - Teaneck. New Jersey., United States (USA)
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at null

based on 35 interviews in the last 1 year
3 Interview rounds
Technical Round
HR Round 1
HR Round 2
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Project Associate Interview Questions from Similar Companies

View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter