Notice: Undefined offset: 14687412 in /var/www/html/qa-external/qa-external-users.php on line 744
what is program - OnlineGDB Q&A
Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

what is program

+13 votes
asked Feb 11, 2025 by Muhammad Adnan (220 points)

5 Answers

+1 vote
answered Feb 11, 2025 by Peter Minarik (101,340 points)
edited Feb 12, 2025 by Peter Minarik

If I'd have to define it I'd say a program consists of the instructions of what to do and the data strictly associated with these instructions.

A simple example would be a program that calculates the sum of two numbers. The instructions consist of the addition and the data are the two numbers that you want to add together.

A more complex program would be a video game, where there are instructions on how to display a model of a car, and the data is the model, the texture, and the sound of the car. Another set of instructions would be how to control the car. I'd argue that the data is part of the program as you could play the game without the data part missing.

There are programs that work on external data, e.g. word processors, sound/video editors, 3d modeling tools. The data they work on is not considered part of the program.

The line of what belongs to the program could be a bit blurry. :)

Wikipedia's computer program definition can be found here.

+3 votes
answered Feb 12, 2025 by (240 points)
set of instructions which computer executes to do certain tasks

its like cooking

ingredients=data/input

cooking=processing

dish=output
0 votes
answered Feb 14, 2025 by Adama Leila Yasmine Grace (200 points)
A program is a set of instructions that a computer can execute in order to perform a specific task or set of tasks. It's essentially a list of instructions that the computer's processor cann understand and carry out
+1 vote
answered Feb 15, 2025 by Prithwiraj Guchhait (160 points)

A set of instruction which human gives to computer through specific language(for example- c, c++, python, java, etc.) to do some function.

0 votes
answered Feb 17, 2025 by Alan Hurdle (140 points)
A program is a form of math (Algebra) within brackets perform tasks from the ASCII codes (That is set binary numbers) in which they invert into a decoder. and turn into a seven-pin logic gates to operate pixels.

I might be far fetch, but if you grab the led strips and made a screen then form there you make a coder reader and by learning a little bit of electronics the pin and gateways you run programs. the old 80's video games. fun and simple. Programs created files to execute a process of files at once or in sequence or can be at the same time a program.

thank-you for allowing me access. I am all over the place in my studies and trying to get organized, and my goal is to pick in with direction to get credentials behind hoping to work in the to create an income to pay for my credentials. I like your online compiler thank-you    Alan Hurdle Jr.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...