National_Instruments
200-500 · Question #147
200-500 Question #147: Real Exam Question with Answer & Explanation
Sign in or unlock 200-500 to reveal the answer and full explanation for question #147. The question stem and answer options stay visible for context.
Question
You want to extract the pieces of a date string, which looks like this: "2005-11-02". Which of the following pieces of code will properly assign $year, $month and $day with their respective values?
Options
- Asscanf("2005-11-02", '%d-%d-%d', $year, $month, $day);
- Bscan("2005-11-02", '%d-%d-%d', $year, $month, $day);
- Csscanf('%d-%d-%d', "2005-11-02", $year, $month, $day);
- Dsscan($year, $month, $date '%d-%d-%d', "2005-11-02");
Unlock 200-500 to see the answer
You've previewed enough free 200-500 questions. Unlock 200-500 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.