i
Cognizant
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Multiple views in RecyclerView can be handled by using different view types and view holders.
Use getItemViewType() method to return different view types based on position
Create multiple view holders for each view type
Bind data to each view holder based on its type
Example: Creating a chat app with different message types like text, image, and video
UI thread is the main thread in Android responsible for handling user interface interactions.
UI thread is also known as the main thread in Android.
It is responsible for handling user interface interactions such as drawing views, handling touch events, and updating UI components.
Performing long-running tasks on the UI thread can lead to UI freezes and unresponsiveness.
To perform background tasks and prevent blocking the...
I applied via Company Website and was interviewed in Sep 2023. There were 2 interview rounds.
The lifecycle of an activity in Android refers to the different states an activity goes through during its lifetime.
onCreate() method is called when the activity is first created
onStart() method is called when the activity becomes visible to the user
onResume() method is called when the activity starts interacting with the user
onPause() method is called when the activity is partially obscured
onStop() method is called wh...
Fragment lifecycle includes onAttach, onCreate, onCreateView, onStart, onResume, onPause, onStop, onDestroyView, onDestroy, onDetach.
onAttach() - fragment is associated with an activity
onCreate() - initialize essential components
onCreateView() - create the fragment's view hierarchy
onStart() - fragment becomes visible
onResume() - fragment is interacting with the user
onPause() - fragment is partially visible
onStop() - fr...
I applied via Campus Placement and was interviewed in Sep 2020. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Jan 2021. There were 3 interview rounds.
C language is a general-purpose, procedural computer programming language.
Developed by Dennis Ritchie at Bell Labs in 1972
Used for system programming, embedded systems, and application software
Influenced many other programming languages such as C++, Java, and Python
I applied via Company Website and was interviewed in Feb 2021. There was 1 interview round.
Count the number of pairs in an array whose sum is equal to a given number k.
Iterate through the array and for each element, check if k minus the element exists in the array.
Use a hash table to store the frequency of each element in the array.
If the array contains duplicates, handle them separately to avoid overcounting.
Time complexity can be improved to O(n) using a two-pointer approach.
I applied via Recruitment Consultant and was interviewed in May 2020. There were 3 interview rounds.
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 clas...
I applied via Campus Placement and was interviewed in Sep 2020. There were 4 interview rounds.
I am a software developer with experience in various programming languages and a passion for creating innovative solutions.
Proficient in Java, C++, and Python
Experience with web development using HTML, CSS, and JavaScript
Familiarity with agile development methodologies
Strong problem-solving and analytical skills
Excellent communication and teamwork abilities
Array is a collection of elements of same data type. Linked list is a data structure where each element points to the next one.
Arrays have fixed size, linked lists can grow dynamically
Accessing elements in an array is faster than in a linked list
Inserting or deleting elements in a linked list is faster than in an array
Arrays are stored in contiguous memory locations, linked lists are not
Arrays are used for random acces
The OSI model is a conceptual model that describes the communication functions of a telecommunication or computing system.
The OSI model has 7 layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application.
Each layer has a specific function and communicates with the layers above and below it.
The Physical layer deals with the physical transmission of data, while the Application layer deals with u...
The OSI model is a conceptual model that characterizes and standardizes the communication functions of a telecommunication or computing system.
The OSI model has 7 layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application.
Each layer has a specific function and communicates with the layers above and below it.
The Physical layer deals with the physical transmission of data, while the Applicati...
based on 2 interviews
Interview experience
Associate
72.2k
salaries
| ₹5.2 L/yr - ₹16 L/yr |
Programmer Analyst
55.6k
salaries
| ₹2.4 L/yr - ₹9.4 L/yr |
Senior Associate
49.7k
salaries
| ₹8.9 L/yr - ₹28 L/yr |
Senior Processing Executive
29k
salaries
| ₹1.8 L/yr - ₹9 L/yr |
Technical Lead
17.6k
salaries
| ₹6 L/yr - ₹25 L/yr |
TCS
Infosys
Wipro
Accenture