COSC2506 Practical Test 1
.docx
keyboard_arrow_up
School
Royal Melbourne Institute of Technology *
*We aren’t endorsed by this school
Course
2384
Subject
Computer Science
Date
Apr 27, 2024
Type
docx
Pages
5
Uploaded by MagistrateGrouse3661
Answer Sheet – COSC2506 Practical Test 1 Student Name: Date: 10/08/2023
Task 1 (Q1-Q7 – 7 points)
Copy your answers/outputs
from the terminal here. Q1
student@ubuntu:~$ mkdir s3333333
Q2
student@ubuntu:~$ cd s3333333
student@ubuntu:~/s3333333$ mkdir trial
student@ubuntu:~/s3333333$ mkdir test
Q3
student@ubuntu:~/s3333333$ cd test
student@ubuntu:~/s3333333/test$ touch myfile
student@ubuntu:~/s3333333/test$ touch yourfile
Q4
student@ubuntu:~/s3333333$ cd
student@ubuntu:~$ cd /home/student/s3333333/test
student@ubuntu:~/s3333333/test$
Q5
student@ubuntu:~/s3333333$ cd /home/student/s3333333/test
student@ubuntu:~/s3333333/test$ rm myfile
student@ubuntu:~/s3333333/test$ ls
yourfile
Q6
student@ubuntu:~/s3333333/test$ cd /home/student/s3333333
student@ubuntu:~/s3333333$ rmdir test
student@ubuntu:~/s3333333$ ls
trial
Q7
student@ubuntu:~/s3333333$ echo "Date: 'date+%d/%m/%y'. Time: 'date+%I:%M'"
Date: 'date+%d/%m/%y'. Time: 'date+%I:%M'
Task 2 (Q8-Q9 – 2 points)
Copy your answers/outputs
from the terminal here. student@ubuntu:~/s3333333$ touch file_again
student@ubuntu:~/s3333333$ mkdir dir_again
student@ubuntu:~/s3333333$
Q8
student@ubuntu:~/s3333333$ chmod u=rwx,g=rx,o=r file_again
student@ubuntu:~/s3333333$
Q9
student@ubuntu:~/s3333333$ chmod 754 dir_again
student@ubuntu:~/s3333333$
Task 3 (Q10-Q11 – 2 points)
Copy your answers/outputs
from the terminal here. Q10
student@ubuntu:~/s3333333$ echo "Today is $(date '+%A'). It is $(date '+%j')th day of the year."
Today is Thursday. It is 222th day of the year.
Q11
student@ubuntu:~/s3333333$ sed -n '35p' /etc/passwd
usbmux:x:113:46:usbmux daemon,,,:/var/lib/usbmux:/usr/sbin/nologin
Task 4 (Q12-Q14 – 6 points)
Copy your answers/outputs
from the terminal here. Q12
student@ubuntu:~$ ls -a > filesnumber
student@ubuntu:~$ cat filesnumber
.
..
.bash_history
.bash_logout
.bashrc
.cache
.config
.gnupg
.local
.profile
.ssh
.sudo_as_admin_successful
.vboxclient-clipboard.pid
.vboxclient-display-svga-x11.pid
.vboxclient-draganddrop.pid
.vboxclient-seamless.pid
.viminfo
Desktop
Documents
Downloads
Music
Pictures
Public
Templates
Videos
filesnumber
s3333333
task1
task1.new
task1_difference
tut3
two
Q13
student@ubuntu:~$ ls -1A | sort | tr 'a-z' 'A-Z'
.BASH_HISTORY
.BASH_LOGOUT
.BASHRC
.CACHE
.CONFIG
.GNUPG
.LOCAL
.PROFILE
.SSH
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
Write a whole Web page that displays your current schedule in the table format as close to the example below as possible. Insert your name and your actual FALL 2021 schedule
arrow_forward
The InstantRide User Satisfaction team is a core team for InstantRide, and they focus on increasing the customer satisfaction. They want to learn the travel time for each ride in the system. You need to return the USER_ID, and the TRAVEL_TIME column which is calculated using the TIMEDIFF function on the TRAVEL_END_TIME and the TRAVEL_START_TIME.
arrow_forward
The following table shows a list of pets and their owners that is used by a veterinarian service.
P_Name
Type
Breed
DOB
Owner
O_Phone
O_E-mail
Kino
Dog
Std. Poodle
3/27/97
M. Downs
5551236
md@abc.com
Teddy
Cat
Chartraux
4/2/98
M. Downs
1232343
md@abc.com
Filo
Dog
Std. Poodle
2/24/02
R. James
2343454
rj@abc.com
AJ
Dog
Collie Mix
11/12/95
Liz Frier
3456567
liz@abc.com
Cedro
Cat
Unknown
12/10/96
R.James
7865432
rj@abc.com
Woolley
Cat
Unknown
10/2/00
M. Trent
9870678
mt@abc.com
Buster
Dog
Collie
4/4/01
Ronny
4565433
ron@abc.com
a. Describe 4 problems that are likely to occur when using this table.
b. Break the table into two tables in a way that fixes the four problems.
arrow_forward
Sub quiz6_1()
For i = 4 To -1 Step -3
For J = -1 To 1
soln = i * J
Next J
Next i
Cells(2, 2)
= soln
Cells(3, 2) = i * J
%3D
End Sub
For the following section of code, determine what will be written into the spreadsheet in cell B3=
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
Twitter Data:
twitter_url = 'https://raw.githubusercontent.com/Explore-AI/Public-Data/master/Data/twitter_nov_2019.csv'twitter_df = pd.read_csv(twitter_url)twitter_df.head()
Question: Write the Number of Tweets per Day
Write a function which calculates the number of tweets that were posted per day.
Function Specifications:
It should take a pandas dataframe as input.
It should return a new dataframe, grouped by day, with the number of tweets for that day.
The index of the new dataframe should be named Date, and the column of the new dataframe should be 'Tweets', corresponding to the date and number of tweets, respectively.
The date should be formated as yyyy-mm-dd, and should be a datetime object. Hint: look up pd.to_datetime to see how to do this.
arrow_forward
Answer this question please.
arrow_forward
Guest House Paradiso
The Guest House Paradiso used to be a splendid place to stay. But things haven't been updated in a while. Including the way that room bookings are recorded. At the moment
they're recorded in a spreadsheet like this:
Bookings Table
Room
Number
Number of
Nights
Arrival Date
Departure Date
Guest Last Name
Guest Phone Number
Optional Extras
203
Mar 18 2022
Mar 20 2022
Howard
555-2381
bug-free bed
101
Mar 18 2022
Mar 21 2022
3
Gallagher
555-3619
clean towels, hot water
302
Mar 18 2022
Mar 19 2022
1
Mortimer
555-0856
bug-free bed, clean towels
103
Mar 18 2022
Mar 23 2022
5
McQueen
557-2428
hot water
...
203
Mar 20 2022
Mar 23 2022
3
Carraclough
554-8652
clean towels, hot water
Optional Extras
There are three types of 'Optional Extras' available in all rooms, and guests can order any combination of these:
• hot water
• bug-free bed
• clean towels
NOTE: For this scenario we will assume that a guest's phone number never changes and is unique.
arrow_forward
Ten members of Math Club are driving to a math conference in a neighboring state. However, some of
these students have dated in the past, and things are still a little awkward. Each student lists which
other students they refuse to share a car with; these conflicts are recorded in the table below. What is
the fewest number of cars the club needs to make the trip? Do not worry about running out of seats,
just avoid the conflicts.
Student: A B C D
Conflicts: BEJ ADG HJ
BF
E
AI
F
DJ
G H
B CI
I
EHJ
J
ACFI
arrow_forward
yout References Mailings
Review View Help
Grammarly
7. Convert the following numbers from a specific base to another base.
a. 1236 to base 5 (i.e. Convert from base 6 to base 5)
b. 7648 to base 4 __(i.e. Convert from base 8 to base 4)
c. 2345 to base 4
(i.e. Convert from base 6 to base 4)
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
5- The assignment model is a special case of the transportation model in which the number of origin must equal the number of the destination that is the table is a square that is the number of rows and columns must be equal.
Select one:
True
False
6- The points on the network model are referred to as arcs.
Select one:
True
False
arrow_forward
The expression =IF(A1 > 8, 12*A1, 7*A1) is used in a spreadsheet.Find the result if A1 is 5 Find the result if A1 is 9.
arrow_forward
KA
Helge Autoparts sells new and refurbished auto parts exclusively to auto dealers. Helge purchases inventory from distributors at trade conventions. Each time Helge makes a purchase, the company records the suppliers name, address, date, specific items purchased, price paid for each, and the total amount spent. Helge later researches the inventory items to set the customer price. The company assigns an inventory number to each item purchased and records the customer price for each item. Helge buys price tags and display supplies from Alwin Incorporated, a company that sells them at all trade conventions. All inventory and supplies purchases are immediately paid for with cash or with checks from a bank account in Helge's name. All cash received from sales are also deposited to the same bank account. Several times a year Helge rents display space at dealer conventions. A deposit is always required, and the entire fee is due the day the convention starts. Helge records the deposit and…
arrow_forward
Order Number: 5678
Customer Number: 9123
Customer Name: Thomas
Customer Address: 51 Samora Machel Street
City- Country: Durban, South Africa
ProductNo
A 123
B 234
C 345
Description
A4 Paper
Order Form
Toner
Staples
Normal Form
Quantity
100
200
1000
Date: 25/12/2020
Unit Price
R1.00
R150.00
R5.00
1.1 Using normalization principles, depict the ONF, 1NF, 2nd NF and 3rd NF of the data
above.
Example:
Below is an example of the table information converted to zero normal form, read
chapter five in your module guide and convert the table to first, second and third normal
form.
The format of your answer must be as depicted below:
• ORDER( order number, customer number, name, address, order date(product number,
description, quantity, unit price))
arrow_forward
Listings 11-10 and 11-11 represent while, do-while and for loops
Listing11-06.ph
Listing11-05.php
1k?php
2
3 $count
4 while ($count
11
Listing11-05.php
Listing11-06.php
Listing11-
1k?php
2
3 for ($count=0; $count
You can research on loops in PHP further: https://www.w3schools.com/php/php_looping.asp
Print to the browser numbers from 25 to 35 using each of the following loops: while, do-while and
for loops, provide source code and the output.
arrow_forward
Question Sum
implify the following expression by using the prope (x^(3))^(6)(x^(6))^(3)
Full explain this question and text typing work only We should answer our question within 2 hours takes more time then we will reduce Rating Dont ignore this line.
arrow_forward
asuodsa SIUn aAes IIIM Uonsanb aoue on 8UIAO
Question 25
The Karnaugh map below represents the expression, X ACD + AB(CD + BC).
CD CDCD CD
AB 0
AB
1.
1
AB
0.
0 0
AB
0 00
True
False
A Moving to another question will save this response.
arrow_forward
Richardson Ski Racing (RSR) sells equipment needed for downhill ski racing. One of RSR's products is fencing used on downhill courses. The fence product comes in 150-foot rolls and sells for $215 per roll. However, RSR offers quantity
discounts. The following table shows the price per roll depending on order size:
Quantity Ordered
To
Price per Roll
From
1
70
$215
71
140
$195
141
280
$175
281
and up
$155
Click on the datafile logo to reference the data.
DATA file
(a) Use the VLOOKUP function with the preceding pricing table to determine the total revenue from these orders.
(b) Use the COUNTIF function to determine the number of orders in each price bin.
From
Number of
To
Price per Roll
70
$215
!!!
140
$195
280
$175
and up
$155
1
71
141
281
Orders
172
arrow_forward
A elearn.iu.edu.jo/mod/quiz/attempt.php?attempt=145615&cmid%3D103726&page=3
البوابة التعليمية الإلكترونية لجامعة الإسراء ISRA iLearn
Home
My courses
Requirements Engineering
Requirements Engineer
Quizzes & Exams
Question 16
Functional requirements capture the intended behavior of the system.
Not yet
answered
Select one:
Marked out of
O a. False
V Flag
O b. True
question
Question 17
Object-oriented domain analysis is concerned with the identification and specification of
Dlot unt
within an annlication domain
arrow_forward
1- Each Student Creates the F1 & F2 Equation With Their Own Number
For example: Student Number: 249176126876
FI=2X^5+4X^4+9X^3+1X^2+7X^1+6X^0
F2 =1X^5+2X^4+6X^3+8X^2+7X^1+6X^0
For two equations:
1. Perform addition and the result (T) is variable.
2. Subtract and the result (C) is variable.
3. If: X = linspace (-5, 5, 100), plot the relationship between X and T.
4. Do the multiplication and the result (V) is a variable.
5. Divide and the result (A, B) is variable.
6. Introduce (T/F1) as a transfer function in MATLAB.
2- Program the desired operation using MATLAB commands for the given transfer function.
write as:
H1/H2=2X^5+9X^3+6/X^6+2X^4+8X^2+7X
For X=linspace (1, 5, 10), if H1>H2,
Draw the relationship between X and H1
or?
Draw the relationship between X and H2
Note: Student number to be used in the solution; 207106106015
To be solved using the Matlap program
arrow_forward
Instagram
You
All Media
12/24/21, 4:18 PM
Your company is developing a ticketing system for a new
amusement park called Onigiri Land. The Onigiri Land tickets are
categorised by age group category shown in Table 1 below. Those
with privilege card (OLSP) has different tickets price as shown in
Table 2
Table 1: Onigiri Land Age Category
Category
Age Group
Babies
0 to 3
Child
4 to 12 years old
Teen
13 to 20 years old
Adult
21 to 59 years old
Senior Citizen
60 years old and above
82F
arrow_forward
Section: FactThyroid function is measured using a factor called TSH, which stands for thyroid-stimulatinghormone. A TSH test is a blood test that measures this hormone. TSH normal values are 0.5 to 5.0mIU/L. If TSH is over 5.0 thyroid is underactive. On the other hand, if TSH is less than 0.5 thyroid isoveractive.
arrow_forward
CLASS
OF
2019
Welcome MySAIL Oakland Un X
Th Course: CSI-1420-43702.201940 X
https://moodle.oakland.edu/plug X
DG Difference between two given tin X
F C
moodle.oakland.edu/pluginfile.php/5600130/mod assign/intro/Homework02.txt?time-1570288894866
Program 3
Program: mitime.c
Executable: mitime.o
Write a program that reads two times in military format (e.g. 0900, 1730), and prints the number of hours and minutes between the two times.
Assume that the hours and minutes of the second time are greater than the first time.
See an example below. User input is underlined (your program does not have to underline the user input).
Please enter the first time: 0900
Please enter the second time: 1730
8 hours 30 minutes
arrow_forward
why below code is not working?
arrow_forward
Correct and detailed answer will be Upvoted else downvoted. Thank you!
arrow_forward
Write a servlet to display a table that contains factorials for thenumbers from 0 to 10, as shown in Figure .
arrow_forward
Fill in the blank question- Only answer without explanation
Q. The ____ command is used with PID.
arrow_forward
Official Miami Dade College Hon x
/ Content
Take Test: Exam 2- CGS1540C-2 x
Ô https://mdc.blackboard.com/webapps/assessment/take/launch.jsp?course assessment_id= 818475 1&course_id=_207342_
O Imported from Inte.
Remaining Time: 1 hour, 48 minutes, 41 seconds.
* Question Completion Status:
QUESTION 2
During class, I showed you how application programs (e.g., software used by nurses in hospitals) written in different general-purpose programming
languages can use API to send SQL code to SQL servers. Which one of the following was an example of a programming language that I used to illustrate
that idea?
O Cookies
O PHP
O Front-end scripting
O HTML
QUESTION 3
Which of the following statements regarding MYSQL is FALSE?
O It has free and open-source versions
O It is most popular with web applications
O It is owned by Oracle
O It implements SQL in a non-relational structure
Click Save and Submit to save and submit. Click Save All Answers to save all answers.
P Type here to search
a * S O
77°F…
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Related Questions
- Write a whole Web page that displays your current schedule in the table format as close to the example below as possible. Insert your name and your actual FALL 2021 schedulearrow_forwardThe InstantRide User Satisfaction team is a core team for InstantRide, and they focus on increasing the customer satisfaction. They want to learn the travel time for each ride in the system. You need to return the USER_ID, and the TRAVEL_TIME column which is calculated using the TIMEDIFF function on the TRAVEL_END_TIME and the TRAVEL_START_TIME.arrow_forwardThe following table shows a list of pets and their owners that is used by a veterinarian service. P_Name Type Breed DOB Owner O_Phone O_E-mail Kino Dog Std. Poodle 3/27/97 M. Downs 5551236 md@abc.com Teddy Cat Chartraux 4/2/98 M. Downs 1232343 md@abc.com Filo Dog Std. Poodle 2/24/02 R. James 2343454 rj@abc.com AJ Dog Collie Mix 11/12/95 Liz Frier 3456567 liz@abc.com Cedro Cat Unknown 12/10/96 R.James 7865432 rj@abc.com Woolley Cat Unknown 10/2/00 M. Trent 9870678 mt@abc.com Buster Dog Collie 4/4/01 Ronny 4565433 ron@abc.com a. Describe 4 problems that are likely to occur when using this table. b. Break the table into two tables in a way that fixes the four problems.arrow_forward
- Sub quiz6_1() For i = 4 To -1 Step -3 For J = -1 To 1 soln = i * J Next J Next i Cells(2, 2) = soln Cells(3, 2) = i * J %3D End Sub For the following section of code, determine what will be written into the spreadsheet in cell B3=arrow_forwardv 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_forwardTwitter Data: twitter_url = 'https://raw.githubusercontent.com/Explore-AI/Public-Data/master/Data/twitter_nov_2019.csv'twitter_df = pd.read_csv(twitter_url)twitter_df.head() Question: Write the Number of Tweets per Day Write a function which calculates the number of tweets that were posted per day. Function Specifications: It should take a pandas dataframe as input. It should return a new dataframe, grouped by day, with the number of tweets for that day. The index of the new dataframe should be named Date, and the column of the new dataframe should be 'Tweets', corresponding to the date and number of tweets, respectively. The date should be formated as yyyy-mm-dd, and should be a datetime object. Hint: look up pd.to_datetime to see how to do this.arrow_forward
- Answer this question please.arrow_forwardGuest House Paradiso The Guest House Paradiso used to be a splendid place to stay. But things haven't been updated in a while. Including the way that room bookings are recorded. At the moment they're recorded in a spreadsheet like this: Bookings Table Room Number Number of Nights Arrival Date Departure Date Guest Last Name Guest Phone Number Optional Extras 203 Mar 18 2022 Mar 20 2022 Howard 555-2381 bug-free bed 101 Mar 18 2022 Mar 21 2022 3 Gallagher 555-3619 clean towels, hot water 302 Mar 18 2022 Mar 19 2022 1 Mortimer 555-0856 bug-free bed, clean towels 103 Mar 18 2022 Mar 23 2022 5 McQueen 557-2428 hot water ... 203 Mar 20 2022 Mar 23 2022 3 Carraclough 554-8652 clean towels, hot water Optional Extras There are three types of 'Optional Extras' available in all rooms, and guests can order any combination of these: • hot water • bug-free bed • clean towels NOTE: For this scenario we will assume that a guest's phone number never changes and is unique.arrow_forwardTen members of Math Club are driving to a math conference in a neighboring state. However, some of these students have dated in the past, and things are still a little awkward. Each student lists which other students they refuse to share a car with; these conflicts are recorded in the table below. What is the fewest number of cars the club needs to make the trip? Do not worry about running out of seats, just avoid the conflicts. Student: A B C D Conflicts: BEJ ADG HJ BF E AI F DJ G H B CI I EHJ J ACFIarrow_forward
- yout References Mailings Review View Help Grammarly 7. Convert the following numbers from a specific base to another base. a. 1236 to base 5 (i.e. Convert from base 6 to base 5) b. 7648 to base 4 __(i.e. Convert from base 8 to base 4) c. 2345 to base 4 (i.e. Convert from base 6 to base 4)arrow_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_forward5- The assignment model is a special case of the transportation model in which the number of origin must equal the number of the destination that is the table is a square that is the number of rows and columns must be equal. Select one: True False 6- The points on the network model are referred to as arcs. Select one: True Falsearrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage