Linux 10-18

Додано: 13 травня 2023
Предмет: Інформатика, 11 клас
Тест виконано: 4 рази
43 запитання
Запитання 1

A pipe allows you to…


варіанти відповідей

type multiple commands at one prompt.

send the output of a command to a file.

send the same input to multiple commands.

send the output of one command to another.

Запитання 2

Channel 2 is:

варіанти відповідей

STDALL


STDOUT


STDERR


STDIN


Запитання 3

The grep command…

варіанти відповідей

will display all the lines in a file containing the specified Regular Expression.

will display the line numbers in a file that contain a specified Regular Expression.

is not case sensitive.

will display all the lines that begin with the specified Regular Expression.


Запитання 4

Which of the following commands can be used to scroll through a text file?(choose two)

варіанти відповідей

less


cat


more


some

Запитання 5

Which command can be used to print line numbers?

варіанти відповідей

nl

ln

sort

num

Запитання 6

Which are appropriate editors for writing shell scripts?(choose two)

варіанти відповідей

Firefox

nano

/bin/bash

vi

LibreOffice Writer

Запитання 7

Which of the following are correct about for and while loops?(choose two)

варіанти відповідей

for loops operate over a fixed list of items


while loops operate over a fixed list of items


while loops have a test each cycle to determine if it should run again

for loops have a test each cycle to determine if it should run again


for loops require a variable over which to iterate

Запитання 8

What is the correct way to assign the word “Hello” to a variable?

варіанти відповідей

$A=”Hello”

echo “Hello” > A


echo $A “Hello”

A = “Hello”

A=”Hello”

Запитання 9

What is the correct way to save the current directory to a variable?

варіанти відповідей

pwd $A

A=`pwd`

A=cwd

pwd | $A

A=pwd

Запитання 10

What is the meaning of $(( $i + 1)) ?

варіанти відповідей

This runs the command stored in variable i

If i is 0, the loop will stop

This will return the value of the next argument to the script

1 will be added to the i variable

This will return the value of the first argument to the script

Запитання 11

Which of the following are valid CPU types for Intel-based platforms?(choose two)

варіанти відповідей

24-bit

32-bit

64-bit

48-bit

Запитання 12

Choose all of the following statements that are true in regard to virtual RAM: (choose three)

варіанти відповідей

Virtual RAM is stored on a hard drive

Virtual RAM is also called swap space

Virtual RAM is stored in the CPU

Virtual RAM is used when available physical RAM is low.

Запитання 13

A division of a hard drive may be referred to as a _______ .

варіанти відповідей

portion

block

label

partition

Запитання 14

The fdisk command is a tool used for working with the MBR partitioned disks. True or False?

варіанти відповідей

True

False

Запитання 15

Which of the following commands will display CPU information?(choose two)

варіанти відповідей

cpuinfo

showcpu

lspic

arch

lscpu

Запитання 16

The Process ID (PID) of the init process is:

варіанти відповідей

1

varies

100

0

Запитання 17

What directory typically contains log files?

варіанти відповідей

/var/log

/log

/usr/log

/proc/loc

Запитання 18

The /var directory has files that change over time. True or False?

варіанти відповідей

True

False

Запитання 19

Which of the following commands will allow you to view all processes on the system?(choose two)

варіанти відповідей

ps -ef

ps aux

ps -A

ps -eLf

ps

Запитання 20

Which directory is the root of the filesystem?

варіанти відповідей

/

/root

/sys

/home

/var

Запитання 21

A service is…

варіанти відповідей

a file that contains configuration information

another name for a computer’s hostname

…like an IP address.

…a feature provided by one computer to another.

Запитання 22

Only servers have hostnames. True or False?

варіанти відповідей

True

False

Запитання 23

Which of the following are valid IPv4 addresses?(choose two)

варіанти відповідей

192.301.25.25

10.33.55.77

192.105.10.10

192.105.10.10.2

Запитання 24

Which of the following commands will allow you to log into a remote machine?

варіанти відповідей

ssh

route

netstat

dig

Запитання 25

Which files contain user account information?(choose two)

варіанти відповідей

/etc/passwords

/etc/shadow

/etc/passwd

/etc/group

Запитання 26

Which command will display the UID, GID and groups your current user belongs to?

варіанти відповідей

id

who

about

whoami

Запитання 27

Each user belongs to at least one group. True or False?

варіанти відповідей

True

False

Запитання 28

Which command will display the groups that the root user belongs to?

варіанти відповідей

groups -a

all

id root

all -t

group -r

Запитання 29

UIDs 1-499 are usually reserved for what kind of users?

варіанти відповідей

System accounts, such as server processes

Are not used for user accounts, but for group accounts

Log-in (human) users

Remote log-in accounts

Запитання 30

Which command will display the users that are currently logged in to the system?

варіанти відповідей

id

whoami

about

who

Запитання 31

Which of the following options for the useradd command allows root to specify the UID to be associated with the account?

варіанти відповідей

-u

-g

-M

-G

Запитання 32

Which command can be used to determine a user’s most recent log in?

варіанти відповідей

shell

history

last

login

Запитання 33

Which of the following files contains encrypted user password information?

варіанти відповідей

/etc/shadow

/etc/group

/etc/passwd

/etc/usr

Запитання 34

Which of the following options for the useradd command allows you to use a different primary group then the default?

варіанти відповідей

-G

-U

-g

-u

Запитання 35

Which of the following commands can be used to modify a user?

варіанти відповідей

usermod

useradd

adduser

moduser

Запитання 36

Which of the following are methods for setting permissions using the chmod command?(choose two)

варіанти відповідей

primary

octal

symbolic

letter

Запитання 37

The chown command can be used to change the owner and group of a file. True or False?

варіанти відповідей

True

False

Запитання 38

The chmod command can be used on a file by:

варіанти відповідей

The file owner

Only root

A user that belongs to the files current group

The file owner and root

Запитання 39

The execute permission is never set on files by default. True or False?

варіанти відповідей

True

False

Запитання 40

The sticky bit permission…

варіанти відповідей

…changes the group ownership of existing files in a directory.

…prevents others from overwriting files they don’t own in common directories.

…sets the group ownership of any new file created in a directory.

…prevents others from removing files they don’t own from a common directory.

Запитання 41

The setuid permission…

варіанти відповідей

…reports the output of a script to the owner.

…allows files in a directory to be manipulated as by the directory owner.

…allows a command to be run as the file owner.

…prevents the owner of a file from being changed.

Запитання 42

The setgid permission… (choose two)

варіанти відповідей

…prevents the group owner of a file from being changed.

…can only be set on files.

…allows files created in a directory to be owned by the group that owns the directory.

…allows a command to be run as the group owner of the file.

Запитання 43

Which of the following ls commands, when executed, will only show information about the directory itself? (choose two)

варіанти відповідей

ls -h

ls -d

ls -ld

ld -a

Створюйте онлайн-тести
для контролю знань і залучення учнів
до активної роботи у класі та вдома

Створити тест