1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
bixtya [17]
3 years ago
10

Q: If a program is invoked with "python program.py -r input.dat output.dat", what are the elements of argv?

Computers and Technology
1 answer:
Hunter-Best [27]3 years ago
7 0

Answer:

C

Explanation:

C.argv[0]: "program.py"

argv[1]: "-r"

argv[2]: "input.dat"

argv[3]: "output.dat"

is the right answer. as 0 argument is always the script. We can find this by importing sys and using the command sys.argv. And like len(sys.argv) will give total number of arguments.  

You might be interested in
your computer running Windows 10 is doing some very strange things with operating system you are fairly certain it is not a hard
AlekseyPX
It might be a virus, when my computer starts going crazy i just bought a fixme stick and they work amazing or trying getting an expert to fix it if it worse
6 0
3 years ago
Read 2 more answers
To be useful for most household applications, DC voltage is?please <br>​
satela [25.4K]

Answer: To be useful for most household applications, DC voltage is passed through a step-down transformer.

Explanation: Voltage coming through AC or DC outlets is typically far too high for most household appliances to handle, so the current is passed through a step-down transformer to reduce the voltage to a usable level.

3 0
3 years ago
The specific gravity of gold is 19.3. Write a MATLAB program that will ask the user to input the mass of a cube of solid gold in
s344n2d4d5 [400]

Answer:

Check the explanation

Explanation:

<em>Cube.m:</em>

mass = input("Enter the mass of cube [kilograms]: ");

if(mass<=0)

disp("Error: Mass must be greater than zero grams")

else

fprintf("The length of one side of cube is %.2f inches",2.7*mass);

end

<em>Output1</em>

octave:2> source ( Cube.m Enter the mass of cube [kilograms]: octave:2>-3 Error: Mass must be greater than zero grams

<em />

7 0
4 years ago
Microsoft created Adobe Photoshop? TRUE FALSE​
kari74 [83]

Answer:

false the creator of adobe photoshop was microsoft adobe photoshop is a popular photo editing software which was developed by a company named as adobe inc.

5 0
3 years ago
Read 2 more answers
I'm trying to self teach myself c# coding language any tips or advice
Kaylis [27]

Answer:

Dont give up lol

Explanation:

8 0
3 years ago
Other questions:
  • 12.
    9·1 answer
  • Select the term being defined. This term is also called live, or hot, which means that a voltage is present and it can cause an
    12·2 answers
  • Only those who perform music professionally can have a true appreciation for music. True False
    10·2 answers
  • What is the most common drive letter where window stores most data and programs. 1,a 2,b 3,c 4,e
    9·1 answer
  • Which of the following statements about arrays are true?
    10·1 answer
  • Which is a good guideline to follow when looking for research material on the Internet?
    10·2 answers
  • Consider a file currently consisting of 100 blocks. Assume that the file control block (and the index block, in the case of inde
    12·1 answer
  • Give your definition of a stored procedure. Based on the Academic Database, identify and describe a scenario where it would be n
    12·1 answer
  • +<br>ii) MnO4 + H2S + H+​
    9·1 answer
  • Which of the following correctly calculates the
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!