1 Pre-Exam Lecture 4 Final Examination is scheduled on Monday December 18th at 1:30PM in class 4 There are 8 questions with or without sub- parts and.

Slides:



Advertisements
Similar presentations
Assembly Language – 1.
Advertisements

Week 3. Assembly Language Programming  Difficult when starting assembly programming  Have to work at low level  Use processor instructions >Requires.
Assembly Language for Intel-Based Computers, 4 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify and.
8085 processor. Bus system in microprocessor.
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Programming Types of Testing.
1BA3 G Lacey Lecture 51 Evaluating mathematical expressions  How do computers evaluate x + y or any mathematical expression ?  Answer : “Reverse Polish.
Lab6 – Debug Assembly Language Lab
COSC 120 Computer Programming
Advanced Topics Object-Oriented Programming Using C++ Second Edition 13.
Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
1 Final Exam Study Guide 4 Final Examination is scheduled on Wednesday May 9th at 4PM 4 There are 8 questions with or without sub- parts and the exam.
TK 2633 Microprocessor & Interfacing Lecture 3: Introduction to 8085 Assembly Language Programming (2) 1 Prepared By: Associate Prof. Dr Masri Ayob.
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
Introduction to a Programming Environment
Chapter 18 Testing Conventional Applications
1 ES 314 Advanced Programming Lec 2 Sept 3 Goals: Complete the discussion of problem Review of C++ Object-oriented design Arrays and pointers.
Chapter 1: Introduction To Computer | SCP1103 Programming Technique C | Jumail, FSKSM, UTM, 2005 | Last Updated: July 2005 Slide 1 Introduction To Computers.
CE Operating Systems Lecture 5 Processes. Overview of lecture In this lecture we will be looking at What is a process? Structure of a process Process.
Chapter 3: The Fundamentals: Algorithms, the Integers, and Matrices
How Computers Work Dr. John P. Abraham Professor UTPA.
MIPS coding. SPIM Some links can be found such as:
1 Problem Solving using computers Data.. Representation & storage Representation of Numeric data The Binary System.
Recursion Textbook chapter Recursive Function Call a recursive call is a function call in which the called function is the same as the one making.
CSC 3210 Computer Organization and Programming Chapter 1 THE COMPUTER D.M. Rasanjalee Himali.
Integer Representation for People Computer Organization and Assembly Language: Module 3.
Fundamental Programming: Fundamental Programming K.Chinnasarn, Ph.D.
Unit-1 Introduction Prepared by: Prof. Harish I Rathod
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Memory: Relocation.
Execution of an instruction
CS 111 – Sept. 15 Chapter 2 – Manipulating data by performing instructions “What is going on in the CPU?” Commitment: –Please read through section 2.3.
Copyright 2006 by Timothy J. McGuire, Ph.D. 1 MIPS Assembly Language CS 333 Sam Houston State University Dr. Tim McGuire.
PHY 201 (Blum)1 Microcode Source: Digital Computer Electronics (Malvino and Brown)
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
 Lecture 2 Processor Organization  Control needs to have the  Ability to fetch instructions from memory  Logic and means to control instruction sequencing.
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
EKT 221 : Chapter 4 Computer Design Basics
ALGORITHMS.
CDA 3100 Spring Special Thanks Thanks to Dr. Xiuwen Liu for letting me use his class slides and other materials as a base for this course.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Number Representation Lecture Topics How are numeric data items actually stored in computer memory? How much space (memory locations) is.
CDA 3100 Fall2009. Special Thanks Thanks to Dr. Xiuwen Liu for letting me use his class slides and other materials as a base for this course.
Register Transfer Languages (RTL)
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
Copyright 2006 by Timothy J. McGuire, Ph.D. 1 MIPS Assembly Language CS 333 Sam Houston State University Dr. Tim McGuire.
Searching Topics Sequential Search Binary Search.
Computer Organization Instructions Language of The Computer (MIPS) 2.
1 Asstt. Prof Navjot Kaur Computer Dept PRESENTED BY.
Skill Area 311 Part B. Lecture Overview Assembly Code Assembler Format of Assembly Code Advantages Assembly Code Disadvantages Assembly Code High-Level.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
ECE DIGITAL LOGIC LECTURE 2: DIGITAL COMPUTER AND NUMBER SYSTEMS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/14/2016.
Cis303a_chapt03_exam1_answer.ppt CIS303A: System Architecture Exam 1: Chapter 3 Answer List the characters (digits) for the following bases. 1) Decimal:
INTRODUCTION TO COMPUTER PROGRAMMING(IT-303) Basics.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
Computer Systems Architecture Edited by Original lecture by Ian Sunley Areas: Computer users Basic topics What is a computer?
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
CDA 3100 Fall Special Thanks Thanks to Dr. Xiuwen Liu for letting me use his class slides and other materials as a base for this course.
Prepared By: Norakmar Binti Mohd Nadzari CHAPTER 2 ARITHMETIC AND LOGIC UNIT.
Component 1.6.
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Starter Read the Feedback Click on Add new Feedback Open Realsmart
Instruction encoding We’ve already seen some important aspects of processor design. A datapath contains an ALU, registers and memory. Programmers and compilers.
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
MARIE: An Introduction to a Simple Computer
Introduction to Computer Programming
Microprocessor Architecture
Dr. Clincy Professor of CS
Presentation transcript:

1 Pre-Exam Lecture 4 Final Examination is scheduled on Monday December 18th at 1:30PM in class 4 There are 8 questions with or without sub- parts and the exam carries 30 Marks 4 Let us look at the topics included in the exam

2 Topics in Exam 4 *Algorithms 4 Architecture of the Processor (ALU, Data Path and Memory Interface) 4 Operating Systems 4 Searching and Sorting a List 4 *Binary and Hex Numbers 4 Digital Logic 4 2GL, 3GL and 4GL concepts

3 Topics in Exam 4 Software Engineering Basic Concepts 4 *Waterfall model and spiral model 4 Arrays, Contiguous and Linked Lists, Stacks and Binary Search Tree 4 Database Systems (Network and Relational) 4 Symmetric Key Encryption and public- private key encryption 4 Ethics in Computing

4 *Algorithms 4 An algorithm is a step by step method to solve a problem with a definite reachable termination state 4 Most algorithms can be developed by following the instructions below: –Read the problem statement and rewrite it in your own words to make it simple –Consider nouns used and identify the data items –Consider the verbs used and identify the actions to be taken

5 *Algorithms –Write the initial algorithm in terms of WHAT is to be accomplished –Refine each step of the initial algorithm to include the details of HOW the step would be accomplished 4 In the exam, expect a question that asks you to develop an algorithm for solving a given problem on computer 4 DO NOT WRITE A C++ PROGRAM IN YOUR ANSWER

6 Architecture 4 It is important to understand how the processor executes a program 4 The processor obtains instructions one by one from memory through a “bus” using PC 4 Instructions are loaded in IR(instruction register) in the control unit 4 Operands are brought into the data path 4 ALU operates on the operands and result is sent to memory or held in registers

7 Operating Systems 4 Operating systems are programs that run the computers 4 Distinguish between batch and interactive systems 4 Think about the “time-sharing” systems 4 Think about Windows, UNIX and other operating systems

8 Searching and Sorting a List 4 We looked at the while statement that is needed in searching and sorting operations 4 while loop is recommended when it is not known how many times the loop will execute 4 We developed two algorithms for searching a list for the occurrence of a target value 4 In the first algorithm, the list was sorted so we had to stop the search if current value exceeded the target value

9 Searching and Sorting a List 4 In the while loop continuation condition, we used logical AND 4 continue the search if target not found AND current entry is less than target AND the current entry is not the last entry 4 Incase of unsorted list, the condition “current entry is less than target” is deleted

10 Sorting a List 4 “Insertion Sort” algorithm was demonstrated in the class 4 It was applied on a list of names. 4 Insertion sort assumes the first name belongs in the sorted section and remaining names are in the unsorted section. 4 It will take the members of the unsorted section one by one and place them in the sorted section at an appropriate location

11 *Binary and Hex Numbers 4 Binary system has just two symbols 0 and 1 4 It represents all values in patterns of 0 and 1 4 Like decimal system, binary is also positional number system 4 It means that the position of a bit in a pattern carries a weight 4 Weights are powers of 2 increasing from rightmost bit towards left, starting at 0 for integer values(Example: 1101)

12 *Binary and Hex Numbers 4 Hex system has 16 symbols, all the way from 0 to F 4 It is also positional number system. 4 For example, 1F, 1A, 2B 4 Its digits carry weights expressed as powers of 16 starting from 0 at the rightmost bit position in the integer values

13 *Converting Binary/Decimal 4 Binary to decimal conversion assigns position numbers. These are written as powers of 2, then all products are added 4 Example: Conversion from decimal to binary involves dividing the number repeatedly by 2 until a value less than 2 is left. Writing the remainders in each step from last value to first value will give us the binary equivalent

14 Digital Logic 4 Boolean logic consists of three operations AND,OR,NOT and two values 0 and 1 4 AND operation results in a 1 only if BOTH operands are 1 4 OR operation results in a 1 if ANY operand is equal to 1 4 NOT operation turns a 1 into 0 and a 0 into 1 4 Our focus is on converting real-life situations into logical expressions

15 Programming Language Generations 4 We talked about 2GL,3GL,4GL and 5GL 4 These are different generations of programming languages that evolved over time 4 2GL is the assembly language (mnemonics such as MOV, ADD, STOR etc.) 4 3GL are problem oriented and 4GL are user oriented languages

16 Software Engineering 4 We introduced the motivation for software engineering and why is it so important 4 We looked at waterfall model and spiral model of SE activities

Adapted from "Software Engineering A Practitioner's Approach" by Roger Pressman 17 *WaterFall Model Diagram

18 *The WaterFall Model 4 This model is a sequence of stages 4 During analysis, the user requirements are identified and systems specs. are prepared 4 During design, the number of modules and their interconnection is finalized. The data types and structure is specified 4 During coding, actual programming is done 4 Testing is done to make sure there are no errors (alpha-release and beta-release)

19 Spiral Model 4 It was realized that the waterfall model is not optimal as it is a one-way model 4 If a problem is discovered in a later stage, there is no way to go back and correct the problem 4 Therefore, spiral model was proposed in which the SE activity occurs in a spiral thus giving a chance to correct the mistakes

Adapted from "Software Engineering A Practitioner's Approach" by Roger Pressman 20 Spiral Model Diagram

21 Data Structures 4 Arrays 4 Contiguous lists 4 Linked lists 4 Stacks 4 Binary Search Trees 4 Expect one to two questions from these topics, mostly specific

22 Databases 4 We covered network database model and relational database model 4 In the network model, several information files are linked with physical disk addresses 4 In relational database model, a search is performed on a primary field in every file

23 Encryption 4 Symmetric key encryption was covered with examples showing the use of XOR logical operation of the value with a key for both encryption and decryption 4 DES was introduced that uses a 56-bit key 4 The problem of key distribution led to public-private key algorithms where encryption and decryption is carried out with separate keys

24 Ethics 4 Expect a short question related to ethics in computing. Maybe a specific case requesting your opinion

25 How do you feel about computers? THE END yep no