SlideShare a Scribd company logo
Concisely describe the following terms 40% 1. Source code 2. Object code 3. Compiler 4.
Algorithm 5. Byte (used for what purpose) 6. Nano second or ns (used for what purpose) 7.
System program (provide two examples) 8. Application program (provide two examples) 9.
Preprocessing directive 10. ASCII
Solution
Answers:
1.
A programmer writes a program in a particular programming language (ex : c , c++ ,java).This
form of the program is called the source code. it can be read and easily understood by a human
being.
For example : Source code for Hello world program is:
#include
void main()
{
printf(“Hello World”);
}
2.
An interpreter or a complier translates source code into executable machine code. This machine
code is called as the object code.
Complier translates source code into object code. Object code contains instructions to be
executed by the computer.
3.
A complier is a program that translates a source program or source code written in particular
programming language ( such as c , c++ or java ) into machine language (code).
Example : Turbo c compiler.
4.
Step –by- step instructions of a program is called is an algorithm.
5.
1 byte = 8 bits.
A byte is a unit of measurement used to measure the data.
Each byte represents a character.
6.
A nano second or ns is a unit of time representing 10-9 or 1 billionth of a second. computer
memory speed is represented in nano seconds.
7.
It is a type of computer program that is designed to run a computer’s hardware and application
programs.
Examples are :
OS (operating system)
BIOS
Boot program.
8.
Application program is a software program that runs on computer.
Examples are word processors, web browsers.
9.
Preprocessor directives are invoked by the complier to process some programs before
compilation.
Preprocessor directives are lines included in a program that begin with the character #.
10.
ASCII: American Standard Code for Information Interchange)
It is the most common format for text files in computers and on the internet.
Short Answers:
1.
Source code
|
Complier
| Assembly code
Assembler
Libraries | Object code
Link Editor
|
Executable code
2.
a)
Memory unit (storage)
ALU (Arithmetic and Logical unit)
CU (Control Unit)
b)
Storage:
All the data to be processed and the instruction required for processing.
Intermediate results of processing.
Final results of processing before these results are released to an output device.
ALU (Arithmetic and Logical unit):
It performs all the arithmetic operations (like addition, subtraction etc) and logical operations.
CU (Control Unit):
The control unit directs and controls the activities of the internal and external devices.
3.
Fetch the instruction
Decode the instruction
Read the effective address
Execute the instruction
In executing the instruction Arithmetic and Logical unit (ALU) performs mathematical or logical
operations .ALU sends a condition signal back to the control unit (CU). The result generated by
the operation is stored in the main memory or sent to output device. Based on the Arithmetic and
Logical unit feedback, the program counter (PC) updated to a different address from which the
next instruction will be fetched.
4.
Easy to learn.
Easy to maintain.
Easy to read and write.
A program written in a high-level language can be translated into many machine languages and
can run on any computer for which there exists an appropriate translator. i.e the language is
independent of the machine on which it is used.
Examples are c , c++ etc.

More Related Content

PPTX
Whole c++ lectures ITM1 Th
PPTX
Computer and programing basics.pptx
PPT
CISY 105 Chapter 1
PPT
Introduction
PPT
C PLUS PLUS FOR BS ELECTRICAL 2ND SEMSTERLecture01.ppt
PPT
Lecture01
PPTX
Chapter 1 Introduction to C .pptx
PPT
A basic introduction to compiler design.ppt
Whole c++ lectures ITM1 Th
Computer and programing basics.pptx
CISY 105 Chapter 1
Introduction
C PLUS PLUS FOR BS ELECTRICAL 2ND SEMSTERLecture01.ppt
Lecture01
Chapter 1 Introduction to C .pptx
A basic introduction to compiler design.ppt

Similar to Concisely describe the following terms 40 1. Source code 2. Object c.pdf (20)

PPT
A basic introduction to compiler design.ppt
PPTX
Compiler presentaion
PPTX
Computer Programming In C.pptx
PDF
C progrmming
PDF
6272 cnote
PDF
Embedded C - Lecture 1
PPT
Compiler Construction introduction
PDF
Chapter 1 - Basic concepts of programming.pdf
PDF
SP_Solutions_-Adi.pdf
PDF
SP Solutions -Adi.pdf
PDF
SP_Solutions_-Adi.pdf
PPTX
Bsc cs i pic u-1 introduction to c language
PPTX
embeddedc-lecture1-160404055102.pptx
PPTX
introduction to c language
PDF
Embedded systems designUNIT 4 PART 2.pdf
PPTX
Btech i pic u-1 introduction to c language
PPTX
Mca i pic u-1 introduction to c language
PDF
Examinable Question and answer system programming
PPTX
Diploma ii cfpc u-1 introduction to c language
PPT
My cool new Slideshow!
A basic introduction to compiler design.ppt
Compiler presentaion
Computer Programming In C.pptx
C progrmming
6272 cnote
Embedded C - Lecture 1
Compiler Construction introduction
Chapter 1 - Basic concepts of programming.pdf
SP_Solutions_-Adi.pdf
SP Solutions -Adi.pdf
SP_Solutions_-Adi.pdf
Bsc cs i pic u-1 introduction to c language
embeddedc-lecture1-160404055102.pptx
introduction to c language
Embedded systems designUNIT 4 PART 2.pdf
Btech i pic u-1 introduction to c language
Mca i pic u-1 introduction to c language
Examinable Question and answer system programming
Diploma ii cfpc u-1 introduction to c language
My cool new Slideshow!
Ad

More from feelinggift (20)

PDF
A) Which of the following element is seen in all organic molecules Si.pdf
PDF
Given an ArrayList, write a Java method that returns a new ArrayList.pdf
PDF
Write an MSP430g2553 C program to drive a continually scrolling mess.pdf
PDF
Which of the following is NOT a financial measurement needed to see .pdf
PDF
Which process uses chemiosmosis A. Pyruvate oxidation B. Electron .pdf
PDF
What motives do corporate executives have that force them to embrace.pdf
PDF
when are business cases or project charters overkillSolutionP.pdf
PDF
True or False The Congressional Budget Office projects that approxi.pdf
PDF
Using the space provided compose an ESSAY concerning the following qu.pdf
PDF
We continually hear about interest groups in the news. Understanding.pdf
PDF
View transaction list Journal entry worksheet 6 9 The company receive.pdf
PDF
Physical security is a fundamental component of any secure infrastru.pdf
PDF
TrueFalse Verilog is case-insensitive TF Verilog has constructs.pdf
PDF
This is a homework assignment that I have for my Java coding class. .pdf
PDF
The Jannuschs operated Festival Foods, a busi- ness that served conc.pdf
PDF
The first thermodynamic law for a system of charged molecules in elec.pdf
PDF
show all of your work to arrive a final result Simple Interest Simpl.pdf
PDF
Terms from which students can chooseMacrophages; •Only one.pdf
PDF
Simulate the Stakeholder deliverable for the development of an onlin.pdf
PDF
I want to write this program in java.Write a simple airline ticket.pdf
A) Which of the following element is seen in all organic molecules Si.pdf
Given an ArrayList, write a Java method that returns a new ArrayList.pdf
Write an MSP430g2553 C program to drive a continually scrolling mess.pdf
Which of the following is NOT a financial measurement needed to see .pdf
Which process uses chemiosmosis A. Pyruvate oxidation B. Electron .pdf
What motives do corporate executives have that force them to embrace.pdf
when are business cases or project charters overkillSolutionP.pdf
True or False The Congressional Budget Office projects that approxi.pdf
Using the space provided compose an ESSAY concerning the following qu.pdf
We continually hear about interest groups in the news. Understanding.pdf
View transaction list Journal entry worksheet 6 9 The company receive.pdf
Physical security is a fundamental component of any secure infrastru.pdf
TrueFalse Verilog is case-insensitive TF Verilog has constructs.pdf
This is a homework assignment that I have for my Java coding class. .pdf
The Jannuschs operated Festival Foods, a busi- ness that served conc.pdf
The first thermodynamic law for a system of charged molecules in elec.pdf
show all of your work to arrive a final result Simple Interest Simpl.pdf
Terms from which students can chooseMacrophages; •Only one.pdf
Simulate the Stakeholder deliverable for the development of an onlin.pdf
I want to write this program in java.Write a simple airline ticket.pdf
Ad

Recently uploaded (20)

PDF
TR - Agricultural Crops Production NC III.pdf
PDF
RMMM.pdf make it easy to upload and study
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Insiders guide to clinical Medicine.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Cell Structure & Organelles in detailed.
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
Sports Quiz easy sports quiz sports quiz
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Pre independence Education in Inndia.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
TR - Agricultural Crops Production NC III.pdf
RMMM.pdf make it easy to upload and study
GDM (1) (1).pptx small presentation for students
Insiders guide to clinical Medicine.pdf
01-Introduction-to-Information-Management.pdf
VCE English Exam - Section C Student Revision Booklet
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Pharma ospi slides which help in ospi learning
Cell Structure & Organelles in detailed.
Microbial diseases, their pathogenesis and prophylaxis
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Cell Types and Its function , kingdom of life
Sports Quiz easy sports quiz sports quiz
O5-L3 Freight Transport Ops (International) V1.pdf
PPH.pptx obstetrics and gynecology in nursing
Pre independence Education in Inndia.pdf
Supply Chain Operations Speaking Notes -ICLT Program
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
human mycosis Human fungal infections are called human mycosis..pptx

Concisely describe the following terms 40 1. Source code 2. Object c.pdf

  • 1. Concisely describe the following terms 40% 1. Source code 2. Object code 3. Compiler 4. Algorithm 5. Byte (used for what purpose) 6. Nano second or ns (used for what purpose) 7. System program (provide two examples) 8. Application program (provide two examples) 9. Preprocessing directive 10. ASCII Solution Answers: 1. A programmer writes a program in a particular programming language (ex : c , c++ ,java).This form of the program is called the source code. it can be read and easily understood by a human being. For example : Source code for Hello world program is: #include void main() { printf(“Hello World”); } 2. An interpreter or a complier translates source code into executable machine code. This machine code is called as the object code. Complier translates source code into object code. Object code contains instructions to be executed by the computer. 3. A complier is a program that translates a source program or source code written in particular programming language ( such as c , c++ or java ) into machine language (code). Example : Turbo c compiler. 4. Step –by- step instructions of a program is called is an algorithm. 5. 1 byte = 8 bits. A byte is a unit of measurement used to measure the data. Each byte represents a character. 6. A nano second or ns is a unit of time representing 10-9 or 1 billionth of a second. computer memory speed is represented in nano seconds.
  • 2. 7. It is a type of computer program that is designed to run a computer’s hardware and application programs. Examples are : OS (operating system) BIOS Boot program. 8. Application program is a software program that runs on computer. Examples are word processors, web browsers. 9. Preprocessor directives are invoked by the complier to process some programs before compilation. Preprocessor directives are lines included in a program that begin with the character #. 10. ASCII: American Standard Code for Information Interchange) It is the most common format for text files in computers and on the internet. Short Answers: 1. Source code | Complier | Assembly code Assembler Libraries | Object code Link Editor | Executable code 2. a) Memory unit (storage) ALU (Arithmetic and Logical unit) CU (Control Unit) b) Storage: All the data to be processed and the instruction required for processing.
  • 3. Intermediate results of processing. Final results of processing before these results are released to an output device. ALU (Arithmetic and Logical unit): It performs all the arithmetic operations (like addition, subtraction etc) and logical operations. CU (Control Unit): The control unit directs and controls the activities of the internal and external devices. 3. Fetch the instruction Decode the instruction Read the effective address Execute the instruction In executing the instruction Arithmetic and Logical unit (ALU) performs mathematical or logical operations .ALU sends a condition signal back to the control unit (CU). The result generated by the operation is stored in the main memory or sent to output device. Based on the Arithmetic and Logical unit feedback, the program counter (PC) updated to a different address from which the next instruction will be fetched. 4. Easy to learn. Easy to maintain. Easy to read and write. A program written in a high-level language can be translated into many machine languages and can run on any computer for which there exists an appropriate translator. i.e the language is independent of the machine on which it is used. Examples are c , c++ etc.