ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 231 - PT0-002 discussion

Report
Export

The following PowerShell snippet was extracted from a log of an attacker machine:

A penetration tester would like to identify the presence of an array. Which of the following line numbers would define the array?

A.
Line 8
Answers
A.
Line 8
B.
Line 13
Answers
B.
Line 13
C.
Line 19
Answers
C.
Line 19
D.
Line 20
Answers
D.
Line 20
Suggested answer: A

Explanation:

$X=2,4,6,8,9,20,5

$y=[System.Collections.ArrayList]$X

$y.RemoveRange(1,2) As you can see the arrat has no brackets and no periods. IT HAS SEMICOLLINS

TO SEPERATE THE LISTED ITEMS OR VALUES.

asked 02/10/2024
Bradley Flay
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first