What is the best definition of a script?
- It’s an error message generated by the interpreter
- It’s an error message generated by the compiler
- It’s a text file that contains instructions which make up a Python program
- It’s a text file that contains sequences of zeroes and ones
Explanation & Hint:
The best definition of a script among the options you provided is: It’s a text file that contains sequences of commands which make up a Python program. A script generally refers to a file containing a sequence of commands written in a scripting language like Python. These commands are executed by an interpreter to perform specific tasks. This description captures the essence of what a script is in the context of programming. |