0% found this document useful (0 votes)
48 views3 pages

Com Sci Act 1

A computer is a programmable device that processes information, while a computer system refers to how hardware and software work together to receive, process, manage, and present information. A program is a set of instructions that enables a computer to perform tasks by being stored in memory. A compiled program translates source code into machine-readable object code during a compilation process, while an interpreted program uses an interpreter to parse and execute source code instructions without compilation.

Uploaded by

Crishelle Yu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views3 pages

Com Sci Act 1

A computer is a programmable device that processes information, while a computer system refers to how hardware and software work together to receive, process, manage, and present information. A program is a set of instructions that enables a computer to perform tasks by being stored in memory. A compiled program translates source code into machine-readable object code during a compilation process, while an interpreted program uses an interpreter to parse and execute source code instructions without compilation.

Uploaded by

Crishelle Yu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

2019

COMPUTER
SCIENCE 2

COMPUTER
SCIENCE
2

SUBMITTED BY:
Crishelle Phoebe B. Yu
VIII - Sampaguita
COMPUTER SCIENCE II
1. In your own words, discuss the difference between a computer
and a computer system.
A computer is a programmable device that acts as an engine
which is a crucial component that lets the computer system work. A
computer system refers to how a computer actually works by making
its hardware and software work together. It is a collection of operations
that are designed to receive, process, manage and present information
in a meaningful format. Computer Hardware is the collection of
physical parts of a computer system. This includes the computer case,
monitor, keyboard, and mouse. Computer Software is a set of
instructions for a computer to conduct specific operations.
2. What is a program and what is its role in computing?
A program is a plan or instructions for problem-solving using a
computer. A program’s role is to store in the memory of a computer
enable the computer to be able to conduct variety of tasks. A computer
program is made by a programmer in a programming language such
as C, C++, Python etc. From the program in its human-readable form of
source code, a compiler or assembler can derive machine code—a form
consisting of instructions that the computer can directly execute. A
computer program may also be performed with the help of an
interpreter.
3. Discuss the difference between a compiled program and an
interpreted program.
The difference between an interpreted and a compiled language
lies in the result of the process of interpreting or compiling. An
interpreter produces a result from a program, while a compiler
produces a program written in assembly language. The assembler of
architecture then turns the resulting program into binary code.
Assembly language varies for each individual computer, depending
upon its architecture.
A compiled program is not human readable, but instead is in an
architecture-specific machine language. Creating a compiled program
requires several steps. First, the programmer, using a development tool
or even a simple text editor, writes the source code in a chosen
computer language. If the program is complex, pieces of it may be
spread across several files. The programmer then compiles the
program, sorting and linking the modules and translating it all into
machine code that the computer understands.
In an interpreted program, on the other hand, the source code
typically is the program. Programs of this type (often known as scripts)
require an interpreter, which parses the commands in the program and
then executes them. Some interpreters, such as the Unix shells (sh, csh,
ksh, etc.), read and then immediately execute each command, while
others, such as Perl, analyze the entire script before sending the
corresponding machine language instructions. The advantage of a
script is that it is very portable.

You might also like