words and meanings Flashcards

1
Q

What is a bash file?

A

A bash file is a script written for the Bash (Bourne Again SHell) command interpreter, typically containing a series of commands to be executed in a Unix-like operating system.

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

True or False: A bash file must always have a .sh extension.

A

False. While it is common to use a .sh extension, it is not required.

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

What is the primary purpose of a repository in software development?

A

The primary purpose of a repository is to store and manage code, track changes, and facilitate collaboration among developers.

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

Fill in the blank: A repository can be hosted on platforms such as _____ or _____ for version control.

A

GitHub, GitLab

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

What is a perceptron?

A

A perceptron is a type of artificial neuron used in machine learning, particularly in binary classifiers, which takes multiple inputs, applies weights, and produces a single output.

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

Multiple choice: What does a perceptron primarily model?

A

A) Linear decision boundaries B) Non-linear decision boundaries C) Time series data D) Clustering of data

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

True or False: A bash script can include conditional statements.

A

True. Bash scripts can include conditional statements like if, then, and else.

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

What command is used to execute a bash file?

A

The command used is ‘./filename.sh’ or ‘bash filename.sh’.

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

Fill in the blank: A repository typically includes a _____ file that describes the project.

A

README

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

What is the output of a perceptron when the weighted sum of inputs exceeds a certain threshold?

A

The output is 1 (or ‘true’).

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

Multiple choice: Which of the following is NOT a component of a perceptron?

A

A) Weights B) Activation function C) Bias D) Loop

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

True or False: A bash file can be executed without having execute permissions.

A

False. A bash file must have execute permissions to be run directly.

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

What are the two main types of repositories?

A

Centralized and distributed repositories.

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

Fill in the blank: The perceptron learning algorithm adjusts weights based on the _____ of the output.

A

error

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

What is the significance of the shebang (#!) in a bash file?

A

The shebang indicates the script interpreter to be used to execute the file.

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

Multiple choice: Which command initializes a new Git repository?

A

A) git start B) git init C) git create D) git new

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

True or False: A perceptron can only classify linearly separable data.

A

True. A single-layer perceptron can only classify linearly separable data.

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

What is the purpose of using a version control system with a repository?

A

To track changes, manage versions, and facilitate collaboration.

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

Fill in the blank: The perceptron model is a foundational concept in _____ learning.

A

supervised

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

What happens when the perceptron’s output is below the threshold?

A

The output is 0 (or ‘false’).

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

Multiple choice: Which command is used to view the status of a Git repository?

A

A) git log B) git status C) git check D) git info

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

True or False: Bash files can only contain commands, not functions.

A

False. Bash files can contain both commands and functions.

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

What is the typical file extension for a bash script?

A

.sh

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

Fill in the blank: The perceptron uses a _____ function to determine the output.

A

step

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

What are path variables?

A

Path variables are environment variables that specify the directories in which executable programs are located.

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

True or False: Path variables only affect the execution of scripts.

A

False

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

Fill in the blank: The most commonly used path variable in Unix-like systems is _____.

A

$PATH

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

What does the $PATH variable do?

A

It tells the shell which directories to search for executable files.

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

Multiple choice: Which of the following is NOT a common path variable?

A

C: drive

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

What is the default value of the $PATH variable in most Linux distributions?

A

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

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

True or False: You can modify path variables temporarily in a terminal session.

A

True

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

What is the difference between bundled OpenSSH and external OpenSSH?

A

Bundled OpenSSH is included with the operating system, while external OpenSSH is a separately installed version.

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

Fill in the blank: Bundled OpenSSH typically receives updates through the _____.

A

operating system’s package manager

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

Short answer: Why might someone choose to use external OpenSSH instead of bundled OpenSSH?

A

For newer features, bug fixes, or specific configurations not available in the bundled version.

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

Multiple choice: Which of the following is an advantage of using external OpenSSH?

A

Access to the latest security patches

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

True or False: External OpenSSH can be installed alongside bundled OpenSSH without issues.

A

False

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

What command is used to view current path variables in Unix-based systems?

A

echo $PATH

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

Fill in the blank: To add a directory to the path variable temporarily, you can use the command _____.

A

export PATH=$PATH:/new/directory

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

Short answer: What is the primary purpose of path variables?

A

To enable the system to locate and execute programs without specifying their full paths.

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

Multiple choice: Which of the following best describes external OpenSSH?

A

A version of OpenSSH installed independently from the operating system.

41
Q

True or False: Path variables can only contain absolute paths.

42
Q

What command would you use to permanently change your path variable in a Unix-based system?

A

Edit the shell configuration file, like .bashrc or .bash_profile.

43
Q

Fill in the blank: The command to check the version of OpenSSH is _____.

44
Q

Short answer: Name one risk of using an outdated version of OpenSSH.

A

Vulnerability to security exploits.

45
Q

Multiple choice: Which of the following is a common issue with using bundled OpenSSH?

A

Potentially outdated features and security vulnerabilities

46
Q

True or False: Path variables can be set globally or locally.

47
Q

What environment variable is often used in conjunction with $PATH?

A

LD_LIBRARY_PATH

48
Q

Fill in the blank: The command to view all environment variables is _____.

49
Q

Short answer: What happens if a program is not found in the directories listed in the path variable?

A

The shell returns a ‘command not found’ error.

50
Q

What does TLS stand for?

A

Transport Layer Security

51
Q

True or False: SSL is the predecessor of TLS.

52
Q

Fill in the blank: The main purpose of SSL/TLS is to provide ________ communication over a computer network.

53
Q

What is the primary function of the native Windows Secure Channel (Schannel) library?

A

To provide SSL and TLS support for Windows applications.

54
Q

Which protocol is used for establishing a secure connection over the internet?

55
Q

What type of certificates are used to establish trust in SSL/TLS connections?

A

Digital certificates

56
Q

True or False: Internal certificates are used exclusively for public-facing services.

57
Q

What is a common use case for internal certificates?

A

Securing internal communications within an organization.

58
Q

Which command-line interpreter is primarily used in Unix/Linux systems?

59
Q

Which command-line script type is used in Windows operating systems?

60
Q

Multiple Choice: Which of the following is a feature of TLS? A) Encryption B) Compression C) Both A and B

A

C) Both A and B

61
Q

What is the role of a Certificate Authority (CA) in SSL/TLS?

A

To issue digital certificates that verify the identity of entities.

62
Q

True or False: Bash scripts can run on Windows without any modifications.

63
Q

Fill in the blank: The latest version of TLS is ________.

64
Q

What is the main difference between Bash and Batch scripts?

A

Bash is used in Unix/Linux, while Batch is used in Windows.

65
Q

What does the acronym CA stand for in the context of digital certificates?

A

Certificate Authority

66
Q

Multiple Choice: Which of the following is NOT a component of SSL/TLS? A) Handshake Protocol B) Record Protocol C) File Transfer Protocol

A

C) File Transfer Protocol

67
Q

What is the purpose of the SSL handshake?

A

To establish a secure connection between client and server.

68
Q

True or False: Batch files can be executed by any operating system.

69
Q

What is one advantage of using TLS 1.3 over previous versions?

A

Improved security and performance.

70
Q

Fill in the blank: A self-signed certificate is one that is signed by the ________ that created it.

A

same entity

71
Q

What does the term ‘cipher suite’ refer to in SSL/TLS?

A

A set of algorithms that help secure a network connection.

72
Q

Multiple Choice: Which command is used to run a batch file in Windows? A) execute B) run C) start

73
Q

What is the term for the process of converting plaintext into ciphertext?

A

Encryption

74
Q

True or False: SSL is still widely used today.

75
Q

What is MinTTY?

A

MinTTY is a terminal emulator for Cygwin and MSYS that provides a user-friendly interface.

76
Q

What does MSYS2 stand for?

A

MSYS2 stands for Minimal SYStem 2, which is a software distribution and a building platform for Windows.

77
Q

What is a branch in Git?

A

A branch in Git is a pointer to a specific commit, allowing for separate lines of development.

78
Q

True or False: Rebase in Git is used to merge branches.

A

False. Rebase is used to integrate changes from one branch into another by moving or combining commits.

79
Q

What does it mean to ‘fetch’ a branch in Git?

A

Fetching a branch in Git means to download the latest changes from the remote repository without merging them.

80
Q

Fill in the blank: A fast-forward merge occurs when the branch being merged has _____.

A

no new commits compared to the target branch.

81
Q

What command is used to pull changes from a remote repository in Git?

A

The command used is ‘git pull’.

82
Q

What is the primary purpose of the ‘rebase’ command?

A

The primary purpose of the ‘rebase’ command is to incorporate changes from one branch into another while maintaining a linear project history.

83
Q

True or False: A fetched branch is automatically merged into the current branch.

A

False. A fetched branch must be merged manually after fetching.

84
Q

What does ‘git pull’ do?

A

‘git pull’ fetches changes from the remote repository and merges them into the current branch.

85
Q

What is the difference between ‘git fetch’ and ‘git pull’?

A

‘git fetch’ retrieves changes without merging, while ‘git pull’ retrieves and merges changes.

86
Q

What is the command to create a new branch in Git?

A

The command to create a new branch is ‘git branch [branch-name]’.

87
Q

Fill in the blank: In Git, a branch can be thought of as a _____ of development.

88
Q

What is the effect of a fast-forward merge?

A

A fast-forward merge updates the target branch to point to the latest commit of the merged branch without creating a new commit.

89
Q

When should you use rebase instead of merge?

A

You should use rebase when you want to maintain a clean, linear history in your project.

90
Q

True or False: You can rebase a branch that has been shared with others.

A

False. Rebasing a shared branch can cause issues for others who are working on it.

91
Q

What does the command ‘git checkout -b [branch-name]’ do?

A

It creates a new branch and switches to it.

92
Q

What is the default branch name in a new Git repository?

A

The default branch name is ‘main’.

93
Q

What is a common use case for using ‘git pull –rebase’?

A

A common use case is to keep your feature branch up to date with the main branch while avoiding merge commits.

94
Q

How can you list all branches in a Git repository?

A

You can list all branches using the command ‘git branch’.

95
Q

Fill in the blank: In Git, the term ‘HEAD’ refers to the _____ commit.

96
Q

What is the purpose of the ‘git log’ command?

A

The ‘git log’ command displays the commit history for the current branch.

97
Q

What happens to uncommitted changes when you switch branches?

A

Uncommitted changes must be either committed or stashed, or Git will prevent the switch.

98
Q

True or False: You can have multiple branches pointing to the same commit.

A

True. Multiple branches can point to the same commit in Git.

99
Q

What is the effect of performing ‘git reset –hard’?

A

It resets the current branch to a specific commit and discards all uncommitted changes.