Chapter 21 ■ Scripting and Remote Access Flashcards

1
Q
  1. 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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. What level are scripting languages considered?
    A. High
    B. Mid
    C. Intermediate
    D. Low
A

A. High

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. Which type of variable will allow decimal math?
    A. Boolean
    B. Integer
    C. Floating-point
    D. String
A

A. Boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. Which environment variable is not inherited?
    A. System variable
    B. User variable
    C. Program variable
    D. String variable
A

C. Program variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  1. 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. Which extension is used with the Windows batch scripting language?
    A. .vbs
    B. .js
    C. .bat
    D. .py
A

C. .bat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  1. 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  1. Which extension is used with the Python scripting language?
    A. .vbs
    B. .js
    C. .bat
    D. .py
A

D. .py

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  1. Which scripting language is used with Microsoft Azure and Office 365?
    A. PowerShell
    B. VBScript
    C. Windows batch script
    D. JavaScript
A

A. PowerShell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  1. 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  1. Which extension is used with the Bash scripting language?
    A. .vbs
    B. .sh
    C. .bat
    D. .py
A

B. .sh

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  1. 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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  1. 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;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
  1. Which scripting language has its own preinstalled Integrated Scripting Environment (ISE)?
    A. VBScript
    B. Bash
    C. Python
    D. PowerShell
A

D. PowerShell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
  1. Which line would be used to comment JavaScript code?
    A. //comment
    B. ‘comment
    C. REM comment
    D. # comment
A

A. //comment

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

A. .js

18
Q
  1. Which Microsoft remote protocol allows for local drives to be presented to the remote
    system?
    A. VCN
    B. RDP
    C. SSH
    D. Telnet
A

B. RDP

19
Q
  1. 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
A

B. TCP port 22

20
Q
  1. Which protocol has poor security?
    A. RDP
    B. Quick Assist
    C. SSH
    D. Telnet
A

D. Telnet