DEV-501 Exam Questions

Total 237 Questions

Last Updated Exam :

Which syntax should you use to create a new public class named MyNewClass?
Public class MyNewClass {}
Class public MyNewClass {}
Class MyNewClass {} public
MyNewClass public {} class(No Answer)


A.

Public class MyNewClass


B.

Database class method


C.

SOQL statements


D.

Static and final





A.
  

Public class MyNewClass



What are the stages of an application development process? (No Answer)


A.

Declaratively, programmatically


B.

Primitive, sObject, Collections, Null


C.

Develop, integrate, stage, production/training


D.

Manual sharing, apex sharing





C.
  

Develop, integrate, stage, production/training



What types of sharing are available to developers to share records? (No Answer)


A.

Messaging, sendEmail


B.

Manual sharing, apex sharing


C.

Batch apex, apex scheduler


D.

With sharing keyword





B.
  

Manual sharing, apex sharing



What does Apex use to record disruptions in code execution? (No Answer)


A.

Exceptions


B.

Ids


C.

Primitive


D.

addError





A.
  

Exceptions



Identify the differences between Apex and the other programming languages. (Select all that
apply.)
Apex runs in a multitenant environment.
Apex performs uncontrolled program invocations.
Apex is case-insensitive.
Apex can be processed on any platform. (No Answer)


A.

Encapsulation principles


B.

Salesforce ui, force.com ide, runTests web service


C.

Apex runs in a multitenant environment.


D.

A template from which objects are created





C.
  

Apex runs in a multitenant environment.



Which of the following are collection data types?
String
Map
List
Date
Set
Number


A.

For loops


B.

FALSE


C.

Primitive


D.

Map, List, Set





D.
  

Map, List, Set



Which of the following are collection data types Identify the classes that u can use to make HTTP
or RESTful callouts.
HTTP class
HTTPRequesL class
HTTPServerRequest. class
HTTPRsponse class
HTTPServerResponse class


A.

HTTP class, HTTPRequesL class, HTTPRsponse class


B.

Apex classes


C.

Logs, anonymous blocks


D.

Apex code, Visualforce pages, and controllers





A.
  

HTTP class, HTTPRequesL class, HTTPRsponse class



What statements are used to retrieve records from an sObject in the Force.com database? (No
Answer)


A.

SOQL statements


B.

 sObject


C.

SOQL for loops


D.

multi-tenant





A.
  

SOQL statements



What are all the datatypes that Salesforce supports?


A.

How many loopback connections to Salesforce are allowed by callouts?


B.

What two ways can classes be created in salesforce?


C.

What are some RESTful service callout HTTP verbs?





A.
  

How many loopback connections to Salesforce are allowed by callouts?



Which statement is true about an Apex class?
A class cannot be disabled for profiles.
An inner class can be nested at multiple levels.
Static methods can only be declared in a top-level class definition.
The default access modifier for methods in a class is public.


A.

Static methods can only be declared in a top-level class definition.


B.

Utilize the String.escapeSingleQuotes(string) method


C.

HTTP class, HTTPRequesL class, HTTPRsponse class


D.

Database class method





A.
  

Static methods can only be declared in a top-level class definition.




Page 9 out of 24 Pages
Previous