Docsity

Programming Fundamentals, Lecture notes of Programming Languages

Partial preview of the text

Download Programming Fundamentals and more Lecture notes Programming Languages in PDF only on Docsity!

Programming

Fundamentals

International Islamic University, Islamabad

Cour

se

Course Title: Programming Fundamentals

Course Code: CSC-

Instructor: Shermeen Adnan

Credit Hours: 4 (3,1)

Semester: SPRING 2024

Pre-requisite: ICT

Course Structure

🞂 Course Work

◦Lectures

◦Assignments

◦Quizzes

◦Project

Evaluation Criteria

S. No. Assessment Items %age 1 Assignments 5 2 Quizzes / Class Participation 10 3 Project 10 4 1st Sessional (after 4 weeks) 25 5 Final examination (after 15 weeks) 50

7

1. A Computer is an electronic

machine which is used for data

processing.

2. A computer is a programmable machine,

i.e., A machine that can receive, store,

and process data.

🞂 Take input
🞂 Computes
🞂 Programmable electronic
machine
🞂 High speed
🞂 Store information
🞂 Accept Set of instructions
🞂 Produces output

1 0

🞂 Two components

◦ Hardware

🞄 The physical equipment required to create, use, manipulate and store electronic data

◦ Software

🞄 Set of instructions written in some programing language 🞄 The computerised instructions that operate a computer, manipulate the data and execute particular functions or tasks. 1 1

🞂 Physical parts

◦ Memory (Main/ Secondary).
◦ CPU(Central Processing
Unit)

🞄 ALU(Arithmetic and Logic Unit) 🞄 CU(Control Unit).

◦ I/O Devices
◦ Peripheral device

🞂 Central processing unit (CPU):

◦ (^) The chip or chips at the heart of a computer that enable it to process data. ◦ (^) Also known as a processor 🞂 Memory: ◦ (^) An area within a computer system that holds data waiting to be processed.

🞂 Storage device:

◦ (^) The place where a computer puts data.

🞂 The most common type of memory that most users are familiar with is ‘main memory’ or ‘RAM’ (random-access memory). 🞂 RAM holds an area in the computer system unit that temporarily holds a user’s data, operating system instructions and program instructions. 🞂 The word ‘main’ is used to distinguish it from external mass storage devices such as the hard drive or disk drives.

🞂 Read Only Memory
🞂 Memory on which data has been prerecorded.
🞂 Once data has been written onto a ROM chip, it
cannot be removed and can only be read.
🞂 Unlike main memory (RAM), ROM retains its
contents even when the computer is turned off.
🞂 ROM is referred to as being nonvolatile, whereas
RAM
is volatile.
🞂 Most PCs contain a small amount of ROM that
stores critical programs such as the program that
boots the computer.
🞂 Different types of ROM

◦ (^) PROM (programmable read-only memory). ◦ (^) EPROM

  1. Set of instructions that tells a computer component (hardware) how to perform a task.

🞂 Set of instruction = Program

🞂 Program is a set of instructions in any computer programming language which directs computer to do specific tasks.