Deck 10: Scripting in Windows 10 and Centos 7

ملء الشاشة (f)
exit full mode
سؤال
What character can you use to break cmdlets between parameters when using PowerShell?

A)ampersand
B)backtick
C)asterisk
D)underscore
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
When you write a script, what type of line should you include to ensure that the script is run under the correct shell?

A)header line
B)shell id
C)location line
D)debug line
سؤال
When creating and executing scripts in CentOS 7, you must change the permissions on the file before running the new script.
سؤال
PowerShell ISE is an Integrated Scripting Environment that is included with Windows 10.
سؤال
Microsoft's PowerShell Script pane is an "automatic completion" feature that helps you develop scripts quickly.
سؤال
What key feature in the PowerShell ISE allows a user to display clickable menus of cmdlets, parameters, parameter values, files, or folders that match the characters you type?

A)Context-sensitive Help
B)Drag and drop
C)Error display
D)IntelliSense
سؤال
What specific configurable PowerShell script runs automatically each time the ISE starts?

A)user
B)profile
C)context
D)preference
سؤال
Where does the output appear when you run a script in the PowerShell ISE?

A)Top pane
B)Console pane
C)Command-Add-on pane
D)Scripting pane
سؤال
What PowerShell command written with a trace parameter will enable script tracing?

A)Set-Trace
B)Set-PSDebug
C)Get-PSDebug
D)Get-Trace
سؤال
What PowerShell cmdlet will allow you to Select items to remain in a table after filtering out unwanted items?

A)Filter-Data
B)Where-Object
C)Where-Data
D)Hold-Object
سؤال
What is an alternative to the Help cmdlet when you need to locate a specific cmdlet?

A)Get-Command
B)Help-Command
C)Get-Help
D)Alt-Help
سؤال
When a PowerShell user needs additional help regarding a cmdlet that will create a file, what command syntax can be used to help obtain this information?

A)cmdlet "create file"
B)"create file" Help
C)Help "create file"
D)"create file" cmdlet
سؤال
When using filtering in PowerShell you need to know the comparison operators, what operator allows you to see whether an identical value exists in a list of values?

A)-identical
B)-exist
C)-contains
D)-le
سؤال
To find a cmdlet that obtains process values, use the Get-Command -noun Process command.
Indicate the answer choice that best completes the statement or answers the question.
سؤال
In CentOS 7 using an extension on script files is optional. However, some Linux system administrators prefer to add a file extension to their scripts. What file extension is commonly used for this purpose?

A).exe
B).rt
C).bt
D).sh
سؤال
The CD command is used in the command line to change the path of a directory, what is the equivalent cmdlet in PowerShell?

A)Move-Directory
B)Get-Location
C)Set-Location
D)Edit-Directory
سؤال
How can a PowerShell ISE user include a suggestion from an IntelliSense menu in their script?

A)highlight the suggestion
B)double-click the suggestion
C)press F3
D)press and hold f3
سؤال
Windows commands within PowerShell are as efficient as using an equivalent PowerShell cmdlet.
سؤال
What keyboard shortcut will allow you to launch a script directly from the PowerShell ISE?

A)F5
B)F3
C)Ctrl+L
D)Ctrl+S
سؤال
What command in CentOS 7 can be used in a script to enable multiple executions of a set of instructions while a certain condition exists?

A)for in
B)if
C)while
D)chmod
سؤال
Before running a script on CentOS 7, what command will you need to modify the scripts permission?

A)chmod
B)chperm
C)cp
D)if
سؤال
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
A command in CentOS 7 that enables you to execute a group of statements a specified number of times
سؤال
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
commands that establish a layout for data
سؤال
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
a technique that minimizes errors by consistently observing typing rules
سؤال
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
Commands for arranging data based on criteria
سؤال
CentOS 7 scripts can utilize the if command in two different ways to set up decisions within scripts. The first format is referred to as "if then fi". What is the second format?

A)if else fi
B)if else then
C)if else
D)then fi
سؤال
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
A feature in PowerShell that indicates the flow of statements in an executed script
سؤال
PowerShell cmdlet parameters will always be preceded by what character?

A)underscore
B)backtick
C)hyphen
D)slash
سؤال
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
In the PowerShell ISE, a pane where cmdlets are typed for execution and the script output appears
سؤال
What command in CentOS 7 can be used in a script to execute a number of instructions based on a maximum count you specify?

A)if
B)for in
C)chmod
D)while
سؤال
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
In PowerShell, the pane where cmdlets are typed to create scripts
سؤال
What characters in PowerShell represent a dynamic variable that stores the current information being piped to it?

A)$_.
B)*_
C)#_.
D)$+
سؤال
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
In PowerShell, the red lines in the Console pane that indicate an error has occurred
سؤال
What PowerShell ISE keyboard shortcut can be used to run a script immediately?

A)F7
B)F5
C)Ctrl+R
D)Alt+R
سؤال
What syntax characters in PowerShell indicate optional items?

A)curly braces
B)parenthesis
C)angle brackets
D)brackets
سؤال
What PowerShell cmdlet will allow you to arrange a table in a particular order?

A)Sort-Data
B)Sort-Table
C)Create-Table
D)Sort-Object
سؤال
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
A PowerShell technology controlled by the Set-PSDebug cmdlet
سؤال
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
In PowerShell, a policy in which a digital signature is required for scripts received from an Internet site
سؤال
If a script is written for use in CentOS 7, how many times should a command line that is executed multiple times be written?

A)only once
B)two times
C)one time per execution
D)three times
سؤال
What is the default PowerShell execution policy?

A)user policy
B)administrator policy
C)management policy
D)restricted policy
سؤال
What are three examples of using the concept of clear typing when scripting with PowerShell?
سؤال
What is the process and advantages of creating scripts using incremental development?
سؤال
Why is a header line important to include in a script written for CentOS 7 or any other Linux distribution?
سؤال
What is Microsoft's IntelliSense and how does it benefit a PowerShell ISE user?
سؤال
Identify and explain the functions of the three PowerShell ISE panes.
سؤال
Explain the syntax and the capabilities of the Help cmdlet in PowerShell.
سؤال
Explain the concept of using script parameters in CentOS 7?
سؤال
What are four ways a PowerShell user can sort and filter data?
سؤال
Why must a CentOS 7 administrator change the permissions on their script to enable it to run?
سؤال
Explain how error messages are displayed in PowerShell.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 10: Scripting in Windows 10 and Centos 7
1
What character can you use to break cmdlets between parameters when using PowerShell?

A)ampersand
B)backtick
C)asterisk
D)underscore
B
2
When you write a script, what type of line should you include to ensure that the script is run under the correct shell?

A)header line
B)shell id
C)location line
D)debug line
A
3
When creating and executing scripts in CentOS 7, you must change the permissions on the file before running the new script.
True
4
PowerShell ISE is an Integrated Scripting Environment that is included with Windows 10.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
Microsoft's PowerShell Script pane is an "automatic completion" feature that helps you develop scripts quickly.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
What key feature in the PowerShell ISE allows a user to display clickable menus of cmdlets, parameters, parameter values, files, or folders that match the characters you type?

A)Context-sensitive Help
B)Drag and drop
C)Error display
D)IntelliSense
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
What specific configurable PowerShell script runs automatically each time the ISE starts?

A)user
B)profile
C)context
D)preference
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
Where does the output appear when you run a script in the PowerShell ISE?

A)Top pane
B)Console pane
C)Command-Add-on pane
D)Scripting pane
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
What PowerShell command written with a trace parameter will enable script tracing?

A)Set-Trace
B)Set-PSDebug
C)Get-PSDebug
D)Get-Trace
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
What PowerShell cmdlet will allow you to Select items to remain in a table after filtering out unwanted items?

A)Filter-Data
B)Where-Object
C)Where-Data
D)Hold-Object
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
What is an alternative to the Help cmdlet when you need to locate a specific cmdlet?

A)Get-Command
B)Help-Command
C)Get-Help
D)Alt-Help
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
When a PowerShell user needs additional help regarding a cmdlet that will create a file, what command syntax can be used to help obtain this information?

A)cmdlet "create file"
B)"create file" Help
C)Help "create file"
D)"create file" cmdlet
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
When using filtering in PowerShell you need to know the comparison operators, what operator allows you to see whether an identical value exists in a list of values?

A)-identical
B)-exist
C)-contains
D)-le
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
To find a cmdlet that obtains process values, use the Get-Command -noun Process command.
Indicate the answer choice that best completes the statement or answers the question.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
In CentOS 7 using an extension on script files is optional. However, some Linux system administrators prefer to add a file extension to their scripts. What file extension is commonly used for this purpose?

A).exe
B).rt
C).bt
D).sh
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
The CD command is used in the command line to change the path of a directory, what is the equivalent cmdlet in PowerShell?

A)Move-Directory
B)Get-Location
C)Set-Location
D)Edit-Directory
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
How can a PowerShell ISE user include a suggestion from an IntelliSense menu in their script?

A)highlight the suggestion
B)double-click the suggestion
C)press F3
D)press and hold f3
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
Windows commands within PowerShell are as efficient as using an equivalent PowerShell cmdlet.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
What keyboard shortcut will allow you to launch a script directly from the PowerShell ISE?

A)F5
B)F3
C)Ctrl+L
D)Ctrl+S
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
What command in CentOS 7 can be used in a script to enable multiple executions of a set of instructions while a certain condition exists?

A)for in
B)if
C)while
D)chmod
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
Before running a script on CentOS 7, what command will you need to modify the scripts permission?

A)chmod
B)chperm
C)cp
D)if
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
A command in CentOS 7 that enables you to execute a group of statements a specified number of times
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
commands that establish a layout for data
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
a technique that minimizes errors by consistently observing typing rules
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
Commands for arranging data based on criteria
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
CentOS 7 scripts can utilize the if command in two different ways to set up decisions within scripts. The first format is referred to as "if then fi". What is the second format?

A)if else fi
B)if else then
C)if else
D)then fi
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
A feature in PowerShell that indicates the flow of statements in an executed script
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
PowerShell cmdlet parameters will always be preceded by what character?

A)underscore
B)backtick
C)hyphen
D)slash
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
In the PowerShell ISE, a pane where cmdlets are typed for execution and the script output appears
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
What command in CentOS 7 can be used in a script to execute a number of instructions based on a maximum count you specify?

A)if
B)for in
C)chmod
D)while
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
In PowerShell, the pane where cmdlets are typed to create scripts
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
What characters in PowerShell represent a dynamic variable that stores the current information being piped to it?

A)$_.
B)*_
C)#_.
D)$+
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
In PowerShell, the red lines in the Console pane that indicate an error has occurred
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
What PowerShell ISE keyboard shortcut can be used to run a script immediately?

A)F7
B)F5
C)Ctrl+R
D)Alt+R
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
What syntax characters in PowerShell indicate optional items?

A)curly braces
B)parenthesis
C)angle brackets
D)brackets
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
What PowerShell cmdlet will allow you to arrange a table in a particular order?

A)Sort-Data
B)Sort-Table
C)Create-Table
D)Sort-Object
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
A PowerShell technology controlled by the Set-PSDebug cmdlet
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
Match each item with a statement below.
a.clear typing
b.formatting
c.parse error display
d.script-level tracing
e.while
f.sorting
g.tracing
h.Console pane
i.RemoteSigned
j.Script pane
In PowerShell, a policy in which a digital signature is required for scripts received from an Internet site
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
If a script is written for use in CentOS 7, how many times should a command line that is executed multiple times be written?

A)only once
B)two times
C)one time per execution
D)three times
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
What is the default PowerShell execution policy?

A)user policy
B)administrator policy
C)management policy
D)restricted policy
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
What are three examples of using the concept of clear typing when scripting with PowerShell?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
What is the process and advantages of creating scripts using incremental development?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
Why is a header line important to include in a script written for CentOS 7 or any other Linux distribution?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
What is Microsoft's IntelliSense and how does it benefit a PowerShell ISE user?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
Identify and explain the functions of the three PowerShell ISE panes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
Explain the syntax and the capabilities of the Help cmdlet in PowerShell.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
Explain the concept of using script parameters in CentOS 7?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
What are four ways a PowerShell user can sort and filter data?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
Why must a CentOS 7 administrator change the permissions on their script to enable it to run?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
Explain how error messages are displayed in PowerShell.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.