SG: Ch 21: Scripting and Remote Access Flashcards
Which Microsoft remote protocol allows for local drives to be presented to the remote system?
A. VCN
B. RDP
C. SSH
D. Telnet
B. RDP
Remote Desktop Protocol (RDP) allows for local drives to be available to the remote machine when an RDP session is initiated. Neither Virtual Network Computing (VNC), nor Secure Shell (SSH), nor Telnet is capable of redirecting drives.
Which environment variable is not inherited?
A. System variable
B. User variable
C. Program variable
D. String variable
C. Program variable
A program variable is the least significant and not inherited. A system variable is defined for the entire system and is the most significant because it is inherited by all users and programs. A user variable is significant as well, since all applications will inherit the variable. A string variable is not inherited, but it is not an environment variable.
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.
C. Scripting languages are interpreted.
Scripting languages are interpreted languages that run on top of a runtime environment. Programming languages, not scripting languages, require a compiler. Scripting languages are not strongly typed; programming languages are strongly typed. Scripting languages have bad memory management because of loosely typed variables.
Which scripting language has its own preinstalled Integrated Scripting Environment (ISE)?
A. VBScript
B. Bash
C. Python
D. PowerShell
D. PowerShell
PowerShell is the only scripting language that has a preinstalled Integrated Scripting Environment (ISE), called the PowerShell ISE. The VBScript language requires the installation of Microsoft Visual Studio Code. The Bash scripting language requires a text editor or other package be installed. The Python scripting language requires a third-party integrated development environment (IDE), also known as an ISE.
Which scripting language is used within web pages to allow for interactive content?
A. PowerShell
B. Bash
C. Windows batch script
D. JavaScript
D. JavaScript
JavaScript is primarily web browser–based and allows for interactive content. The PowerShell scripting language is used to manage the operating system. The Bash scripting language is primarily used with Linux and UNIX systems. Windows batch scripts use existing applications and are used to manage the operating system.
Which extension is used with the Bash scripting language?
A. .vbs
B. .sh
C. .bat
D. .py
B. .sh
The .sh extension is used with the Bash scripting language. The .vbs extension is used with VBScript language. The .bat extension is used with the Windows batch scripting language. The .py extension is used with the Python scripting language.
Which scripting language allows for the use of the Component Object Model (COM)?
A. PowerShell
B. VBScript
C. Windows batch script
D. JavaScript
B. VBScript
The VBScript language allows for the use of the Component Object Model (COM). The PowerShell scripting language allows for the use of the .NET Framework. Windows batch scripts use existing applications. JavaScript is primarily web browser–based and does not allow for the use of external objects.
Which extension is used with the JavaScript scripting language?
A. .js
B. .sh
C. .bat
D. .py
A. .js
The .js extension is used with the JavaScript scripting language. The .sh extension used with the Bash scripting language. The .batextension is used with the Windows batch scripting language. The .py is used with the Python scripting language.
Which extension is used with the Python scripting language?
A. .vbs
B. .js
C. .bat
D. .py
D. .py
The .py extension is used with the Python scripting language. The .vbs extension is used with VBScript language. The .js extension is used with the JavaScript scripting language. The .bat extension is used with the Windows batch scripting language.
What level are scripting languages considered?
A. High
B. Mid
C. Intermediate
D. Low
A. High
Scripting languages are considered high-level languages because they do not directly access hardware and use an intermediary called the interpreter. Mid-level languages are Java and C/C + + , not scripting languages. There is no such thing as an intermediate-level language. Low-level languages are machine language and assembly language, which are not scripting languages.
Which protocol has poor security?
A. RDP
B. Quick Assist
C. SSH
D. Telnet
D. Telnet
The Telnet protocol is quite aged and has poor security since it transmits everything in cleartext. RDP uses TLS security and is quite secure. The Quick Assist utility also uses TLS security. The SSH protocol provides strong encryption and a built-in, certificate-based authentication mechanism.
Which type of variable will allow decimal math?
A. Boolean
B. Integer
C. Floating-point
D. String
C. Floating-point
Floating-point variables allow for precision math, also known as decimal math. Boolean variables allow for true or false values. Integer variables allow for whole numbers values. String variables allow for text values.
Which line would be used to comment JavaScript code?
A. //comment
B. ‘comment
C. REM comment
D. # comment
A. //comment
The line of //comment is used to comment JavaScript code. The line of ‘comment is used to comment VBScript code. The line of REM comment is used to comment Windows batch script code. The line of # comment is used to comment Bash script code and PowerShell code.
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.
C. chmod permissions must be set.
Before a script can be executed, you must use the chmod command to grant execute permissions. The chown command changes ownership. There is no such thing as an execute attribute. Adding .sh to the end of the script doesn’t serve any purpose.
Which extension is used with the Windows batch scripting language?
A. .vbs
B. .js
C. .bat
D. .py
C. .bat
The .bat extension is used with the Windows batch scripting language. The .vbs extension is used with VBScript language. The .js extension is used with the JavaScript scripting language. The .py extension is used with the Python scripting language.