What is the purpose of the “public” and “private” access modifiers in Apex?
(Choose any two answers)
Salesforce Daily Quiz
Quiz
•
Computers
•
Professional Development
•
Hard
Sayani Maity
Used 2+ times
FREE Resource
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)
“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.
“public” means that the variable or method can be only be accessed within the class itself.
“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
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
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
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
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
20 questions
001-Developer 1-20
Quiz
•
Professional Development
20 questions
Round-1 Technical Aptitude
Quiz
•
11th Grade - Professi...
22 questions
Java Chapter 2 Review Questions
Quiz
•
Professional Development
22 questions
Python basics
Quiz
•
Professional Development
20 questions
Python Programming Fundamental
Quiz
•
Professional Development
20 questions
JavaScript
Quiz
•
Professional Development
20 questions
Salesforce Developer
Quiz
•
Professional Development
20 questions
CodeHS - Intro to Python - Basics and Console Interaction
Quiz
•
9th Grade - Professio...
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade