Search Header Logo

Salesforce Daily Quiz

Authored by Sayani Maity

Computers

Professional Development

Used 2+ times

Salesforce Daily Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

24 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

1 min • 1 pt

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

(Choose any two answers)

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

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

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

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

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

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

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

abcd...

...abcd

throws compile error

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

lwc : dom

lwc :slot-data

lwc : spread

lwc : slot-bind

Answer explanation

Media Image

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be output?

object is User

throws System.Sobject

Exception

object is Case

throws System.String

Exception

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output?

Value1

Value2

undefined

null

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

  • @NamespaceAccessible

  • @SuppressWarnings

  • @InvocableMethod

  • @RemoteAction

Answer explanation

Media Image

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

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

CLI command to set default dev hub?

defaultdevhubusername

defaultdevhub

defaultusername

target-dev-hub

None of this

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?