Apex MCQ Questions & Answers
Apex MCQs : This section focuses on "Basics" of Apex. These Multiple Choice Questions (MCQ) should be practiced to improve the Apex skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.
1. Apex is a proprietary language developed by the?
A. IBM
B. Microsoft
C. Salesforce
D. Meta
View Answer
Ans : C
Explanation: Apex is a proprietary language developed by the Salesforce.com
2. Apex is a?
A. strongly typed
B. object-oriented programming language
C. Both A and B
D. None of the above
View Answer
Ans : C
Explanation: Apex is a strongly typed, object-oriented programming language that allows developers to execute the flow and transaction control statements on the Force.com platform server in conjunction with calls to the Force.com API.
3. We can use Apex when we want to?
A. Create Web services with integrating other systems
B. Create email services for email blast or email setup
C. Create complex business processes that are not supported by existing workflow functionality or flows
D. All of the above
View Answer
Ans : D
Explanation: We can use Apex when we want to do all of the above task.
4. sObject is the data type in Apex?
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, sObject is the data type.
5. Which of the following is a 32-bit number that does not include any decimal point?
A. Enums
B. Integer
C. Classes
D. Double
View Answer
Ans : B
Explanation: Integer : A 32-bit number that does not include any decimal point
6. The __________ function prints the value of variable so that we can use this to debug or to get to know what value the variable holds currently.
A. System()
B. debug()
C. System.debug()
D. System.identify()
View Answer
Ans : C
Explanation: The System.debug() function prints the value of variable so that we can use this to debug or to get to know what value the variable holds currently.
7. Which of the following Features of Apex as a Language?
A. Apex has built in support for DML operations
B. Apex is easy to use
C. Apex is data focused and designed to execute multiple queries
D. All of the above
View Answer
Ans : D
Explanation: All of the above are features of Apex.
8. ________ are used when we want to define variables which should have constant value throughout the program execution.
A. String
B. Constants
C. Double
D. Self
View Answer
Ans : B
Explanation: Constants are used when we want to define variables which should have constant value throughout the program execution.
9. Apex should be used when we are not able to implement the complex business functionality using the pre-built and existing out of the box functionalities.
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, Apex should be used when we are not able to implement the complex business functionality using the pre-built and existing out of the box functionalities.
10. Long is a 64-bit number without a decimal point.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, Long is a 64-bit number without a decimal point.
Discussion