nerdexam
SAP

C_BOCR_11 · Question #257

You are developing a Crystal report for a vehicle leasing company. All vehicle information is stored in an array, with each member of the array representing a different vehicle type. The vehicle…

The correct answer is A. Local stringvar array saModels := ["car","truck","van","SUV"]; saModels[Tonumber({Invty.Stk#}[3])]. See the full explanation below for the reasoning.

Question

You are developing a Crystal report for a vehicle leasing company. All vehicle information is stored in an array, with each member of the array representing a different vehicle type. The vehicle model is represented by the third position of the alphanumeric vehicle stock number. Which formula will return the vehicle model from the stock number?

Options

  • ALocal stringvar array saModels := ["car","truck","van","SUV"]; saModels[Tonumber({Invty.Stk#}[3])];
  • BLocal stringvar array saModels ["car","truck","van","SUV"]; saModels[Tonumber({Invty.Stk#}[2])];
  • CLocal stringvar array saModels := ["car","truck","van","SUV"]; saModels[Tonumber({Invty.Stk#}[2])];
  • DLocal stringvar saModels := ["car","truck","van","SUV"]; saModels[Tonumber({Invty.Stk#}[3])];

How the community answered

(37 responses)
  • A
    73% (27)
  • B
    8% (3)
  • C
    16% (6)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full C_BOCR_11 Practice