Deck 15: Introduction to Scripting

ملء الشاشة (f)
exit full mode
سؤال
Which logical operator returns a true if a true if either expression or condition is true?
[ AND | OR | NOR | NOT ]
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Which part of a script is not executed by the computer, but is very important for any technician that might later have to modify the script?
[ comment | construct | character strings | loop ]
سؤال
Which type of number would a scripting language consider the value 3.5?
[ partial | fraction | integer | floating-point ]
سؤال
List one way a new technician could change his or her perspective when modifying a script for the first time and the modifications tried already have failed.
سؤال
What command is used to create a directory? [ cd | make | create | md ]
سؤال
Which relational operator would be used in a script to mean less than or equal to?
[ < | > | <= | >= ]
سؤال
Consider the following batch file commands:
set num1=7
set num2=8
set numResult=%num1%*%num2%
Echo "numResult"
What is the output? [ 15 | 7.8 | 56 | .875 ]
سؤال
What is an environment variable as it relates to Windows?

A)A Task Manager setting
B)A name and a value that relates to a program or Windows
C)A tile that links to a favorite file, folder, or application
D)An icon on the desktop that has an arrow as part of the icon and links to a specific application
سؤال
Which part of a script is a named memory location which stores data of a specific type?
[ declaration | keyword | variable | output ]
سؤال
What are two advantages of scripts? (Choose two.)

A)They increase efficiency.
B)They are easier to do than working from a command prompt.
C)They are not language-specific.
D)They ensure consistent configuration throughout an organization.
E)They are very structured and do not provide room for many mistakes.
سؤال
Which type of loop is used in the following commands from a PowerShell script?
PS> while($val -ne 7)
{
$val++
Write-Host $val
}
[ for | while | iterative | endless ]
سؤال
Which scripting language would most likely have the net use command as a part of it used in a corporate environment on Windows computers?
[ PowerShell | JavaScript | Python | VBScript ]
سؤال
What is the purpose of the following command issued as part of a Python or JavaScript? Python: Answer1 = 0
JavaScript: Answer1 = 0;

A)It puts the value of Answer1 into memory location 0
B)It initializes the variable named Answer1 to zero.
C)It sets the data type for Answer1 to the default data type.
D)It creates a character string called Answer1.
سؤال
The ____ is the starting point for all directories.
[ beginning | root directory | home directory | flash ]
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/14
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 15: Introduction to Scripting
1
Which logical operator returns a true if a true if either expression or condition is true?
[ AND | OR | NOR | NOT ]
OR
2
Which part of a script is not executed by the computer, but is very important for any technician that might later have to modify the script?
[ comment | construct | character strings | loop ]
Comment
3
Which type of number would a scripting language consider the value 3.5?
[ partial | fraction | integer | floating-point ]
Floating-point
4
List one way a new technician could change his or her perspective when modifying a script for the first time and the modifications tried already have failed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
5
What command is used to create a directory? [ cd | make | create | md ]
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
6
Which relational operator would be used in a script to mean less than or equal to?
[ < | > | <= | >= ]
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
7
Consider the following batch file commands:
set num1=7
set num2=8
set numResult=%num1%*%num2%
Echo "numResult"
What is the output? [ 15 | 7.8 | 56 | .875 ]
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
8
What is an environment variable as it relates to Windows?

A)A Task Manager setting
B)A name and a value that relates to a program or Windows
C)A tile that links to a favorite file, folder, or application
D)An icon on the desktop that has an arrow as part of the icon and links to a specific application
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
9
Which part of a script is a named memory location which stores data of a specific type?
[ declaration | keyword | variable | output ]
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
10
What are two advantages of scripts? (Choose two.)

A)They increase efficiency.
B)They are easier to do than working from a command prompt.
C)They are not language-specific.
D)They ensure consistent configuration throughout an organization.
E)They are very structured and do not provide room for many mistakes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
11
Which type of loop is used in the following commands from a PowerShell script?
PS> while($val -ne 7)
{
$val++
Write-Host $val
}
[ for | while | iterative | endless ]
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
12
Which scripting language would most likely have the net use command as a part of it used in a corporate environment on Windows computers?
[ PowerShell | JavaScript | Python | VBScript ]
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
13
What is the purpose of the following command issued as part of a Python or JavaScript? Python: Answer1 = 0
JavaScript: Answer1 = 0;

A)It puts the value of Answer1 into memory location 0
B)It initializes the variable named Answer1 to zero.
C)It sets the data type for Answer1 to the default data type.
D)It creates a character string called Answer1.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
14
The ____ is the starting point for all directories.
[ beginning | root directory | home directory | flash ]
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 14 في هذه المجموعة.