Which code segment should you use?

You execute the following code:

You need to select the task that has an IsFinished value of true from the Project that has an Id value of 1.
Which code segment should you use?

You execute the following code:

You need to select the task that has an IsFinished value of true from the Project that has an Id value of 1.
Which code segment should you use?

A.
Option A

B.
Option B

C.
Option C

D.
Option D



Leave a Reply 6

Your email address will not be published. Required fields are marked *


jml

jml

None answer is correct.
Answer B will return “true” value not the task element.
query(‘//Task[idFinished=”true”]’)

malakosa

malakosa

A and C are wrong
For variable @ should be use so B is wrong

D is correct

jml

jml

The D is not correct because there is @ which selects attribute.
IsFinished is element.

ryahan

ryahan

the xml code first is crappy and wrong ..

here is the answer it s case sensitive . need to be careful

Select details.query(‘//task [isfinished= “true”]’) from projects where projects.id = 1

ryahan

ryahan

Apologise if you do what I just said and add some false data it will also take everything from the task attribute . so finally no right answer here but the nearest is B