Brillio
Gypr Interview Questions and Answers
Q1. Create table view for different profile and can have more then 60 column. How to implement dynamically
Use dynamic SQL to create table view with more than 60 columns for different profiles
Use dynamic SQL to generate the CREATE VIEW statement based on the profile requirements
Iterate through the profile columns and add them to the CREATE VIEW statement dynamically
Consider using a loop or a mapping function to handle the large number of columns efficiently
Q2. Difference between with sharing, without sharing and inherited sharing.
with sharing enforces sharing rules, without sharing doesn't enforce sharing rules, inherited sharing uses the sharing rules of the parent class
with sharing keyword enforces sharing rules specified in the organization-wide defaults
without sharing keyword doesn't enforce sharing rules, allowing access to all records
inherited sharing keyword uses the sharing rules of the parent class
Q3. How do you share record using owd
Sharing records using Organization Wide Defaults (OWD) in Salesforce
Set OWD to Public Read Only to allow all users to view records but only the owner can edit
Set OWD to Private to restrict access to only the record owner and users above in the role hierarchy
Use Sharing Rules to extend access to specific groups of users
Use Manual Sharing to grant access to individual users or groups on a case-by-case basis
Q4. Update account with count of contact.
Update account with count of contact involves updating the account with the number of contacts associated with it.
Create a function to update the account with the count of contacts
Retrieve the contacts associated with the account
Calculate the count of contacts
Update the account with the count of contacts
Q5. How to handle recursion
Recursion is a programming technique where a function calls itself in order to solve a problem.
Identify the base case to stop the recursion
Ensure the recursive call moves towards the base case
Optimize recursion by using memoization or tail recursion
Examples: factorial calculation, Fibonacci sequence
Q6. Explain async process in Salesforce
Async process in Salesforce allows for executing tasks in the background without blocking the main thread.
Async processes in Salesforce are used to perform time-consuming operations without affecting the user experience.
Apex provides @future annotation for asynchronous processing.
Batch Apex is used for processing large data sets asynchronously.
Queueable Apex allows chaining of asynchronous jobs.
Platform Events can be used for real-time asynchronous processing.
Q7. Find duplicate character and count of given string
Find duplicate characters and their count in a given string.
Create an empty dictionary to store character count
Iterate through the string and add characters to the dictionary
If character already exists in the dictionary, increment its count
Return the dictionary with character count
Q8. Integer array sort without Arrays methods
Sorting an integer array without using built-in array methods.
Implement a sorting algorithm such as bubble sort, insertion sort, or selection sort.
Loop through the array and compare adjacent elements to swap them if necessary.
Repeat the loop until the array is sorted in ascending or descending order.
Q9. Different trigger pattern
Different trigger patterns are used in software development to initiate actions based on specific events.
Triggers can be based on time, user input, system events, etc.
Examples include event-driven programming, polling triggers, and scheduled triggers.
More about working at Brillio
Interview Process at Gypr
Top Senior Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month