A student is learning Python and is reviewing a Python script as follows: Under which condition will the elif statement be evaluated? when the input is a float number when the first print statement fails when the if statement is false when the input is a string
Continue reading…
Daily Archives: February 24, 2021
A student new to Python is working in the interactive interpreter mode. The student issues the commands: What is the result?
A student new to Python is working in the interactive interpreter mode. The student issues the commands: What is the result? [‘RT1’, ‘RT2’, ‘SW1’, ‘RT3’, ‘SW3’] [‘RT1’, ‘RT2’, ‘RT3’, ‘SW2’, ‘SW3’] [‘RT1’, ‘RT2’, ‘SW1’, ‘SW2’, ‘SW3’] [‘RT1’, ‘RT2’, ‘SW2’, ‘RT3’, ‘SW3’]
Continue reading…
A system administrator issues the apt-get upgrade command on a Linux operating system. What is the purpose of this command?
A system administrator issues the apt-get upgrade command on a Linux operating system. What is the purpose of this command? The remote repository of applications and dependencies will be updated to the latest version. A specific application named upgrade will be installed. Operating system updates are downloaded and will be installed. Every application installed will update itself […]
Continue reading…
A network engineer needs to review the status of all network interfaces of a server running a Linux operating system. The engineer enters the command ifconfig -a . What is the result of this command?
A network engineer needs to review the status of all network interfaces of a server running a Linux operating system. The engineer enters the command ifconfig -a . What is the result of this command? All active interfaces will display information. The host routing table will be displayed. The ARP table of the computer will be displayed. […]
Continue reading…
Which Linux command is used to display the contents of the current directory as shown?
A user issues a Linux command and the result is shown: total 40 drwxr-xr-x 2 devasc devasc 4096 Mar 30 21:25 Desktop drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Documents drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Downloads drwxr-xr-x 5 devasc devasc 4096 Mar 30 21:21 labs drwxr-xr-x 2 devasc devasc 4096 Apr […]
Continue reading…
A student is learning Python in the interactive interpreter mode. The student issues the commands:
A student is learning Python in the interactive interpreter mode. The student issues the commands: What is the result? ‘Test2’ ‘TestTestTestTestTestTest’ ‘TestTest’ ‘Test6’ TypeError: A string type cannot be multiplied by an integer.
Continue reading…
A user enters the commands as shown. What is the result after the mv command is entered?
A user enters the commands as shown. What is the result after the mv command is entered? devasc@labvm:~/Documents$ pwd /home/devasc/Documents devasc@labvm:~/Documents$ mv myfile.sh ../Desktop/myfile2.sh The file myfile.sh is moved to the /home/devasc/Desktop directory and renamed as myfile2.sh. The file myfile.sh is copied to the /home/devasc/Desktop directory and replaces the file myfile2.sh. The file myfile.sh is copied to the /home/devasc/Desktop […]
Continue reading…
Which directory is the current directory after the cd command is entered?
A user issues a series of Linux commands as shown. (omitted)$ pwd /home/devasc/labs/ansible/backups (omitted)$ cd ../.. Which directory is the current directory after the cd command is entered? / /home /home/devasc/ /home/devasc/labs /home/devasc/labs/ansible
Continue reading…
Which two statements describe the permissions assigned to the file? (Choose two.)
A user issues the Linux command ls -l myfile.sh to check the permission of the file myfile.sh. devasc@labvm:~/Documents$ ls -l myfile.sh -rwxr-xr– 1 self test 15 Mar 30 21:24 myfile.sh Which two statements describe the permissions assigned to the file? (Choose two.) Any user in the test group can execute the file. The user with the user ID […]
Continue reading…
A Linux administrator is attempting to use a terminal to configure the network interface card on a computer. The administrator receives a message that the administrator does not have necessary permissions to perform the configuration. What should be done prior to the configuration command?
A Linux administrator is attempting to use a terminal to configure the network interface card on a computer. The administrator receives a message that the administrator does not have necessary permissions to perform the configuration. What should be done prior to the configuration command? change the chmod permissions on the network configuration file use a different user […]
Continue reading…