60 sec. = 1 min.
3,600 sec = 1 hr.
(60 sec x 60 minutes) 86,400 sec= 24 hr.
(3,600 x 24) Given : 16,000 (bytes per seconds, for mp3 )
86,400 X 16,000 = 1,382,400,000 bytes for 24 hrs.
1,382,400,000 = 1,382.4 mega bytes (Mb.) for 24 hrs of music
Looking for how many days are in 1,000,000 Mb.
1,000,000 / 1,382.4 = 723.379629 Days worth of music.
Answer:
C) Exit all programs and shut down the compute
Explanation:
Theft or vandalism through to natural disasters are physical threats. Non-physical threats target the software and data on the computer systems, Like hackers or just straight up viruses. Also, untrustworthy apps or games can give your computer viruses as well.
Answer:
FileOutputStream out = new FileOutputStream("ObjectData.dat");
ObjectOutputStream ostream = new ObjectOutputStream(out);
ostream.writeObject(r);
Explanation:
For object serialization, we can use the writeObject method of java.io.ObjectOutputStream class.
The complete code fragment is as follows:
import java.io.*;
class Demo{
public static void main(String args[]){
try{
r = <Reference to Object to be serialized> ;
FileOutputStream out = new FileOutputStream("ObjectData.dat");
ObjectOutputStream ostream = new ObjectOutputStream(out);
ostream.writeObject(r);
ostream.close();
} catch(Exception e){
e.printStackTrace();
}
}
}
Answer:
num_guesses = int(input())
user_guesses = []
for i in range(num_guesses):
x = int(input())
user_guesses.append(x)
print(user_guesses)
Explanation:
This solution is provided in Python
This line prompts the user for a number of guesses
num_guesses = int(input())
This line initializes an empty list
user_guesses = []
This loop lets user input each guess
for i in range(num_guesses):
This line takes user input for each guess
x = int(input())
This appends the input to a list
user_guesses.append(x)
This prints the user guesses
print(user_guesses)