Exam PCSAE All QuestionsBrowse all questions from this exam
Question 2

Given an incident with three files, how could the name of the second file be referenced?

    Correct Answer: C

    In common programming conventions, indexes typically start at 0. To reference the second file in a list, we use index 1. The correct notation follows the pattern where 'File' is the array, [1] is the index pointing to the second file, and .Name accesses the name property of that file. Thus, the correct answer is ${File.[1].Name}.

Discussion
BranodnOption: C

The answer is C ${File.[1].Name}

TcanCmonOption: C

I just tested, File.[1].Name it is. Therefore, C (And the index is starting from 0)

chucklepieOption: C

Why can't answers be changed? The answer is C

piipoOption: C

C is Correct

thorodpOption: D

D is correct, index starts from 0.

cptcoggsworth

D is incorrect because it is not the correct JSON path

rmuruganOption: A

A is the correct answer

rafemuhammed

Could you please confirm it? Index starts with 0 right so second file means index 1.