Add office photos
Engaged Employer

Cognizant

3.7
based on 50.3k Reviews
Video summary
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by

MasterCard Interview Questions and Answers

Updated 22 Aug 2024
Popular Designations

Q1. What are coroutine, how to secure ur app data, network call in android , ssl pinning, notification's implementation through FCM, android basic questions

Ans.

Coroutines are a way to perform asynchronous operations in Android, securing app data involves encryption, SSL pinning enhances security, FCM for notifications.

  • Coroutines are used for managing asynchronous operations in Android, allowing for efficient and non-blocking code execution.

  • Securing app data involves using encryption techniques such as AES to protect sensitive information from unauthorized access.

  • SSL pinning is a security measure that ensures the app only communicate...read more

Add your answer

Q2. How to create singleton class? What is the use of Proguard and How Proguard internally works? Write code to implement ViewModel What is the difference between apk and aab?

Ans.

A singleton class is a class that can only have one instance created at a time. Proguard is a tool used for code obfuscation and optimization. ViewModel is a class that stores and manages UI-related data.

  • To create a singleton class, make the constructor private, create a static method to return the instance, and use a static variable to hold the instance.

  • Proguard is used to shrink, optimize, and obfuscate the code in an Android application to make it smaller and more efficien...read more

Add your answer

Q3. Difference between commit( ) and apply( ) in SharedPreferences?

Ans.

commit() writes the changes synchronously, apply() writes the changes asynchronously.

  • commit() returns a boolean value indicating success or failure, while apply() does not.

  • commit() writes the changes immediately to the disk, while apply() writes the changes to the memory first and then to the disk asynchronously.

  • apply() is faster than commit() as it writes the changes in the background thread.

  • Use commit() when you need to read the preference immediately after writing, use app...read more

Add your answer

Q4. Can we downgrade the app from PlayStore?

Ans.

Yes, users can downgrade an app from PlayStore by uninstalling the current version and installing an older version manually.

  • Users can uninstall the current version of the app from their device.

  • They can then search for the older version of the app APK file online or use a backup they may have.

  • After downloading the older version APK, they can manually install it on their device.

View 1 answer
Discover MasterCard interview dos and don'ts from real experiences

Q5. Can we use Activity without XML?

Ans.

Yes, we can use Activity without XML by programmatically creating the UI elements.

  • Activities can be created and managed entirely in code without using XML layouts.

  • UI elements can be added to the activity using Java code.

  • This approach is useful for creating dynamic UIs or for cases where XML layouts are not suitable.

Add your answer

Q6. Difference between Alpha and Beta testing?

Ans.

Alpha testing is done by internal teams before release, while beta testing is done by external users after alpha testing.

  • Alpha testing is done by internal teams to identify bugs and issues before releasing the software to the public.

  • Beta testing is done by external users who are not part of the development team to gather feedback and identify any remaining issues.

  • Alpha testing is usually done in a controlled environment, while beta testing is done in a real-world setting.

  • Alph...read more

Add your answer

Q7. What is Product Flavour?

Ans.

Product Flavour is a feature in Android development that allows you to create different versions of your app with different configurations.

  • Product Flavours are used to create different versions of an app for different purposes or target audiences.

  • Each Product Flavour can have its own unique code, resources, and configurations.

  • Product Flavours are defined in the build.gradle file of an Android project.

  • Examples of Product Flavours include 'free' and 'paid' versions of an app, o...read more

View 1 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 MasterCard

based on 6 interviews
1 Interview rounds
Technical Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Android Developer Interview Questions from Similar Companies

3.6
 • 25 Interview Questions
2.2
 • 24 Interview Questions
3.8
 • 12 Interview Questions
4.0
 • 11 Interview Questions
3.5
 • 10 Interview Questions
3.7
 • 10 Interview Questions
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
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

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