Explore Online Courses
Free Courses
Interview Questions
Tutorials
Community
Courses
Free Courses
Interview Questions
Tutorials
Community
Take the Free Practice Test
Instructions:
FREE test and can be attempted multiple times.
60 Minutes
30 Multiple Choice Questions
Fill in the Details to Get Started
Select your preference
Self-learning and knowledge validation
Completed a course & revising
Just curious
By providing your contact details, you agree to our
Privacy Policy
Welcome to your Salesforce Developer Quiz
Which of the following is feature of using custom settings ?
NO need of SOQL to retrieve data
SOQL used not counted against governor limit
Can fire SOQL in for Loop
None of these
Can you have more than one extensions associated with a single VF page?
Yes
No
Which of the following is not Applicable for Before Inert Trigger?
Trigger.old
Trigger.newMap
Trigger.new
All of the above
Which of the following helps in AJAX call in salesforce ?
ActionSupport
ActionFunction
Actionstatus
All of the Above
How do you declare a component?
None of the above.
Which of the following tag is used for Inline editing ?
None of the above.
There is query inside for loop in a trigger and hitting a governor limits as too many soql errors? What should we do?
No impact
Limit the for Loop to maximum value of 99
Move the SOQL outside for Loop and use Collections
Limit records fetched in SOQL
What is True about Apex ?
Can be executed and compiled on any platform
Need Special Editor for writing
Can be execute and compiled only on Force.com
Can be written in any editor.
You have a production data issue and you wanted to debug this issue in your sandbox, which sandbox will you use?
Developer
Partial
Developer Pro
Full Copy
Would following work Date d = system.today()+ 7 ?
No compilation Error
No Runtime Error
Yes, adds 7 days to Today
None of the above.
Can a report be scheduled in salesforce ?
Yes
No
Can we add our custom method to standard Controller ?
True
False
Assume I have an account with named as 'Acme' and I did a query as below what would be the result? List a = new List([select accountnumber from account where name='Acme']); system.debug('Name:'+a[0].Name); ?
Runtime Error, Field used without Query
Acme
Compilation Error
Nothing
trigger mytrigger on Account(before insert, before update){ Trigger.new[0].Name = 'TEST'; }
Set Name to first record of context to Test
No change in second record and onwards.
Compilation Error
Set;s Name for all records to Test
When two contacts are merged what will happen ?
No Trigger Fired
Contact Before and After Insert
Contact Delete Triggers fire
Both B and C
How to reduce view State?
Use Transient
Reduce Code
Reduce Variable
No need to reduce View State
How to display error message with standard look and feel?
Apex:pageMessages
Apex:pageMesasge
Alerts
Both A and B
Visualforce page tries to save a record which calls a before trigger. This trigger executes the addError() message. Can user see the Error message on VF page?
No
Yes, always
Yes, provided VF page used Apex:pageMessage
How to set the id value in current visualforce page ?
Id=121312
Not Feasible
ApexPages.CurrentPage.get(Id)
ApexPages.CurrentPage.put(id,’gh879880909KJL’)
How to make Asynchronous calls from Apex ?
@Aysnc
@Nowait
@Test
@Future
Annotation for Test Class?
@TestClass
@testMethod
@test
All of the above.
Which of the following is correct ?
Map sMap = new Map();
Map sMap = [select id from Account]
List = [select id from account limit 1].Id
Id acid = [select id from account limit 1].Id
Which of the following helps to call controller method from javascript ?
JavaScript Remoting
ActionStatus
ActionPoller
Javascript ToolKit
Which of the following is true about List ?
It’s a collection datatype
Can have duplicates
Ordered List
None of the Above
James belong to Sales Profile. Sales Profile has no access to Account Object, but Account Tab is default on. Would James be able to view Account Records ?
Yes, as account Tab is default on.
No, as his profile has no access to Account Object.
Not sufficient information available
How can you convert a integer into a string ?
Integer.ValueOf(IntergerValue)
String.ValueOf(IntegerValue)
String s = (String) 23
None of the Above.
Can you edit a visuaflorce apge in production environment ?
Yes
No
How can you implement custom functionality for a standardcontroller visualforce page ?
Using Classes
Custom Controller
Overriding
Extensions
Which of the following is True about DML Insert ?
Insert (AccList)
Database.Insert(AccList)
Both
None of these
What does salesforce does when 2 records in salesforce have external Id and we are trying to upsert based on external Id ?
Both records are updated.
First record is updated.
Error is reported.
None of the above
Time is Up!