200-710 Exam QuestionsBrowse all questions from this exam

200-710 Exam - Question 26


What function is best suited for extracting data from a formatted string into an array?

Show Answer
Correct Answer: BC

The correct function for extracting data from a formatted string into an array is 'sscanf'. 'fgetcsv' is used for reading and parsing CSV files into arrays. 'sprintf' is used for formatting and returning a string based on specified format. 'strtok' is used for splitting a string into tokens based on delimiters. 'sscanf' reads data from a string based on format specifiers, making it the best choice for this task.

Discussion

2 comments
Sign in to comment
girisssOption: B
Jul 27, 2020

Answer is B. sscanf

stefanospetrakis
Nov 11, 2020

Agreed!