IBM
C9010-022 · Question #30
C9010-022 Question #30: Real Exam Question with Answer & Explanation
Sign in or unlock C9010-022 to reveal the answer and full explanation for question #30. The question stem and answer options stay visible for context.
Question
Within a Perl script, how can the output of the hostname command be assigned to a variable called myHostname?
Options
- AchopfmyHostname="hostname -s 2>/dev/null")
- Bchomp(myHostname=
hostname -s 2>/dev/null); - C$myHostname=
/usr/bin/hostname - Dchomp(@myHostname=hostname -s 2>/dev/null');
Unlock C9010-022 to see the answer
You've previewed enough free C9010-022 questions. Unlock C9010-022 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.