Chapter 21 ■ Scripting and Remote Access Flashcards
1
Q
- Which statement about scripting languages is true?
A. Scripting languages require a compiler.
B. Scripting languages are strongly typed.
C. Scripting languages are interpreted.
D. Scripting languages have good memory management.
A
C. Scripting languages are interpreted.
2
Q
- What level are scripting languages considered?
A. High
B. Mid
C. Intermediate
D. Low
A
A. High
3
Q
- Which type of variable will allow decimal math?
A. Boolean
B. Integer
C. Floating-point
D. String
A
A. Boolean
4
Q
- Which environment variable is not inherited?
A. System variable
B. User variable
C. Program variable
D. String variable
A
C. Program variable
5
Q
- Which statement will load a PowerShell variable xvar with a value of 2?
A. xvar = 2
B. $xvar = 2
C. xvar = 2;
D. set /a xvar=2
A
B. $xvar = 2
6
Q
- Which type of loop has a defined beginning and end, and steps from beginning to end?
A. do while loop
B. while loop
C. if statement
D. for loop
A
A. do while loop
D. for loop
7
Q
- Which extension is used with the Windows batch scripting language?
A. .vbs
B. .js
C. .bat
D. .py
A
C. .bat
8
Q
- Which scripting language allows for the use of the Component Object Model (COM)?
A. PowerShell
B. VBScript
C. Windows batch script
D. JavaScript
A
B. VBScript
9
Q
- Which extension is used with the Python scripting language?
A. .vbs
B. .js
C. .bat
D. .py
A
D. .py
10
Q
- Which scripting language is used with Microsoft Azure and Office 365?
A. PowerShell
B. VBScript
C. Windows batch script
D. JavaScript
A
A. PowerShell
11
Q
- Which scripting language is used within web pages to allow for interactive content?
A. PowerShell
B. Bash
C. Windows batch script
D. JavaScript
A
D. JavaScript
12
Q
- Which extension is used with the Bash scripting language?
A. .vbs
B. .sh
C. .bat
D. .py
A
B. .sh
13
Q
- What must be done before a Bash script can be executed?
A. chown permissions must be set.
B. The execute attribute must be set.
C. chmod permissions must be set.
D. An .sh must be added to the end of the script.
A
C. chmod permissions must be set.
14
Q
- Which statement will load a JavaScript variable mvar with a value of 8?
A. $mvar = 8
B. mvar = 8
C. mvar = 8;
D. set /a mvar=8
A
C. mvar = 8;
15
Q
- Which scripting language has its own preinstalled Integrated Scripting Environment (ISE)?
A. VBScript
B. Bash
C. Python
D. PowerShell
A
D. PowerShell