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
Free_Kalibri [48]
3 years ago
7

A function named function1 is defined in a module named module1. Suppose function1 has no parameter. Which of the following Pyth

on program fragments will successfully call function1 from another module?A. import module1module1.function1()B. from module1 import function1function1()C. both (A) and (B)D. none of the above
Computers and Technology
1 answer:
Oduvanchick [21]3 years ago
7 0

Answer:

Option C i.e., both A and B is the correct option to the following question.

Explanation:

Because in the following statement which is for the Python Programming Language, they can define the function i.e., "function1" without any argument and they can call that function with the help of another module then, they can call that function by using both methods. So that's why the following option is correct.

You might be interested in
Given a PrintWriter reference variable named output that references a PrintWriter object, write a statement that writes the stri
Nadya [2.5K]

Answer:

A PrintWriter reference variable named output that references a PrintWriter object is as follows:

//PrintWriter output = new PrintWriter(outfile);

PrintWriter output = new PrintWriter("output.txt");

The statement that writes the string "Hello World" to the file output is as follows:

//output.print(message)

output.print("Hello World");

Explanation:

4 0
4 years ago
What does atx stand for?
marta [7]
Advanced technology extended
3 0
3 years ago
Read 2 more answers
What is similar software engineering, Hardware engineer, Network Architect, and Web developer?
Oliga [24]

I Am Pretty Sure The Answer Is - "B"

Hope This Help's

5 0
3 years ago
What is the result of a network technician issuing the command ip dhcp excluded-address 10. 0. 15. 1 10. 0. 15. 15 on a cisco ro
Hunter-Best [27]
The answer to this question is 83774838473773
3 0
2 years ago
What statement is used to close a loop started with a for statement?
Zigmanuir [339]
I believe you could use a statement like "the end" but if I'm wrong could you explain please?
6 0
4 years ago
Other questions:
  • This operating system was used by individual computers and required users to type commands.
    7·2 answers
  • Why when i create a powerpoint on word it doesn't open properly in other programmes
    5·1 answer
  • Which of these tasks can be accomplished when the drop-down menu of the Bullets icon is clicked?
    14·1 answer
  • What is the maximum duration of daily scrum meetings A:15minsB:45minsC10mins:30mins
    7·2 answers
  • What is a secondary storage medium that uses magnetic techniques to store and retrieve data on disks or tapes coated with magnet
    6·1 answer
  • _____ is a method of computing that delivers secure, private, and reliable computing experiences based on sound business practic
    7·1 answer
  • Stay at least _____ behind the vehicle ahead of you at all times.
    12·2 answers
  • What is the maximum number of guesses it will take to find a number <br> between 1 and 64?
    11·1 answer
  • Why do we need to connect computers"​
    11·1 answer
  • What would the theoretical variance (square of the standard deviation) of the following random values be? rand(Normal(80, 10), 2
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!