Scripting Flashcards

1
Q

what is .ps1?

A

a powershell file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is .bat?

A

a batch file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is a .vbs file?

A

visual basic file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is a .sh file?

A

a bash scripting file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is .js?

A

for javascript files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is a .py file?

A

a python file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is a shell script?

A

text based file that contains commands that can be interpreted and presented to the computer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is visual basic script?

A

scripting language based on the visual basic programming language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is Linux Shell Script?

A

works a lot like the way batch works inside of windows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is a JavaScript file?

A

scripting language designed to be implemented inside of a web based interface.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what scripts are used in windows?

A

.bat .ps1 .vbs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what scripts are used inside Linux?

A

.sh

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what scripts are used in MacOS?

A

.js/AppleScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what script is cross platform?

A

.py

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what are variables?

A

used to store values and data for different data types.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what is a boolean?

A

a form of data with only two possible values (true or false)

17
Q

what is an interger?

A

a variable that stores an integer or a whole number that may be positive or negative

18
Q

what is another name for a decimal number?

A

a float

19
Q

what is a string?

A

a variable that can store multiple characters

20
Q

what is a character?

A

a variable that can only store one ASCII character

21
Q

what is a constant?

A

like a variable but cannot be changed within the program once defined.

22
Q

what is a loop?

A

a type of flow control that controls which order the code will be executed

23
Q

what is a for loop?

A

used when the number of times to repeat a block of code is known

24
Q

what is a while loop?

A

used when the number of times to repeat a block of code is not known and will only stop until something happens.

25
Q

what is a do loop?

A

used when there is an indefinite iteration and will only stop until some condition is met at the end of the loop.

26
Q

what is logic control?

A

used to provide conditions based on different logical tests.

27
Q

what does the echo command mean?

A

its printing to the screen

28
Q

what is if[condition]?

A

a logical construct

29
Q

how can you remap network drives?

A

done within normal command line interface using a batch file shell (.bat) or PowerShell

30
Q

how can you perform application installation?

A

can use a batch file or PowerShell in Windows or a shell file in Linux

31
Q

how can you initiate a security patch or update in PowerShell.

A

PSWindowsUpdate

32
Q

how can you initiate a security patch or update with Batch?

A

Wusa.exe

33
Q

how can you initiate a security patch or update in Linux?

A

apt or yum