Docsity

Principles of programming, Assignments of C programming

Partial preview of the text

Download Principles of programming and more Assignments C programming in PDF only on Docsity!

MULTITECH BUSINESS SCHOOL

COURSE NAME : Principles of programming

Name: YIGA GEORGE

REG NO: 2019/DU/

YEAR: One (1)

Semester: Two(2)

Course code: DIT 1205

Lecturer: Sserunjigi Ismail

Questions and answers

1. Define the following:

 A program

 A system

 Source code

 A computer

 A program; is a collection of instructions that can be executed by a computer to

perform a specific task.

 A system; is a collection of elements or components that are organized for a common

purpose.

 Source code; is the set of instructions and statements written by a programmer using a

computer programming language.

 A computer; Is an electronic programmable device or machine that can input, output and store

that data after processing it.

2. What is high level language?

High level language is any programming language that enables development of a program in a much more user-friendly programming context and is generally independent of the computer's hardware architecture.( https://www.techopedia.com/definition/3925/high-level-language-hll)

3. What are the merits of high level language?

 High level languages are programmer friendly. They are easy to write, debug and maintain.  It provide higher level of abstraction from machine languages.  It is machine independent language.  Easy to learn.  Less error prone, easy to find and debug errors.  High level programming results in better programming productivity.

 What are the demerits of high level language?

 It takes additional translation times to translate the source to machine code.  High level programs are comparatively slower than low level programs.  Compared to low level programs, they are generally less memory efficient.  Cannot communicate directly with the hardware.  (https://codeforwin.org/2017/05/high-level-languages-advantages-disadvantages.html)

4. What are the merits of low level language?