Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: validbest

Exam PDI All Questions
Exam PDI All Questions

View all questions & answers for the PDI exam

Salesforce Developers PDI Question # 57 Topic 6 Discussion

PDI Exam Topic 6 Question 57 Discussion:
Question #: 57
Topic #: 6

A developer considers the following snippet of code:

Boolean isOK;

Integer x;

String theString = 'Hello';

if (isOK == false && theString == 'Hello') {

x = 1;

} else if (isOK == true && theString == 'Hello') {

x = 2;

} else if (isOK == null && theString == 'Hello') {

x = 3;

} else {

x = 4;

}

Based an this code, what is the value of x?


A.

1


B.

2


C.

3


D.

4


Get Premium PDI Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.