wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Salesforce Daily Quiz

Total questions: 24

Worksheet time: 23mins

Name
Class
Date
1.

What is the purpose of the “public” and “private” access modifiers in Apex?

(Choose any two answers)

a)
  1. “public” means that the variable or method can be accessed from outside the class.

b)

private” means that the variable or method can only be accessed within the class itself.

c)
  1. “public” means that the variable or method can be only be accessed within the class itself.

d)
  1. “private” means that the variable or method can be accessed from outside the class.

e)

“public” means that the variable or method can be accessed from both outside and inside the class.

2.
a)

a...b...c...d

b)

abcd...

c)

...abcd

d)

throws compile error

3.

Which directive can be used to spread properties to a child component in LWC?

a)

lwc : dom

b)

lwc :slot-data

c)

lwc : spread

d)

lwc : slot-bind

4.

What will be output?

a)

object is User

b)

throws System.Sobject

Exception

c)

object is Case

d)

throws System.String

Exception

5.

What will be the output?

a)

Value1

b)

Value2

c)

undefined

d)

null

6.

Which of the following Apex annotation is used to provide information to third party tools?

a)
  • @NamespaceAccessible

b)
  • @SuppressWarnings

c)
  • @InvocableMethod

d)
  • @RemoteAction

7.

Which of the following configuration variable can be used with the 'sfdx config:set'

CLI command to set default dev hub?

a)

defaultdevhubusername

b)

defaultdevhub

c)

defaultusername

d)

target-dev-hub

e)

None of this

8.
a)

10

[30, 40, 50]

b)

10

30

c)

unexpected token

'...'

d)

Unexpected indentifire 'a'

e)

10

[10, 20, 30, 40,50]

9.

Which of the following is not a valid Salesforce CLI command?

a)

sfdx org:list

b)

sfdx org:open

c)

sfdx org:refresh

d)

sfdx org:status

10.

What does the Flow element Core Action do?

a)

Perform an Action in Apex

b)

Perform an Action outside of the flow

c)

Perform an Action inside of the flow

d)

Get records that meet filter conditions

11.

What is the maximum number of scheduled jobs you can have at one time?

a)

50

b)

1000

c)

150

d)

100

e)

No Limit

12.

What happenes when a flow that doesn't have an active version

is added to the outbound changes set while deploying changes to Salesforce?

a)

The deployment fails

b)

The latest inactive version is used

c)

The first version is used

d)

The flow is ignored

13.

which of the following are respected while delivering

change data capture events?

a)

Sharing Setting

b)

Field-Level Security

c)

Both Sharing Setting & Field-Level Security

d)

None of this

14.

What type of variable can be used to store information that is shared across

instances of a class?

a)

Instance Variable

b)

Static Variable

c)

Local Variable

d)

Both

Instance Variable & Static Variable

15.

The maximum cumulative timeout for callouts by a single Apex transaction is-

a)

10 seconds

b)

30 seconds

c)

60 seconds

d)

120 seconds

16.

Which lightning web components are supported by lightning web security ?

a)

Lwc

b)

Aura

c)

Both Lwc & Aura

d)

None of this

17.

The maximum number of levels of that can be specified in a child-to-parent relationship in a SOQL query is

a)

3

b)

5

c)

6

d)

8

18.

Which method can be used in Apex to remove the fields that the current user

can not access before DML operations to avoid exception?

a)

SObject.isSet

b)

Security.

stripInaccessible

c)

SObject.clear

d)

System.

DMLException.getDmlFieldNAmes

19.

Which annotation used in Apex class level controls whether instances of the class can be serialized or deserialized ?

a)
  • @InvocableVariable

b)
  • @NamespaceAccessible

c)

@JsonAccess

d)
  • @RemoteAction

20.

What is the HTTP response code for sucessfully

creating a record using REST API?

a)

200

b)

201

c)

203

d)

204

21.

The maximum offset allowed in a SOQL query is

a)

1000

b)

2000

c)

10000

d)

20000

22.

What is the correct order of invocation of the following LWC life cycle hooks?

1.connectedCallback on Parent

2.RenderedCallback on child.

3.connectedCallback on child

4.RenderedCallback on Parent

a)

1,2,3,4

b)

3,4,2,1

c)

1,3,2,4

d)

2,3,4,1

23.

Skinny tables in Salesforce improve the performance of---?

a)

Read-Only

operations

b)

Read and Write

operations

c)

Write-Only

operations

d)

Undelete Operations

24.

To denote types of articles ,

Classic knowledge uses ___ and Lightning knowledge uses __

a)

Standard Record types and Articles Record Types

b)

Articles Record Types and
Standard Record types

c)

Standard Record types Only

d)

Articles Record Types Only