Scripting Flashcards

1
Q

What is a Batch File?

A

It’s a text file written in a text editor such as notepad, wherein you type commands, one on each line, just like you would at a command prompt

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

What makes something a batch file

A

text written in a text editor, such as notepad, saved with the extension .bat

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

How do you save a notepad file as a .bat file

A

choose the extension type asterik dot asterik and end the file name with .bat

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

How would you get a list of environment variables?

A

open a command prompt and enter set

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

What is an environment variable?

A

certain phrases that point to certain places or things that work for anything throughout the OS.

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

%homepath%

A

environment variable that will lead to whoevers logged in, will replace with their homepath.

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

What extension does powershell use?

A

.ps1

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

cmdlet

A

commandlet

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

.exe

A

executable file

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

What is compiled code

A

Essentially a text document of code that is then run through another program called a compiler. The compiler generates the .exe files.

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

What is the downside of compilers?

A

you use different compilers from different operating systems and cpus.

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

What is an interpreted program

A

Programs are still written in a programming language, but these are built into every different OS using an interpreter that works on most OS. The program isn’t turned into a .exe

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

What extension does visual basic use?

A

.vbs

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

what is a variable

A

values that can change based on how we manipulate them

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

What is a string value?

A

basically anything you want to put in

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

conditional

A

if/then

17
Q

What OS is visual basic generally limited to?

A

windows

18
Q

What extension does python use?

A

.py

19
Q

What OS does python run on?

A

all of them.

20
Q

What extension does javascript use

A

.js

21
Q

What is a client-side application

A

Web server runs code on the web browser & runs on the client itself

22
Q

For statement

A

conditional loop= as long as variable is doing something, repeat indefinitely

23
Q

functions

A

chunks of code run over and over again

24
Q

Pathping

A

calculates distance between each hop, latency between each hop and latency from start to end of that communication

25
Q

Time drift

A

when system clock or OS clock falls out of sync