Below given is the code for a Map. Identify the correct option to add 2 elements to the Map.
Map m = new Map(); ______________________ // Add first key value ______________________ // Add second key value
Salesforce Q/A for 12 June
Quiz
•
Other
•
Professional Development
•
Hard
Sangeeta Ghosh
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Below given is the code for a Map. Identify the correct option to add 2 elements to the Map.
Map m = new Map(); ______________________ // Add first key value ______________________ // Add second key value
m.add(1,’First Entry’);
m.add(2,’Second Entry’);
m.insert(1,’First Entry’);
m.insert(2,’Second Entry’);
m.push(1,’First Entry’);
m.push(2,’Second Entry’);
m.put(1,’First Entry’);
m.put(2,’Second Entry’);
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In a Data Model of an application. Account and Contact Object has a look-up relationship where
Accounts is parent of contact. Refer the given SOQL statement & identify the type of query.
SELECT Account.Name. (SELECT Contact.FirstName, Contact.LastName FROM Account.Contact) FROM
Account
child-to-parent relationship query
parent-to-child relationship query
child-to-child relationship query
parent-to-parent relationship query
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is not a valid SOQL operator?
=
!=
<>
<
Answer explanation
The not equal to operator in SOQL is !=.
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is not a valid Apex collection method?
add()
remove()
contains()
replace()
Answer explanation
There is no replace() method in the Apex collection classes.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How Many Times Trigger Execute On An Upsert Event
2
4
8
6
Answer explanation
Upsert trigger fires on 4 different events :- before(insert, update), after (insert, update)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can We Call A Batch Job From Trigger?
Yes
No
Answer explanation
Batch Apex can be invoked using an Apex trigger. But the trigger should not add more batch jobs than the limit
7.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Which of the following statements are true regarding the deletion of a custom field?(Choose Any 2)
You cannot delete a custom field that is referenced elsewhere
Once you delete a custom field all data will be permanently deleted
You have up to 15 days to restore the custom field and all the data stored
You can only deactivate a custom field
Answer explanation
To delete custom fields, they shouldn’t be referenced elsewhere. Deleted custom fields and their data are stored until your org permanently deletes them or 15 days has elapsed, whatever happens first. Until that time, you can restore the field and its data. There is no option in Salesforce to deactivate a custom field but you can deactivate the value of a picklist field.
20 questions
POM: Permit System
Quiz
•
10th Grade - Professi...
20 questions
Basics of Excel Quiz
Quiz
•
Professional Development
15 questions
NHL
Quiz
•
6th Grade - Professio...
15 questions
Power BI Mastery
Quiz
•
Professional Development
15 questions
Day 2
Quiz
•
Professional Development
22 questions
Day 2 Quiz 10th Aug
Quiz
•
Professional Development
15 questions
Numpy
Quiz
•
Professional Development
18 questions
Quiz sur le développement web
Quiz
•
Professional Development
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade