Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Windows-CPP-und-C ► ««« »»»

Difference between script and program?


The main difference is that a script is interpreted while a program is executed! 



Contents:

1.) ... script vs. program
2.) ... in detail and technically speaking: script and program!



1.) Script vs. program

The script is interpreted on the respective platform shortly before execution by the script interpreter and then executed. The program is an EXE executable file and is precompiled by the source code owner for the respective operating system/platform. Most programs are only partially cross-platform  , whereas this is often the case with scripts because they become a type of program shortly before execution by the interpreter! 

2.) Detailed and technical script and program!

So technically a script is interpreted while a program is compiled, but this is actually not their main difference. There is another small but more important difference! The main purpose of a script written in a scripting language like PHP, JavaScript, Visual Basic, .... is to control another application. So you can say that in a way scripts control the web server, JavaScript controls the web browser and Basic scripts control a Microsoft Office application like MS Word or MS Excel.

On the other hand, a program written in a programming language such as Java, C++, ... runs independently of any other application. A program is compiled into a separate set of machine language instructions, which can then be executed by the user as a standalone at any time.

In summary:


A script and a program are two terms that are often confused with each other, as they both represent a set of instructions or commands that are executed by a computer. However, there are some important differences between them:


Script:

A script is generally a text file that contains a sequence of commands or instructions that are executed by an interpreter or runtime environment.
Scripts are typically written in a scripting language, which has a higher level of abstraction and is often easier to read and write.
Scripts usually do not require compilation, but are interpreted in real time.

Program:

A program is a complete application software consisting of one or more executable files.

Programs are written in a programming language, which typically has a lower level of abstraction. They must be compiled or converted to executable machine code before execution.

Programs are often more complex, involving a variety of functions, libraries, and modules.
To summarize, scripts are often smaller, simpler text files written in scripting languages ​​and interpreted directly, while programs are more comprehensive software applications written in programming languages ​​that must be compiled.

Examples of scripting languages ​​include Python, JavaScript, and Bash, while programming languages ​​such as C, Java, and C# are examples of developing programs.

In computer science, a script is a computer program written in a scripting language. Scripting languages ​​are a subset of programming languages ​​typically used to automate tasks or link multiple programs together.

Here are some differences between scripts and programs:

Size:
Scripts are typically smaller than programs because they do not need to be translated into machine code.
Complexity:
Scripts are typically less complex than programs because they are designed to perform simple tasks.
Purpose:
Scripts are often used to automate tasks or link multiple programs together.
Programs are used for a wider range of tasks, including application development, data analysis, and system administration.


Scripts and programs are computer programs used to perform tasks. The main difference between them is the way the code is executed. Scripts are interpreted at runtime by an interpreter, while programs are translated into machine code by a compiler and then executed by the processor.



FAQ 28: Updated on: 4 September 2024 10:43 Windows
Windows-CPP-und-C

BSCMAKE: error BK1506 : File ... cannot be opened: No such file or directory!


The error message BSCMAKE: error BK1506 : File cannot be opened: No such file or directory Contents: 1. The error message BSCMAKE 2. Other
Windows-CPP-und-C

What is Visual Studio Express?


Visual Studio Express is a free development environment from Microsoft with which you can develop C++ applications Contents: 1. Visual Studio Free
Windows-CPP-und-C

Difference between time(0) and clock() in CPP and C?


cpp, The main difference between time and clock in CPP and C is what is counted For time it is seconds from 1.1.1970 and for clock it is milliseconds since program
Windows-CPP-und-C

3D C++ C shadows in OpenGL and DirectX!


One of the most complex tasks in 3D programming in C++ C is shadows in OpenGL and DirectX Shadows are often confused with shading during development, although
Windows-CPP-und-C

WHAT is MFC?


MFC stands for Microsoft Foundation Class Library MFC is intended as a C++ object-oriented library for developing desktop applications for MS Windows.
Windows-CPP-und-C

Differences between GetWindowsDirectory and GetSystemDirectory?


The difference between GetWindowsDirectory and GetSystemDirectory is quickly explained and understood The GetSystemDirectory  and  GetWindowsDirectory  are
Windows-CPP-und-C

Dark theme in Win32 applications with menu and title bar!


It is not that easy to activate and use Dark Theme in Win32 applications with menu and title bar for Windows 11 & 10 Here I have found two open source projects

»»

  My question is not there in the FAQ
Asked questions on this answer:
Keywords: cpp, windows, difference, between, script, program, main, that, interpreted, while, executed, contents, detail, technically, Questions, Answers, Software




  

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks
  + Security

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + Q-Dir
  + PaintOkay
  + DirPrintOK
  + FontViewOK
  + MeinPlatz
  + DesktopOK
  + IsMyMemoryOK
  + StressTheGPU
  + Brightness.Manager.OK
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Settings | Windows 10 | gc24b | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2025 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu


► For drives, show the letter before the name in the file explorer! ◄
► What do the letters in the Attributes column mean, such as: A, HS, R or RHSA? ◄
► Number of PCs where I can install Windows 12 with one license key? ◄
► Delete Amazon article "last viewed in history"! ◄


This website does not store personal data. However, third-party providers are used to display ads,
which are managed by Google and comply with the IAB Transparency and Consent Framework (IAB-TCF).
The CMP ID is 300 and can be individually customized at the bottom of the page.
more Infos & Privacy Policy

....