Search Header Logo

Salesforce Q/A for 12 June

Authored by Sangeeta Ghosh

Other

Professional Development

Used 1+ times

Salesforce Q/A for 12 June
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?