Cognizant
40+ SmartCloud Digital Innovations Interview Questions and Answers
Nth term of Fibonacci series F(n), where F(n) is a function, is calculated using the following formula -
F(n) = F(n-1) + F(n-2), Where, F(1) = F(2) = 1
Provided N you have to find out the ...read more
You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to return the list of all pairs of elements such that each sum of elements of each pair equals 'S'.
Note:
Each pair shou...read more
Ninja has built his team of ninjas to fight with the enemies in his city. Ninja made a plan of attacking all his enemies. In his team, every ninja has his own range of hitting and they had secretly ...read more
Print the following pattern
Pattern for N = 4
The dots represent spaces.
Input Format :
N (Total no. of rows)
Output Format :
Pattern in N lines
Constraints :
0 <= N <= 50
You are given a 2-dimensional array/list having N rows and M columns, which is filled with ones(1) and zeroes(0). 1 signifies land, and 0 signifies water.
A cell is said to be connected to...read more
You have been given a text message. You have to return the Run-length Encoding of the given message.
Run-length encoding is a fast and simple method of encoding strings. The basic idea is to r...read more
You live in Dubai and had an infinite supply of oil and a 5 liters and 3 liters jar,
how would you measure exactly 4 liters (of-course in minimum numbers of step) ?
You have a birthday cake and have to cut it into 8 equal pieces by making 3 cuts only. How do you do it?
Create a class named Person with a string variable 'name' and an integer variable 'age,' such that these variables are not accessible outside the class and implement a way to initialize the va...read more
Q10. What type of language do you prefer for complex algorithm ?
I prefer using a language that is efficient and has strong support for data structures and algorithms.
Languages like C++, Java, and Python are good choices for complex algorithms
C++ has strong support for data structures and is efficient in terms of memory and speed
Java has a vast library of data structures and algorithms and is easy to read and maintain
Python has a simple syntax and is great for prototyping and testing algorithms
Ultimately, the choice of language depends on ...read more
Q11. How is salesforce lightning different from classic?
Salesforce Lightning is a modern UI framework with improved user experience and functionality compared to Classic.
Lightning offers a more responsive and customizable user interface.
It provides a better user experience with dynamic components and faster navigation.
Lightning includes features like Lightning App Builder, Lightning Components, and Lightning Experience.
Classic is the older version of Salesforce with a more traditional user interface.
Migration from Classic to Light...read more
Q12. What is normalization and difference between 3NF and BCNF
Normalization is a process of organizing data in a database to reduce redundancy and dependency.
Normalization is used to eliminate data redundancy and dependency.
3NF (Third Normal Form) eliminates transitive dependencies while BCNF (Boyce-Codd Normal Form) eliminates partial dependencies.
3NF is a subset of BCNF.
Normalization helps in improving data consistency and integrity.
Normalization can also improve database performance.
Q13. What are the characteristics of software?
Software is a set of instructions that tell a computer what to do.
Software is intangible and can be easily duplicated.
It is created through programming languages and can be modified.
Software can be classified as system software, application software, and middleware.
Examples of software include Microsoft Office, Adobe Photoshop, and Google Chrome.
Q14. What are some other API call methods?
Some other API call methods include POST, PUT, DELETE, and PATCH.
POST - Used to create a new resource on the server
PUT - Used to update an existing resource on the server
DELETE - Used to delete a resource on the server
PATCH - Used to partially update a resource on the server
Q15. What is meant by javascript closure? And why do we use it?
A closure is a function that has access to its outer function's variables, even after the outer function has returned.
A closure is created when a function is defined inside another function.
It allows for private variables and functions in JavaScript.
Closures are used for data hiding, encapsulation, and creating modules.
Example: function outer() { var x = 10; function inner() { console.log(x); } return inner; } var closure = outer(); closure(); // Output: 10
Q16. What is CNN ? Explain the process in detail
CNN stands for Convolutional Neural Network, a type of deep learning algorithm used for image recognition.
CNN is a type of deep learning algorithm commonly used in image recognition tasks.
It consists of multiple layers such as convolutional, pooling, and fully connected layers.
Convolutional layers apply filters to input images to extract features.
Pooling layers reduce the spatial dimensions of the convolved feature.
Fully connected layers classify the features extracted by the...read more
Q17. How do you call an API?
To call an API, you need to make an HTTP request to the API endpoint with the required parameters and headers.
Use a tool like Postman or cURL to make a request to the API endpoint
Include the necessary parameters in the request (e.g. query parameters, request body)
Set the appropriate headers in the request (e.g. authorization token, content type)
Handle the response from the API (e.g. parsing JSON data, error handling)
Q18. What are LLMs and GENAI? what are vectors?
LLMs and GENAI are machine learning models used in natural language processing. Vectors are mathematical representations of words or phrases.
LLMs (Large Language Models) are advanced machine learning models used in natural language processing tasks such as text generation, translation, and sentiment analysis.
GENAI (Generative Adversarial Network for Artificial Intelligence) is a type of machine learning model that uses a generative adversarial network to create realistic data...read more
Q19. What is the difference between hashtable and hash map
Hashtable is synchronized and does not allow null keys, while hashmap is not synchronized and allows one null key.
Hashtable is synchronized, while hashmap is not.
Hashtable does not allow null keys, while hashmap allows one null key.
Hashtable is thread-safe, while hashmap is not.
Hashtable is slower than hashmap.
Hashtable is part of the legacy collection classes, while hashmap is part of the Java Collections Framework.
Q20. Describe the software development in brief?
Software development is the process of designing, creating, testing, and maintaining software.
Software development involves identifying user requirements and designing a solution
Developers write code and test it to ensure it meets requirements
Maintenance and updates are necessary to keep software functioning properly
Agile and Waterfall are two common development methodologies
Examples of software include operating systems, mobile apps, and web applications
Q21. Implement a fucntion to check if a string is palindrome or not?
Function to check if a string is a palindrome or not.
Create a function that compares the original string with its reverse.
Ignore spaces and punctuation when checking for palindrome.
Examples: 'racecar' is a palindrome, 'hello' is not.
Q22. Difference between lookup and Joiner transformation
Lookup transformation is used to look up data in a flat file or relational table, while Joiner transformation is used to join data from two sources based on a common key.
Lookup transformation is used to look up data in a flat file or relational table
Joiner transformation is used to join data from two sources based on a common key
Lookup transformation can be used for performing lookups on multiple columns, while Joiner transformation can only join data based on a single key
Q23. A GET method to hit the http API
A GET method is used to retrieve data from an HTTP API.
Use the GET verb in the request to retrieve data
Include the API endpoint in the URL
No request body is needed for a GET method
Q24. Tell us about Reliability?
Reliability refers to the ability of a system or component to perform its required functions under stated conditions for a specified period of time.
Reliability is a measure of how often a system or component fails and how quickly it can be restored to normal operation.
It is important to design systems with redundancy and failover mechanisms to ensure high reliability.
Reliability can be improved through regular maintenance and testing.
Examples of reliable systems include air t...read more
Q25. oops concept and types and all along with implemantion.
Object-oriented programming concepts include encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: bundling data and methods that operate on the data into a single unit (class)
Inheritance: allows a class to inherit properties and behavior from another class
Polymorphism: ability for objects of different classes to respond to the same method call
Abstraction: hiding the complex implementation details and showing only the necessary features of an object
Q26. Difference between inner join and outer join
Inner join returns only matching rows from both tables while outer join returns all rows from one table and matching rows from the other.
Inner join is used to combine data from two tables based on a common column.
Outer join is used to combine data from two tables where one table may not have matching rows in the other.
There are three types of outer join: left outer join, right outer join, and full outer join.
Left outer join returns all rows from the left table and matching ro...read more
Q27. How to delete duplicate records
To delete duplicate records, use SQL queries with DISTINCT keyword or create a unique index on the table.
Use SQL queries with DISTINCT keyword to select unique records and insert them into a new table
Create a unique index on the table to prevent insertion of duplicate records
Use programming languages like Python or Java to iterate through records and remove duplicates
Q28. Globalvariable and local variable difference
Global variables are accessible throughout the program, while local variables are only accessible within a specific scope.
Global variables are declared outside of any function and can be accessed by any function in the program.
Local variables are declared within a function and can only be accessed within that function.
Global variables have a global scope, while local variables have a local scope.
Global variables can lead to potential conflicts and make debugging difficult, wh...read more
Q29. What is virtual function
Virtual function is a function in base class that is overridden in derived class.
Virtual functions allow polymorphism in C++
They are declared using the virtual keyword
They are resolved at runtime based on the object type
Virtual functions can be overridden in derived classes
They are used to achieve runtime polymorphism
Q30. What is difference between sap pi and po
SAP PI and PO are both integration platforms, but PI focuses on process integration while PO focuses on process orchestration.
SAP PI (Process Integration) is an integration platform that enables communication between different systems and applications.
SAP PO (Process Orchestration) is an integration platform that not only enables communication but also provides tools for process modeling, monitoring, and automation.
PI focuses on integrating different systems and applications ...read more
Q31. Write a program to reverse a string
Program to reverse a string using array of characters
Create an array of characters from the input string
Iterate through the array in reverse order and append each character to a new string
Return the reversed string
Q32. What is abstract class
An abstract class is a class that cannot be instantiated and is used as a base class for other classes.
An abstract class can have abstract and non-abstract methods.
Abstract methods have no implementation and must be implemented by the derived class.
An abstract class can have constructors and fields.
An abstract class can be used to define a common interface for a group of related classes.
Example: Animal is an abstract class and Dog, Cat, and Bird are derived classes that inher...read more
Q33. Explain RNN and LSTM and implementation.
RNN stands for Recurrent Neural Network, used for sequential data. LSTM is a type of RNN with long-term memory capabilities.
RNN is a type of neural network designed to handle sequential data by maintaining a hidden state that captures information about previous inputs.
LSTM (Long Short-Term Memory) is a type of RNN that addresses the vanishing gradient problem by introducing gates to control the flow of information.
Implementation involves defining the network architecture, spe...read more
Q34. What is oop? Class and Object
OOP stands for Object-Oriented Programming. A class is a blueprint for creating objects, while an object is an instance of a class.
OOP is a programming paradigm that uses objects to design applications.
A class is a template for creating objects, defining their properties and behaviors.
An object is an instance of a class, representing a specific entity in the program.
Encapsulation, inheritance, and polymorphism are key principles of OOP.
Example: Class 'Car' defines properties ...read more
Q35. What is Object oriented programming
Object oriented programming is a programming paradigm based on the concept of objects, which can contain data and code.
OOP focuses on creating objects that interact with each other to solve problems
Encapsulation, inheritance, and polymorphism are key principles of OOP
Examples of OOP languages include Java, C++, and Python
Q36. What is data warehousing
Data warehousing is the process of collecting, storing, and managing data from various sources for analysis and reporting.
Data warehousing involves extracting data from multiple sources
Data is transformed and loaded into a central repository
Allows for complex queries and analysis to be performed on the data
Data warehousing helps in decision-making and business intelligence
Examples include Oracle Exadata, IBM Netezza, and Amazon Redshift
Q37. what is array how it is used
An array is a data structure that stores a collection of elements of the same type in a contiguous memory location.
Arrays are used to store multiple values in a single variable.
Elements in an array are accessed by their index, starting from 0.
Example: string[] names = {"Alice", "Bob", "Charlie"};
Arrays can be used to efficiently store and retrieve data in programming.
Arrays can be multidimensional, allowing for more complex data structures.
Q38. Difference between c and python
C is a statically typed language with manual memory management, while Python is dynamically typed with automatic memory management.
C is a compiled language, while Python is an interpreted language.
C requires explicit memory allocation and deallocation, while Python has automatic memory management.
C is more low-level and closer to the hardware, while Python is more high-level and abstract.
C is faster in terms of execution speed, while Python is more readable and easier to lear...read more
Q39. what are the expectations
Expectations for a Software Developer include technical proficiency, problem-solving skills, teamwork, and continuous learning.
Technical proficiency in programming languages and tools
Strong problem-solving skills to troubleshoot and debug code
Ability to work well in a team and collaborate effectively
Desire for continuous learning and staying updated with industry trends
Good communication skills to interact with team members and stakeholders
Q40. whats is Azure Infra structure
Azure Infrastructure is the foundation of Microsoft's cloud platform, providing a range of services for building, deploying, and managing applications.
Azure Virtual Machines for running applications and services
Azure Virtual Networks for connecting resources securely
Azure Storage for storing data
Azure Load Balancer for distributing incoming network traffic
Azure Resource Manager for managing and organizing Azure resources
Q41. What is middle ware?
Middle ware is software that acts as a bridge between different applications or systems, allowing them to communicate and share data.
Middle ware facilitates communication between different software applications or systems
It acts as a bridge, allowing applications to share data and functionality
Examples include message brokers like RabbitMQ, integration platforms like MuleSoft, and API gateways like Kong
Q42. what is java class
A Java class is a blueprint for creating objects in Java programming language.
Java class is a template that defines the data and behavior of objects.
It contains fields (variables) and methods (functions) to manipulate the data.
Example: 'public class Car { private String color; public void drive() { // code here } }'
Q43. Programming using collections
Programming using collections involves using data structures to store and manipulate groups of related objects.
Collections provide a way to organize and manage data efficiently
Common collections include arrays, lists, sets, and maps
Collections can be used to perform operations such as sorting, filtering, and searching
Examples of collection-based programming include iterating through a list of items and adding or removing elements from a set
Q44. what is linklist
A linked list is a data structure that consists of a sequence of elements where each element points to the next element in the sequence.
Each element in a linked list is called a node.
Nodes in a linked list are connected by pointers or references.
Linked lists can be singly linked (each node points to the next node) or doubly linked (each node points to the next and previous nodes).
Q45. what is polymorphism
Polymorphism is the ability of a function or method to behave differently based on the object it is acting upon.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).
Example: Inheritance allows a child class to override a method from its parent class, exhibiting polymorphic behavior.
Q46. java memory management explain
Java memory management involves allocation, usage, and deallocation of memory in Java programs.
Java uses automatic memory management through garbage collection
Memory is divided into stack and heap
Objects are stored in the heap and references in the stack
Garbage collector removes unreferenced objects to free up memory
Q47. What is sap pi
SAP PI (Process Integration) is an integration platform that enables communication between different systems and applications.
SAP PI is part of the SAP NetWeaver platform.
It allows for seamless integration of various systems, both SAP and non-SAP.
SAP PI provides tools for designing, configuring, and monitoring integration scenarios.
It supports different communication protocols and data formats.
Example: SAP PI can be used to integrate an SAP ERP system with a third-party CRM s...read more
Q48. architecture of snowflake
Snowflake is a cloud-based data warehousing platform that allows for scalable and efficient storage and analysis of data.
Snowflake uses a unique architecture called multi-cluster, shared data architecture.
It separates storage and compute resources, allowing for independent scaling of each.
Data is stored in multiple virtual warehouses, which can be scaled up or down based on workload.
Snowflake uses a central data repository called the metadata store to manage data and queries....read more
Q49. Write code for palindrome
Code to check if a given string is a palindrome or not
Create a function that takes a string as input
Remove all non-alphanumeric characters and convert the string to lowercase
Compare the string with its reverse to check if it is a palindrome
Return true if it is a palindrome, false otherwise
More about working at Cognizant
Top HR Questions asked in SmartCloud Digital Innovations
Interview Process at SmartCloud Digital Innovations
Top Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month