Multiple Choice Oblig Flashcards

1
Q

Which output is produced by the command echo "Hello Helene, how are you?" | sed -E s/H/X/?

A

Xello Helene, how are you?

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

Which technology was used to connect the first two ARPAnet nodes?

A

Conventional phone lines

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

The command ssh will

A

Give you secure access to a remote computer

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

Suppose each of the following words appears in input.txt in a different line: “anna”, “xavier”, “ole”, “clara”. Which output is produced by the command cat input.txt | grep -E "a"

A

Three lines: “anna”, “xavier”, “clara”

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

Which organization is responsible for assigning and delegating IP addresses and subnets?

A

ICANN

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

Which UNIX command is used to display the list of files in a directory?

A

ls

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

Who created the ARPAnet?

A

The Defense Advanced Research Projects Agency

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

When was ARPA established?

A

1958

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

Which of these tasks is performed by the W3C?

A

Develop and promote standards and formats used on the Web

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

Which sentences match the regular expression / ?time/

A

“half time”, “primetime”, “time”, “superficially sentimental”

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

What is the commonly “#!” pronounced?

A

Shebang

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

What is a top-level domain registry?

A

A company that assigns the top-level domain names in a country/region/top-domain

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

Which sentences match the regular expression /time/

A

“half time”, “primetime”, “time”, “superficially sentimental”

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

The first country connected to the Internet outside the US was…

A

Norway

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

What is the main difference between a packet-switching network and a circuit-switching network?

A

A packet-switched network is more robust and effective than a circuit-switched network

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

Which output is produced by the command echo "Hello Helene, how are you?" | sed -E s/K/X/g?

A

Hello Helene, how are you?

17
Q

Which of these tasks is performed by the IETF?

A

Develop and promote internet standards

18
Q

Which entities manage the domain names records?

A

ICANN

19
Q

Which UNIX command would forcefully shut down the command with process ID 123?

A

kill -9 123

20
Q

The command ssh example.com will..

A

Connect to example.com, accessing as the remote user with the same name of the current user.

21
Q

HTTPS - What does the S stand for?

A

Secure: The connections is secured with TLS

22
Q

Which UNIX command produces an output like “/dev/sda3 113G 105G 2,7G 98% /home”?

A

df -h

23
Q

Suppose each of the following words appears in input.txt in a different line: “anna”, “sara”, “ole”, “xavier”. Which output is produced by the command cat input.txt | grep -E "a$"

A

Two lines: “anna”, “sara”

24
Q

What is the main task of a shell?

A

To allow the user to manipulate data and explore the system by running commands.

25
Q

The common POSIX shell sh is a derivative of which shell?

A

Bourne shell

26
Q

Which UNIX command is used to change the schedule of the execution of programs in the future?

A

contrab

27
Q

What is the purpose of the “#!” first line in a script file?

A

It specifies which interpreter or shell should be used to run this file

28
Q

Which of the following UNIX pipelines will output the first 5 lines of file.txt that start with “ABC”?

A

grep ^ABC file.txt | head -n 5

29
Q

How many different IPv4 addresses can be assigned, at most?

A

2^32 = ~4 billions

30
Q

Which output is produced by the command echo "Hello Helene, how are you?" | sed -E s/H/X/g?

A

Xello Xelene, how are you?

31
Q

ICANN is an abbreviation for…

A

Internet Corporation for Assigned Names and Numbers

32
Q

Suppose each of the following words appears in input.txt in a different line: “anna”, “sara”, “ole”, “xavier”. Which output is produced by the command cat input.txt | grep -E "^a"

A

One line: “anna”

33
Q

Which words match the regular expression /ab+cd*/

A

“aaabc”, “abbcddd”, “abcd”, “xabcde”

34
Q

What technologies make the core of the Web

A

URL, HTTP, HTML

35
Q

Which UNIX command is used to rename files?

A

mv