Filter interviews by
Remove duplicates from array of strings
Create a Set to store unique strings
Iterate through the array and add each string to the Set
Convert the Set back to an array to get the unique strings
Encapsulation is the concept of bundling data and methods that operate on the data into a single unit.
Encapsulation helps in hiding the internal state of an object and only exposing necessary functionalities.
It allows for better control over the data by preventing direct access from outside the class.
Example: A car object encapsulates its properties like speed, fuel level, and methods like start, stop, accelerate.
...
Check if a number is a palindrome or not
Convert the number to a string
Reverse the string and compare with the original string
If they are the same, the number is a palindrome
Lists are mutable, ordered collections of items, while tuples are immutable, ordered collections of items.
Lists are denoted by square brackets [], while tuples are denoted by parentheses ().
Lists can be modified after creation, while tuples cannot be modified.
Lists are typically used for collections of similar items that may need to be changed, while tuples are used for fixed collections of items.
Example: list_exa...
break, pass, and continue are control flow statements used in programming to alter the flow of execution.
break: used to exit a loop or switch statement
pass: not a keyword in most programming languages, but can be used as a placeholder for future code
continue: used to skip the rest of the current iteration in a loop and start the next iteration
List is a data structure in Python that stores a collection of items in a specific order.
Common methods/functions for lists in Python include append(), remove(), sort(), and index().
Lists can contain different data types, such as strings, integers, and even other lists.
Lists are mutable, meaning you can change the elements within a list after it has been created.
I applied via Campus Placement and was interviewed in May 2024. There were 2 interview rounds.
Coding Test on Mettl Software, General English questions,Questions based on computer fundamentals.
Encapsulation is the concept of bundling data and methods that operate on the data into a single unit.
Encapsulation helps in hiding the internal state of an object and only exposing necessary functionalities.
It allows for better control over the data by preventing direct access from outside the class.
Example: A car object encapsulates its properties like speed, fuel level, and methods like start, stop, accelerate.
Examp...
List is a data structure in Python that stores a collection of items in a specific order.
Common methods/functions for lists in Python include append(), remove(), sort(), and index().
Lists can contain different data types, such as strings, integers, and even other lists.
Lists are mutable, meaning you can change the elements within a list after it has been created.
break, pass, and continue are control flow statements used in programming to alter the flow of execution.
break: used to exit a loop or switch statement
pass: not a keyword in most programming languages, but can be used as a placeholder for future code
continue: used to skip the rest of the current iteration in a loop and start the next iteration
Check if a number is a palindrome or not
Convert the number to a string
Reverse the string and compare with the original string
If they are the same, the number is a palindrome
Remove duplicates from array of strings
Create a Set to store unique strings
Iterate through the array and add each string to the Set
Convert the Set back to an array to get the unique strings
Lists are mutable, ordered collections of items, while tuples are immutable, ordered collections of items.
Lists are denoted by square brackets [], while tuples are denoted by parentheses ().
Lists can be modified after creation, while tuples cannot be modified.
Lists are typically used for collections of similar items that may need to be changed, while tuples are used for fixed collections of items.
Example: list_example ...
Top trending discussions
posted on 2 Jun 2022
I appeared for an interview before Jun 2021.
Had DSA and aptitude questions
posted on 29 Jan 2021
I applied via Naukri.com and was interviewed in Jul 2020. There were 4 interview rounds.
I applied via Company Website and was interviewed in Jul 2021. There was 1 interview round.
++I is a pre-increment operator that increments the value of I before using it, while I++ is a post-increment operator that increments the value of I after using it.
++I increments the value of I and then uses the updated value in the expression.
I++ uses the current value of I in the expression and then increments it.
Both operators can be used with variables, arrays, or pointers.
I applied via Campus Placement and was interviewed in May 2021. There were 4 interview rounds.
I applied via Naukri.com and was interviewed before May 2021. There were 3 interview rounds.
I applied via Campus Placement and was interviewed in Jan 2021. There was 1 interview round.
I am a passionate Software Engineer with a strong background in full-stack development and a love for solving complex problems.
Education: I hold a degree in Computer Science, where I developed a solid foundation in algorithms and data structures.
Experience: I have over 3 years of experience working with technologies like Java, Spring Boot, and React, building scalable web applications.
Projects: I led a team project to ...
Cognizant offers innovative solutions, a collaborative culture, and opportunities for growth in a dynamic tech environment.
Cognizant's commitment to innovation aligns with my passion for cutting-edge technology, as seen in their AI and cloud solutions.
The company's diverse projects across various industries provide a unique opportunity to broaden my skill set and experience.
Cognizant's emphasis on employee development ...
posted on 7 May 2022
I applied via Campus Placement and was interviewed before May 2021. There were 2 interview rounds.
Basic aptitude knowledge
Strong in java
based on 1 interview experience
Difficulty level
Duration
Software Developer
4
salaries
| ₹5 L/yr - ₹10 L/yr |
HR Manager
4
salaries
| ₹9 L/yr - ₹12.2 L/yr |
Medical Writer
4
salaries
| ₹4.8 L/yr - ₹7.3 L/yr |
Senior Software Test Engineer
4
salaries
| ₹8 L/yr - ₹18.5 L/yr |
Softwaretest Engineer
4
salaries
| ₹7.4 L/yr - ₹20 L/yr |
Cognizant
EXL Service
Sutherland Global Services
Optum Global Solutions