B. OutputDataTable object will have 2 columns and 1 row containing values of cells "A2" and "B2"
Studio OutputDataTable:
ID Name Dapartment
1 James Account
2 Mary science
3 Patricia math
4 Robert literature
The answer in studio for "A1:B2":
[ID, Name
1, James]
Well, this is tricky one. I will go with 'B' because answers are mentioning row(s) containing values. A1 and B1 are headers even if they got printed when you using output datatable and printing the result in string format. While A2 and B2 are row values and there will be only only 1 row.
Correct answer is B go test it in studio after the example code add a message box add look at the dt_output.Rows.Count and you will see its 1 so there is only 1 row. Then foreach the dataable and log the currentItem(0).ToString and currentItem(1).ToString and you will see its the values of A2 and B2
If the names of the columns that are read as table headers are defined on the first row, the result will be the values on A1 B1 A2 and B2, so in total two rows will be read, row 1 which represents the table header and row 2 which represents the actual values.
The question is NOT very logical.
If we assume that the table header is not considered as a value then the correct answer would be B.. but it is a bit strange.
Hi moderator, please remove my comments for this topic. Thanks. I still think C is the correct answer, even though the row count is 1, the headings get printed. It's a tricky one.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
nosavotor
1 year, 1 month agonosavotor
1 year, 1 month agonosavotor
1 year, 1 month agophileraene
1 year, 3 months agoatobon
1 year, 4 months agoMirjalol
1 year, 4 months agoMartalolo
1 year, 5 months agokarthikreddy7850
1 year, 6 months agoLarcAi_Training
1 year, 6 months agoSameer11
1 year, 6 months agoManche
1 year, 6 months agoFonmincc
1 year, 7 months agoEngineer24
1 year, 7 months agoEduardoRamirez
1 year, 7 months agoOnline
1 year, 7 months agotitanium192
1 year, 7 months agoOnline
1 year, 8 months agoOnline
1 year, 8 months agoOnline
1 year, 8 months ago