Hybrid Quiz 2 (Material from w03-w04) 2
.pdf
keyboard_arrow_up
School
Algonquin College *
*We aren’t endorsed by this school
Course
CST8102
Subject
Computer Science
Date
Feb 20, 2024
Type
Pages
5
Uploaded by ProfessorStrawMouse21 on coursehero.com
Important: Written answers commands are automatically graded. Enter them accurately according to the following: 1. Use -5 instead of —n 5 with the relevant commands 2. Use only the minimum and absolutely required options 3. Write options before the other arguments (1f the command permits) For example: 1ls -1 1l.txt instead of 1ls 1l.txt -1 4. Use exactly one space to separate arguments, options, pipes, and redirections. For example: echo hello | wc instead of: echo hello|wc 5. Use fgrep 1instead of grep 6. Remove redundant spaces 1n the beginning and end Question 1 (1 point) Saved You are 1n the directory =~ Rename the sub directory subdir (under the current directory) to newsub using absolute pathnames only. [ mv /home/username/subdir /hc ] Ay Question 2 (1 point) Saved Which command searches for text inside files? (e) grep Question 3 (1 point) Saved
Which command searches for files or directories named exactly helloworld in in the current directory and under? Ofind —iname helloworld @find -name helloworld O fname helloworld O find helloworld Ofind -type f helloworld Ofind -type f -name helloworld O search helloworld Question 4 (1 point) Saved Which command can quickly provide search results by keeping a cache of files and directories pathnames? O fastsearch O findnow O isearch O sfind O 1find O gsearch @ locate Question 5 (1 point) Saved What i1s the minimum permission needed on directory dir to do: rm dir/1l.txt
Question 6 (1 point) Saved Which Linux command allows you to change permissions to files/directories? Question 7 (1 point) Saved Which of the following commands outputs the current user name? <:)id @ whoami O who (:)None of the other answers O pwd O groups Question 8 (1 point) Saved
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
Course Title : Operating SystemQuestion :
How you will create new user using terminal in Ubuntu? Add screenshots of all steps for new user creation including terminal and Login page in Answer sheet. Every student has to create new user as of his/her arid number for example (18-arid-2929).
Note: screenshots are mandatory.
arrow_forward
Fill in the blank question- Only answer without explanation
Q. The ____ command is used with PID.
arrow_forward
The below form will represent the main form from which the user will navigate to the other forms. Meaning each button should be linked to the appropriate form. E.g. If button Manage Addresses is clicked the form managed addresses should be displayed. The Exit button should successfully terminate the program.
Create a void method for each button and name them as follow: LinkToAddresses (), LinkToCustomers (), LinkToDrivers (), LinkToStatus (), and LinkToFreight (). The methods should be called under the appropriate button. For the exit button create a void method named AppExit () this should terminate the program.
arrow_forward
2. Repeat the display of a menu of 4 services, perform the required task according to the user’s choice and asks the user whether he/she wants to repeat or no. You need to choose one service from each category (‘A’,’B’,’C’,’D’)a. A. Display the total number of employees that were infectedb. B. Display the number of employees above certain age that were infectedc. B. Display the number of employees under certain age that were infectedd. B. Display the number of employees that have expired their leavese. A. Display the average age of infected personf. C. Display the age of the youngest person g. C. Display the age of the oldest person h. D. Search an employee by code and display all his/her detailsi. D. Search an employee by name and display all his/her details
Use Java program
arrow_forward
Assignment3A:
Diagnosis Checker: For years, patients have used websites like WebMD to pre-diagnosis
themselves with a variety of illnesses before meeting with a doctor. As you might imagine,
medical professionals believe this can lead to incorrect treatment. To combat this, a local
hospital has asked you to develop a program that will help patients check if their symptoms
match the online diagnosis.
You will prompt the user to enter their illness. Based on this input, you will ask them if they are
experiencing certain symptoms. Depending on their answer, your program will indicate if the
Internet diagnosis is likely to be correct or not. The decision chart is shown below:
•
●
●
HGPS
0
Do they have brittle bones?
If no, it is likely not HGPS
■ If yes, it is possibly HGPS
Bokter Syndrome
O
Do they have a Vitamin C deficiency?
If no, it is likely not Bokter Syndrome
If yes, are they a sailor?
.
.
Lupus
.
If no, it is likely not Bokter Syndrome
If yes, it is possibly Bokter Syndrome
arrow_forward
1. Come and Get Sum
by CodeChum Admin
You think you're smart huh? I bet you cant add even add
two numbers together! Prove me wrong and I might just
back off.
Input
1. The first integer
Constraints
This is a whole number.
2. The second integer
Constraints
This is a whole number.
Output
The first line will contain a message prompt to input the
first integer.
The second line will contain a message prompt to input
the second integer.
The last line will contain the whole equation with the
sum.
Enter the first - number: 1
Enter the second- number: 2
1.+23
arrow_forward
Case study:
You are required to develop an application to keep track of meeting minutes. Every time a formal meeting takes
place, corresponding meeting minutes should be generated. Each meeting has a list of participants, which the
system receives from the caller of the meeting. The caller also assigns the role of meeting secretary to one of the
participants. The contents of the minutes are usually text, however, images and audio clips can also be attached to
the minutes. The number of attachments is not limited. For each meeting, minutes can only be created by the
assigned meeting secretary (for that meeting), who is also responsible for uploading the attachments. Minutes can
be created incrementally. Once the secretary is satisfied with his/her draft, the minutes can be broadcast to the
participants, who can then make comments on the minutes. Participants can make comments on the minutes as a
whole. These are global comments. They can also select particular sections of the minutes…
arrow_forward
Fill in the blank question- Only answer without explanation
Q. The ____ operator puts command to the background and releases the terminal for other task.
arrow_forward
Create Use Case Diagram for the WhatsApp application . Make sure to follow rules in creating Use Case Diagram.
arrow_forward
Create a program that allows you to view and edit the sales amounts for each month of the current year.
Example of how the program should look:
Console
Monthly Sales program
COMMAND MENU
add - Add sales for a specified month
view - View sales for specified month
edit - Edit sales for specified month
totals - View sales summary for the year
exit - Exit program
Command: add
Three-letter Month: jan
Sales Amount: 10317
Sales amount for Jan is 10,317.00.
Command: add
Three-letter Month: feb
Sales Amount: 15293
Sales amount for Jan is 15,293.00.
Command: view
Three-letter Month: jan
Sales Amount: 14317
Sales amount for Jan is 14,317.00.
Command: edit
Three-letter Month: jan
Sales amount for Jan is 14,317.00.
Command: totals
Yearly total: 29,610.00
Monthly average: 14,805.00
Command: view
Three-letter Month: july
Invalid three-letter month.
Command: exit
Bye!
Requirements for the program:
The program should use a list to store the sales…
arrow_forward
Create a program that allows you to view and edit the sales amounts for each month of the current year.
Console
Monthly Sales program
COMMAND MENU
add - Add sales for specified month
view - View sales for specified month
edit - Edit sales for specified month
totals - View sales summary for year
exit - Exit program
Command: add
Three-letter Month: jan
Sales Amount: 10317
Sales amount for Jan is 10,317.00.
Command: add
Three-letter Month: feb
Sales Amount: 15293
Sales amount for Jan is 15,293.00.
Command: view
Three-letter Month: jan
Sales Amount: 14317
Sales amount for Jan is 14,317.00.
Command: edit
Three-letter Month: jan
Sales amount for Jan is 14,317.00.
Command: totals
Yearly total: 29,610.00
Monthly average: 14,805.00
Command: view
Three-letter Month: july
Invalid three-letter month.
Command: exit
Bye!
Specifications
The program should use a list to store the sales data for each month with the three-letter abbreviation for the month…
arrow_forward
In C language, please include notes as well explain each line
Each member the team will write the code for one of the following customized commands:
1. shell*: the environment that will execute the rest of the commands. the shell won’t terminate unless the exit command gets executed. The shell displays a different command prompt (i.e. something other than $ and >).
arrow_forward
Question 8
Write the command that displays all the lines containing a letter followed immediately by a number.
Use the editor to format your answer
Question 9
Show the two ways we can perform command substitution for the following command "Is -I "
You need to use the variable $VAR1 for the same.
Use the editor to format your answer
arrow_forward
NumericAnalyzer will accept a list of 1 or more numbers as command line arguments.
NOTE: Don’t prompt the user for input – this is an exercise passing values to your program via the command line! We’re forcing the user to “push” data values to the application rather than “pull” it from the user!
Error checking:
if the user fails to pass in parameters, the program will display an error message (of your choice) and exit early.
EXTRA CREDIT (+5) Data Validation – flag non-numeric parameters as “invalid data” and exit early.
The main() method’s String [] args argument values must be converted and assigned to a numeric/integer array and passed to an instance of NumericAnalyzer. (SEE EXAMPLE main() IMPLEMENTATION BELOW). main() should also be responsible for error checking logic.
Your program will display the following information about the numbers provided by the user:
The set of numbers provided by the user sorted ascendingly. NOTE: DO NOT implement your own sort algorithm! Part…
arrow_forward
Create a program that allows you to view and edit the sales amounts for each month of the current year.
Console
Monthly Sales program
COMMAND MENU
add - Add sales for specified month
view - View sales for specified month
edit - Edit sales for specified month
totals - View sales summary for year
exit - Exit program
Command: add
Three-letter Month: jan
Sales Amount: 10317
Sales amount for Jan is 10,317.00.
Command: add
Three-letter Month: feb
Sales Amount: 15293
Sales amount for Jan is 15,293.00.
Command: view
Three-letter Month: jan
Sales Amount: 14317
Sales amount for Jan is 14,317.00.
Command: edit
Three-letter Month: jan
Sales amount for Jan is 14,317.00.
Command: totals
Yearly total: 29,610.00
Monthly average: 14,805.00
Command: view
Three-letter Month: july
Invalid three-letter month.
Command: exit
Bye!
Specifications
The program should use a list to store the sales data for each month with the three-letter abbreviation for the month…
arrow_forward
Create a program that allows you to view and edit the sales amounts for each month of the current year.
Console
Monthly Sales program
COMMAND MENU
add - Add sales for specified month
view - View sales for specified month
edit - Edit sales for specified month
totals - View sales summary for year
exit - Exit program
Command: add
Three-letter Month: jan
Sales Amount: 10317
Sales amount for Jan is 10,317.00.
Command: add
Three-letter Month: feb
Sales Amount: 15293
Sales amount for Jan is 15,293.00.
Command: view
Three-letter Month: jan
Sales Amount: 14317
Sales amount for Jan is 14,317.00.
Command: edit
Three-letter Month: jan
Sales amount for Jan is 14,317.00.
Command: totals
Yearly total: 29,610.00
Monthly average: 14,805.00
Command: view
Three-letter Month: july
Invalid three-letter month.
Command: exit
Bye!
Specifications
The program should use a list to store the sales data for each month with the three-letter abbreviation for the month…
arrow_forward
5-Redo Command:This command will
undo the effects of the last
command. You can reach this
command by going to the Quick
Access toolbar and clicking the Undo
button. If you want to undo several
commands, click the small arrow at
the right. You will see a list of the
commands; select the group :and
undo them Also, you can type u at
the command window (don't type
undo, because it has a different
meaning), or press Ctrl + Z at the
keyboard.
TURE
FULSE
arrow_forward
Develop an instantiable class for an IT Support Application in java. Display a menu for selecting the following:
1.Enter your request
2. Display last request
3. Highest priority request
4. Lowest priority request
5. Average Request priority
6.Exit Application
Be able to select these options and input using scanner class only. Arrays not allowed.
arrow_forward
WebConnect 3270
Sphinx of Hatsheps...
- Question Completion Status:
Based on this information, complete the code for numbered region 3.
QUESTION 10
("Enter a number:"))
Fill each of the numbered areas so that the code you create asks the user to enter a whole number using the keyboard and
store that number into variable x.
QUESTION 11
if(x<0 or x10):
print("Invalid number! ")
The piece of code above checks whether x is between 0 and 10, If not it prints a text.
Click
arrow_forward
If the sentence is true, write T; if it is wrong, write F; and correct the false sentence. Only five of the
following questions must be answered.
To add a plot to an existing plot, use the get() command
arrow_forward
Just give the correct option no need explanation
arrow_forward
v Question Completion Status:
A Moving to another question will save this response.
Question 25
Which of the following propositions is tautology?
O (p v q)-q
O pv (q-p)
O pv (p-q)
O p-q
A Moving to another question will save this response.
arrow_forward
This type of parameters allows us to omit including the parameter name and simply provide the value and it would work just fine. One example is the -Name parameter in the Get-Command This is why the Get-Command Get-Help cmdlet works the same as the Get-Command -Name Get-Help cmdlet.
Group of answer choices
String Parameter
SwitchParameter
Required Parameter
Positional Parameter
arrow_forward
Create a script file that will prompt the user for his choice, read in the choice, and use the answer as the case expression for a switch construct. Be sure to handle the case of an invalid topic.
Case 1: Complex NumberCase 2: MatricesCase 3: Laplace TransformCase 4: Fourier TransformCase 5: Advanced Differential Equations
arrow_forward
Home
Take Test: Midterm-2
Warnings appear when half the time, 5 minutes, 1 minute, and 30 seconds remain.
Multiple Attempts
Not allowed. This test can only be taken once.
Force Completion
This test can be saved and resumed at any point until time has expired. The timer will continue to run if you
leave the test.
Remaining Time: 55 minutes, 21 seconds.
Question Completion Status:
AMoving to another question will save this response.
«< Question 2 of 13
Question 2
8 points
Save Answer
What is the result of (1- 2) in 3-bits twos complement. Type the
answer in binary.
A Moving to another questlon will save this response.
« Questlon 2 of 13 »
arrow_forward
Besides there is an options menu that includes two options in the main activity. These are: 1. New Student 2. Exit When you click on the “New Student” option, a “New Activity” opens and the teacher enters the Student ID, Visa, Final Number, Phone Number and clicks the Add button. Thus, the student's information is recorded in the database. In addition, the grade point average is calculated by taking 40% of the student visa and 60% of the final. Both the grade point average and this student's phone number are sent to MainActivity. When registration is complete, the main activity is updated to include the list of the currently added student. In addition, if the average score coming from the main activity to NewActivity is equal to or greater than 50, an SMS is sent directly to the student's phone number indicating that he or she has passed the course. For this process, necessary permissions are obtained by following the permission procedure. If the student's average is less than…
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:9781337569798
Author:ECKERT
Publisher:CENGAGE L
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning
Related Questions
- Course Title : Operating SystemQuestion : How you will create new user using terminal in Ubuntu? Add screenshots of all steps for new user creation including terminal and Login page in Answer sheet. Every student has to create new user as of his/her arid number for example (18-arid-2929). Note: screenshots are mandatory.arrow_forwardFill in the blank question- Only answer without explanation Q. The ____ command is used with PID.arrow_forwardThe below form will represent the main form from which the user will navigate to the other forms. Meaning each button should be linked to the appropriate form. E.g. If button Manage Addresses is clicked the form managed addresses should be displayed. The Exit button should successfully terminate the program. Create a void method for each button and name them as follow: LinkToAddresses (), LinkToCustomers (), LinkToDrivers (), LinkToStatus (), and LinkToFreight (). The methods should be called under the appropriate button. For the exit button create a void method named AppExit () this should terminate the program.arrow_forward
- 2. Repeat the display of a menu of 4 services, perform the required task according to the user’s choice and asks the user whether he/she wants to repeat or no. You need to choose one service from each category (‘A’,’B’,’C’,’D’)a. A. Display the total number of employees that were infectedb. B. Display the number of employees above certain age that were infectedc. B. Display the number of employees under certain age that were infectedd. B. Display the number of employees that have expired their leavese. A. Display the average age of infected personf. C. Display the age of the youngest person g. C. Display the age of the oldest person h. D. Search an employee by code and display all his/her detailsi. D. Search an employee by name and display all his/her details Use Java programarrow_forwardAssignment3A: Diagnosis Checker: For years, patients have used websites like WebMD to pre-diagnosis themselves with a variety of illnesses before meeting with a doctor. As you might imagine, medical professionals believe this can lead to incorrect treatment. To combat this, a local hospital has asked you to develop a program that will help patients check if their symptoms match the online diagnosis. You will prompt the user to enter their illness. Based on this input, you will ask them if they are experiencing certain symptoms. Depending on their answer, your program will indicate if the Internet diagnosis is likely to be correct or not. The decision chart is shown below: • ● ● HGPS 0 Do they have brittle bones? If no, it is likely not HGPS ■ If yes, it is possibly HGPS Bokter Syndrome O Do they have a Vitamin C deficiency? If no, it is likely not Bokter Syndrome If yes, are they a sailor? . . Lupus . If no, it is likely not Bokter Syndrome If yes, it is possibly Bokter Syndromearrow_forward1. Come and Get Sum by CodeChum Admin You think you're smart huh? I bet you cant add even add two numbers together! Prove me wrong and I might just back off. Input 1. The first integer Constraints This is a whole number. 2. The second integer Constraints This is a whole number. Output The first line will contain a message prompt to input the first integer. The second line will contain a message prompt to input the second integer. The last line will contain the whole equation with the sum. Enter the first - number: 1 Enter the second- number: 2 1.+23arrow_forward
- Case study: You are required to develop an application to keep track of meeting minutes. Every time a formal meeting takes place, corresponding meeting minutes should be generated. Each meeting has a list of participants, which the system receives from the caller of the meeting. The caller also assigns the role of meeting secretary to one of the participants. The contents of the minutes are usually text, however, images and audio clips can also be attached to the minutes. The number of attachments is not limited. For each meeting, minutes can only be created by the assigned meeting secretary (for that meeting), who is also responsible for uploading the attachments. Minutes can be created incrementally. Once the secretary is satisfied with his/her draft, the minutes can be broadcast to the participants, who can then make comments on the minutes. Participants can make comments on the minutes as a whole. These are global comments. They can also select particular sections of the minutes…arrow_forwardFill in the blank question- Only answer without explanation Q. The ____ operator puts command to the background and releases the terminal for other task.arrow_forwardCreate Use Case Diagram for the WhatsApp application . Make sure to follow rules in creating Use Case Diagram.arrow_forward
- Create a program that allows you to view and edit the sales amounts for each month of the current year. Example of how the program should look: Console Monthly Sales program COMMAND MENU add - Add sales for a specified month view - View sales for specified month edit - Edit sales for specified month totals - View sales summary for the year exit - Exit program Command: add Three-letter Month: jan Sales Amount: 10317 Sales amount for Jan is 10,317.00. Command: add Three-letter Month: feb Sales Amount: 15293 Sales amount for Jan is 15,293.00. Command: view Three-letter Month: jan Sales Amount: 14317 Sales amount for Jan is 14,317.00. Command: edit Three-letter Month: jan Sales amount for Jan is 14,317.00. Command: totals Yearly total: 29,610.00 Monthly average: 14,805.00 Command: view Three-letter Month: july Invalid three-letter month. Command: exit Bye! Requirements for the program: The program should use a list to store the sales…arrow_forwardCreate a program that allows you to view and edit the sales amounts for each month of the current year. Console Monthly Sales program COMMAND MENU add - Add sales for specified month view - View sales for specified month edit - Edit sales for specified month totals - View sales summary for year exit - Exit program Command: add Three-letter Month: jan Sales Amount: 10317 Sales amount for Jan is 10,317.00. Command: add Three-letter Month: feb Sales Amount: 15293 Sales amount for Jan is 15,293.00. Command: view Three-letter Month: jan Sales Amount: 14317 Sales amount for Jan is 14,317.00. Command: edit Three-letter Month: jan Sales amount for Jan is 14,317.00. Command: totals Yearly total: 29,610.00 Monthly average: 14,805.00 Command: view Three-letter Month: july Invalid three-letter month. Command: exit Bye! Specifications The program should use a list to store the sales data for each month with the three-letter abbreviation for the month…arrow_forwardIn C language, please include notes as well explain each line Each member the team will write the code for one of the following customized commands: 1. shell*: the environment that will execute the rest of the commands. the shell won’t terminate unless the exit command gets executed. The shell displays a different command prompt (i.e. something other than $ and >).arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTLINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.Computer ScienceISBN:9781337569798Author:ECKERTPublisher:CENGAGE L
- New Perspectives on HTML5, CSS3, and JavaScriptComputer ScienceISBN:9781305503922Author:Patrick M. CareyPublisher:Cengage Learning
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:9781337569798
Author:ECKERT
Publisher:CENGAGE L
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning