
APEX SESSIONS QUIZ 5
Authored by M Salman
Professional Development
1st Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A class is a template or blueprint from which objects are created.
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In processing records (inserting or updating). if you want any error that occurs during bulk processing to be thrown as an Apex exception. Then You must use ?
DML
Database class methods
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
There is list of 100 records. This is to be inserted into the system. In some of the records there is an error those cannot be inserted. How will you allow the partial Insertion to be done.
Using DML
Database.insert(listName,false)
insert listName;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A constructor is code that is invoked when an object is created from the class
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Constructor cannot have a return type.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This access modifier is the default, and means that the method or variable is accessible only within the Apex class in which it’s defined. If you don’t specify an access modifier, the method or variable is .......?
public
private
protected
global
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the output of the following code.
String myString = 'abcd';
Integer result = myString.length();
System.debug(result);
4
error
3
abcd
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?