What is the value of x after the code segment executes? String x = - ProProfs Discuss
Topics
Products
Follow Us:

What is the value of x after the code segment executes? String x = 'A'; Integer i = 10; if ( i < 15 ) {i = 15;x = 'B';} else if ( i < 20 ) {x = 'C';} else {x = 'D'; }



A. D
B. A
C. B
D. C

This question is part of Salesforce Platform Developer 1
Asked by Wyatt Williams, Last updated: Jan 16, 2020

+ Answer
Request

1 Answer

Wyatt Williams

Wyatt Williams

Answered Dec 07, 2017

C. b

####
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.