Chapter 20 Scripting and Remote Access

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Which extension is used with the Python scripting language? A. .vbs B. .js C. .bat D. .py

D. .py D. The .py extension is used with the Python scripting language. The .vbs extension is used with the VBScript language. The .js extension is used with the JavaScript scripting language. The .bat extension is used with the Windows batch scripting language.

Which extension is used with the JavaScript scripting language? A. .js B. .sh C. .bat D. .py

A. .js A. The .js extension is used with the JavaScript scripting language. The .sh extension is used with the Bash scripting language. The .bat extension is used with the Windows batch scripting language. The .py extension is used with the Python scripting language.

Which line would be used to comment JavaScript code? A. //comment B. 'comment C. REM comment D. # comment

A. //comment A. The line //comment is used to comment JavaScript code. The line 'comment is used to comment VBScript code. The line REM comment is used to comment Windows batch script code. The line # comment is used to comment Bash script code and PowerShell code.

What level are scripting languages considered? A. High B. Mid C. Intermediate D. Low

A. High A. 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 scripting language is used with Microsoft Azure and Microsoft 365? A. PowerShell B. VBScript C. Windows batch script D. JavaScript

A. PowerShell A. The PowerShell scripting language allows for the use of the .NET Framework and is commonly used with Microsoft Azure and Microsoft 365. The VBScript language allows for the use of the Component Object Model (COM) and is not used for cloud services. Windows batch script uses existing applications and is not used for cloud services. JavaScript is primarily web browser-based, does not allow for the use of external objects, and is not used for cloud services.

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

B. $xvar = 2 B. The statement $xvar = 2 is a PowerShell statement that will load the variable xvar with a value of 2. The statement xvar = 2 is Bash syntax. The statement xvar = 2; is JavaScript syntax. The statement set /a xvar=2 is Windows batch script syntax.

Which extension is used with the Bash scripting language? A. .vbs B. .sh C. .bat D. .py

B. .sh B. The .sh extension is used with the Bash scripting language. The .vbs extension is used with the VBScript language. The .bat extension is used with the Windows batch scripting language. The .py extension is used with the Python scripting language.

Which tool is used for screen sharing? A. RDP B. MSRA C. SSH D. Telnet

B. MSRA B. The built-in Microsoft Remote Access (MSRA) tool is used for screen sharing between a trusted helper and a user. The Remote Desktop Protocol (RDP) is a protocol used to allow an administrator to connect remotely to a Windows server or workstation, but it does not support screen sharing. Both Secure Shell (SSH) and Telnet are protocols used for text-based console access for administrating Linux/UNIX and network operating system environments.

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 B. Remote Desktop Protocol (RDP) allows for local drives to be available to the remote machine when an RDP session is initiated. Virtual Network Computing (VNC), Secure Shell (SSH), and Telnet are not capable of redirecting drives.

On which network protocol and port does SSH operate? A. TCP port 3389 B. TCP port 22 C. TCP port 23 D. TCP port 443

B. TCP port 22 B. The SSH protocol operates on TCP port 22. The Remote Desktop Protocol operates on TCP port 3389. The Telnet service operates on TCP port 23. HTTPS operates on TCP port 443.

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 B. 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 Windows batch scripting language? A. .vbs B. .js C. .bat D. .py

C. .bat C. 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.

Which type of variable will allow decimal math? A. Boolean B. Integer C. Floating-point D. String

C. Floating-point C. 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 environment variable is not inherited? A. System variable B. User variable C. Program variable D. String variable

C. Program variable C. 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 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. C. 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.

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. C. 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 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

C. mvar = 8; C. The statement mvar = 8; is JavaScript syntax to load a variable of mvar with a value of 8. The statement $mvar = 8 is PowerShell syntax. The statement mvar = 8 is Bash syntax. The statement set /a mvar=8 is Windows batch script syntax.

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 D. JavaScript is primarily web browser-based and allows for interactive content. The Power- Shell 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 scripting language has its own preinstalled Integrated Scripting Environment (ISE)? A. VBScript B. Bash C. Python D. PowerShell

D. PowerShell D. 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 to be installed. The Python scripting language requires a third-party integrated development environment (IDE), also known as an ISE.

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

D. for loop D. A for loop has a defined beginning and end, and steps from the beginning to the end. A do while loop is a type of while loop and has only a defined end. A while loop has only a defined end. An if statement is branch logic, not a loop.


संबंधित स्टडी सेट्स

Stars and the Universe Chapter 1

View Set

Chapter 24 Nutrition, Metabolism, and Energy Balance Practice Questions

View Set

RADT 1020 - Radiation Protection

View Set

Unit 3_Business Law I - BUS203_Section 503

View Set

AP World History - Unit 6.3 + 6.4

View Set