Report_for_NBXS
.docx
keyboard_arrow_up
School
University of South Alabama *
*We aren’t endorsed by this school
Course
MUA 261
Subject
Computer Science
Date
Jan 9, 2024
Type
docx
Pages
3
Uploaded by LieutenantCrocodilePerson965
Q1: What is the purpose of ‘at’ command??
a To execute a command/commands at a specific time.
The correct Answer is: None
The correct Answer is: None
d To execute a command/commands on a specific condition.
e To execute a command/commands at a specific request.
f To execute a command/commands only when the user has logged in.
Q2: What does the COPY instruction do in a Dockerfile??
a COPY creates a copy of your running container
b None
c COPY adds files from your Docker client’s current directory
d COPY creates a copy of your image
e None
f COPY makes a copy of your Dockerfile
Q3: What is a kube-proxy used for??
a To load-balance traffic that is destined for services to the correct backend pods
The correct Answer is: None
The correct Answer is: None
The correct Answer is: None
e To supplant an authentic webpage in a search engine's index and search page
results
The correct Answer is: None
Q4: Which tag inserts a line horizontally on your web page??
a <hr>
b <line>
c None
d None
e <tr>
f <line direction="horizontal">
Q5: Which function is used to Strip whitespace (or other characters) from the beginning and
end of a string??
a strip_str
b None
c trim
d None
e trim_str
f strip
Q6: How to initialize a docker swarm??
a docker master init --advertise-addr your_server_ip_here
b docker init --advertise-addr your_server_ip_here
c None
d docker init swarm --advertise-addr your_server_ip_here
e docker swarm init --advertise-addr your_server_ip_here
f None
Q7: What is the correct way to add 1 to the $count variable??
a None
b count++;
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
Parallel:-
Implement the parallel utility that has 3 command line arguments. This will execute 4 copies of the sleep process for 10 seconds. Your program should allow an arbitrary number of command line arguments for the process to be run in parallel. The parent process should wait for all child processes to finish before exiting back to the shell. If the format of the command is not recognized (e.g. the first argument is not an integer), an error can be displayed. All your code should be contained in the parallel.c file, and the Makefile.
./parallel<processes><cmd><args>
For example, if you type:
./parallel 4 sleep 10
OUTPUT: SUCCESS in running 4 parallel sleep tasks
arrow_forward
Problem
Write code that when executed in PowerShell, will satisfy the following requirements:
Display the contents of the c:\program files directory recursively.
• Include only the name, last write time, and length in the output.
• Pipe the result into a command that will send the output to an interactive table in a separate window.
• Include an error action that would continue without displaying any errors.
• Use only one line to solve the problem.
●
Solution
PS C:\>
Question ID: na-2101-0119-8212
arrow_forward
Task 3: Summary
We would like to be able to generate a summary for each logfile to give us a
rough idea of its contents.
Instructions
1. Create a file called Summary.java.
2. As with Task 1, open the file for reading in a try-catch block.
3. Read through the entire file, counting how many of each message/event
type occurs.
4. Print out a summary with the count of each event/message type.
As a sanity check: the total number of message/event type counts should equal
1000.
Hint: a useful method could be String.split.
Sample Input/Output Example 1:
Summary
Notifications: 322
326
352
Warnings:
Errors:
Example 2:
Cannot find logfile!
Exiting...
arrow_forward
Someone has modified the utils.asm file to insert a PrintTab subprogram immediatelyafter the PrintNewLine subprogram as shown below (changes are highlighted in yellow).The programmer complains that the PrintTab command cannot be called using the "jalPrintTab" instruction. What is wrong, and how can this be fixed? Explain all theproblems in the code this programmer has written.# subprogram: PrintNewLine# author: Charles Kann# purpose: to output a new line to the user console# input: None# output: None# side effects: A new line character is printed to the# user's console.textPrintNewLine: li $v0, 4 la $a0, __PNL_newline syscall jr $ra
.data __PNL_newline: .asciiz "\n"PrintTab: li $v0, 4 la $a0, tab syscall jr $ra.data tab: .asciiz "\t"
arrow_forward
PLZ help with the following:
Write a batch file where you will cycle trough colors A0, B0, C0, D0, E0, F0. You can use & to execute another command on the same line with a command. Use PAUSE so you may see the results one at a time. After viewing each color, press Spacebar until you cycle through the entire list of colors.
You can use FOR command with the recursive switch (/R ) to execute a command in every directory within a directory folder , effectively “ walking the tree”, starting from the current directory or from another directory you specify and stepping down through each of the subdirectories.
FOR /R %%A IN (list) DO command
arrow_forward
C++
Part 1: Working With Process IDs
Modify the getProcessID() function in the file named Processes.cpp
The function must find and store the process's own process id
The function must return the process id to the calling program. Note that the function currently returns a default value of -1.Hint: search for “process id” in the “System Calls” section of the Linux manual.
Take a screenshot of a sample output and upload the picture as part of your assignment submission.
Part 2: Working With Multiple Processes
Modify the createNewProcess() function in the file named Processes.cpp as follows:
The child process must print the message I am a child process!
The child process must then return a string with the message I am bored of my parent, switching programs now
The parent process must print the message I just became a parent!
The parent process must then wait until the child process terminates, at which point it must return a string with the message My child process just…
arrow_forward
I ran the code and still got the same error. Please fix the error in the python file and show screenshots of the fixed code of the python file along with the screenshot of the output as well.
arrow_forward
* Question Completion Status:
A Moving to another question will save this response.
Question 1
Run-time binding is useful for saving on memory because :
It is static linking
Only load modules when they're needed.
Ob.
Don't allow several processes to share one copy of a module.
modules cannot be loaded
d.
A Moving to another question will save this response.
O
DELL
arrow_forward
Can you please help me write the code using the instruction below because my code won't run, it just crashed and I dont know why. Please help, i will give you a good rating! Thanks.
Here is the main intruction ( I also attached the example output too):
A client with a completed main function is provided. The main function should not be modified. You must update the client by creating and implementing the various functions described below.
readFile – Loads the parameter array with Billionaire objects. The data for each Billionaire is read from the given data file which is in CSV format (comma delimited - 1 line per record with fields separated by a comma.) The function should read each line from the file, pass the line read to the Billionaire class constructor and store the resulting object in the parameter array. The second parameter represents the maximum number of Billionaire objects that can be stored.
displayAll - Displays a list of the Billionaires stored in the array.…
arrow_forward
Section 5 - Processes API
Write a program that:
1. Spawns two new processes PO and P1.
2. After 3 scconds the parent scnds to P0 the pid of P1.
3. PO sends the SIGTERM signal to P1 (P1 executes an infinite loop).
4. When P1 receives the signal, it prints a message and exits.
5. Then PO sends a message back to parent.
6. The parent reccives the message and exits.
Build using C code.
arrow_forward
Add comments for assignment p05Thanks! Run it with C, Linux
arrow_forward
Design a Login interface with python tkinter with the following requirements:
Use ttk kit
Use a Frame, which is not resizable
Ask for a Username and a password
Have a button that does "Login", the button has the action (command=) to validate that the password entered is greater than 8 digits and is not "12345678" or "password"
The "User" and "Password" labels are aligned to the right
arrow_forward
can you please double-check this code? thank you!
arrow_forward
1) On the command line, you can redirect stdout and stderr, but not stdin.
True
False
2) System calls are a way for an application to make a request to the underlying operating system.
True
False
3) If you call open("foo.txt", O_WRONLY) and foo.txt doesn't exist, it'll be created.
True
False
4) On the command line, you can redirect stdout and stderr to the same file.
True
False
arrow_forward
Whenever a new value is placed in a memory location, that value overrides the previous value in that location. This process is said to be?
arrow_forward
write c programming in raspberry pi
# Write the command to copy the information from info.txt to the text files in each folder test01 to test10
# start
i=1
while i<=10
do
(i++)
cat info.txt >>
./test$i/test$i
done
#end
Does the script run as expected and without errors?
arrow_forward
PLeae write in python
The populated contacts.txt file with at least 5 contacts
1 screenshot of executed code in command line/terminal window for the print address book option (either paste into Word document or as an image)
1 screenshot of executed code in command line/terminal window for the search contact option (either paste into Word document or as an image)
arrow_forward
C Program:
Write a program that:
As its input arguments, accepts a program name followed by any number of command line arguments for that program.
Creates a child process that executes the given program, passing all the provided arguments to it.
Once the execution of the child process finishes, the parent process receives the child process exit code (X) and prints Exit code was X to the standard error device.
If you run ./myexec echo this is just a test, it should produce
"this is just a test"
on the standard output and
"Exit code was 0" on the standard error device.
Please show the output as well and make sure there is no errors in the C program code
arrow_forward
Add comments please for p05C in linux / This is not compatiable with C99
arrow_forward
Need help with implementing of this program in C# by using Interface.
Task: RenameFile
Create an interface IUndoable to represent actions that can be reversed. Create a class that renames a file, and make it undoable.
arrow_forward
The class I'm taking is assembly programming.
I am completely stuck. I have attached the problem. Please view attachment before answering. Thank you so much for your help! Any help is greatly appreciated.
arrow_forward
Unix-based operating systems usually include a tool named tail. It displays the last 10 lines of a file whose name is provided as a command line argument. Write a Java program that provides the same behavior i.e. the user can specify how many lines to print from the terminal. Display an appropriate error message if the file requested by the user does not exist, or if the command line argument is omitted.
Note: Make sure to display the last n lines of a file whose name is provided as a command line argument. You might need to pass a file as an argument, therefore make sure to have access to a sample file, the contents of which you want to print out.
arrow_forward
This is a main module.
w7_main Module (supplied)
Do not modify this module! Look at the code and make sure you understand it.
// Workshop 7 // Version: 1.0 // Author: Asam Gulaid // Description: // This file tests your workshop 7 ///////////////////////////////////////////// #include<iostream> #include "Minister.h" #include "Minister.h" // intentional #include "MemberParliament.h" #include "MemberParliament.h" // intentional using namespace std; using namespace sdds; void printHeader(const char* title) { char oldFill = cout.fill('-'); cout.width(62); cout << "" << endl; cout << "|> " << title << endl; cout.fill('-'); cout.width(62); cout << "" << endl; cout.fill(oldFill); } void newElections(Minister& aMinister, const char* district, const char* newPM, double year) { aMinister.NewDistrict(district); aMinister.changePM(newPM); aMinister.assumeOffice(year); cout << "Status of New Election " << aMinister << endl…
arrow_forward
UNIX ASSIGNMENT - IXQuestion 2: Write a command to list all the files inside a folder i.e. if there is a folder inside a folder then it should list all files inside the sub-folder which is inside the folder to be listed.
arrow_forward
Solve this time coorectky previously solve wrong.
arrow_forward
Computer science
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Related Questions
- Parallel:- Implement the parallel utility that has 3 command line arguments. This will execute 4 copies of the sleep process for 10 seconds. Your program should allow an arbitrary number of command line arguments for the process to be run in parallel. The parent process should wait for all child processes to finish before exiting back to the shell. If the format of the command is not recognized (e.g. the first argument is not an integer), an error can be displayed. All your code should be contained in the parallel.c file, and the Makefile. ./parallel<processes><cmd><args> For example, if you type: ./parallel 4 sleep 10 OUTPUT: SUCCESS in running 4 parallel sleep tasksarrow_forwardProblem Write code that when executed in PowerShell, will satisfy the following requirements: Display the contents of the c:\program files directory recursively. • Include only the name, last write time, and length in the output. • Pipe the result into a command that will send the output to an interactive table in a separate window. • Include an error action that would continue without displaying any errors. • Use only one line to solve the problem. ● Solution PS C:\> Question ID: na-2101-0119-8212arrow_forwardTask 3: Summary We would like to be able to generate a summary for each logfile to give us a rough idea of its contents. Instructions 1. Create a file called Summary.java. 2. As with Task 1, open the file for reading in a try-catch block. 3. Read through the entire file, counting how many of each message/event type occurs. 4. Print out a summary with the count of each event/message type. As a sanity check: the total number of message/event type counts should equal 1000. Hint: a useful method could be String.split. Sample Input/Output Example 1: Summary Notifications: 322 326 352 Warnings: Errors: Example 2: Cannot find logfile! Exiting...arrow_forward
- Someone has modified the utils.asm file to insert a PrintTab subprogram immediatelyafter the PrintNewLine subprogram as shown below (changes are highlighted in yellow).The programmer complains that the PrintTab command cannot be called using the "jalPrintTab" instruction. What is wrong, and how can this be fixed? Explain all theproblems in the code this programmer has written.# subprogram: PrintNewLine# author: Charles Kann# purpose: to output a new line to the user console# input: None# output: None# side effects: A new line character is printed to the# user's console.textPrintNewLine: li $v0, 4 la $a0, __PNL_newline syscall jr $ra .data __PNL_newline: .asciiz "\n"PrintTab: li $v0, 4 la $a0, tab syscall jr $ra.data tab: .asciiz "\t"arrow_forwardPLZ help with the following: Write a batch file where you will cycle trough colors A0, B0, C0, D0, E0, F0. You can use & to execute another command on the same line with a command. Use PAUSE so you may see the results one at a time. After viewing each color, press Spacebar until you cycle through the entire list of colors. You can use FOR command with the recursive switch (/R ) to execute a command in every directory within a directory folder , effectively “ walking the tree”, starting from the current directory or from another directory you specify and stepping down through each of the subdirectories. FOR /R %%A IN (list) DO commandarrow_forwardC++ Part 1: Working With Process IDs Modify the getProcessID() function in the file named Processes.cpp The function must find and store the process's own process id The function must return the process id to the calling program. Note that the function currently returns a default value of -1.Hint: search for “process id” in the “System Calls” section of the Linux manual. Take a screenshot of a sample output and upload the picture as part of your assignment submission. Part 2: Working With Multiple Processes Modify the createNewProcess() function in the file named Processes.cpp as follows: The child process must print the message I am a child process! The child process must then return a string with the message I am bored of my parent, switching programs now The parent process must print the message I just became a parent! The parent process must then wait until the child process terminates, at which point it must return a string with the message My child process just…arrow_forward
- I ran the code and still got the same error. Please fix the error in the python file and show screenshots of the fixed code of the python file along with the screenshot of the output as well.arrow_forward* Question Completion Status: A Moving to another question will save this response. Question 1 Run-time binding is useful for saving on memory because : It is static linking Only load modules when they're needed. Ob. Don't allow several processes to share one copy of a module. modules cannot be loaded d. A Moving to another question will save this response. O DELLarrow_forwardCan you please help me write the code using the instruction below because my code won't run, it just crashed and I dont know why. Please help, i will give you a good rating! Thanks. Here is the main intruction ( I also attached the example output too): A client with a completed main function is provided. The main function should not be modified. You must update the client by creating and implementing the various functions described below. readFile – Loads the parameter array with Billionaire objects. The data for each Billionaire is read from the given data file which is in CSV format (comma delimited - 1 line per record with fields separated by a comma.) The function should read each line from the file, pass the line read to the Billionaire class constructor and store the resulting object in the parameter array. The second parameter represents the maximum number of Billionaire objects that can be stored. displayAll - Displays a list of the Billionaires stored in the array.…arrow_forward
- Section 5 - Processes API Write a program that: 1. Spawns two new processes PO and P1. 2. After 3 scconds the parent scnds to P0 the pid of P1. 3. PO sends the SIGTERM signal to P1 (P1 executes an infinite loop). 4. When P1 receives the signal, it prints a message and exits. 5. Then PO sends a message back to parent. 6. The parent reccives the message and exits. Build using C code.arrow_forwardAdd comments for assignment p05Thanks! Run it with C, Linuxarrow_forwardDesign a Login interface with python tkinter with the following requirements: Use ttk kit Use a Frame, which is not resizable Ask for a Username and a password Have a button that does "Login", the button has the action (command=) to validate that the password entered is greater than 8 digits and is not "12345678" or "password" The "User" and "Password" labels are aligned to the rightarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education