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.

Slides:



Advertisements
Similar presentations
Assembly Language for Intel-Based Computers, 4 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify and.
Advertisements

ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
Overview of Programming and Problem Solving ROBERT REAVES.
Some computer fundamentals and jargon Memory: Basic element is a bit – value = 0 or 1 Collection of “n” bits is a “byte” Collection of several bytes is.
The Binary Numbering Systems
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.
Data Representation Computer Organization &
1 Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
Data Representation COE 205
Connecting with Computer Science, 2e
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
Introduction to Computers and Programming. Some definitions Algorithm: –A procedure for solving a problem –A sequence of discrete steps that defines such.
1 Lab Session-IV CSIT-120 Spring 2001 Lab 3 Revision and Exercises Rev: Precedence Rules Lab Exercise 4-A Machine Language Programming The “Micro” Machine.
Introduction to a Programming Environment
Topic 1: Introduction to Computers and Programming
Introduction to Computers and Programming. Some definitions Algorithm: Algorithm: A procedure for solving a problem A procedure for solving a problem.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
Chapter 1: Introduction To Computer | SCP1103 Programming Technique C | Jumail, FSKSM, UTM, 2005 | Last Updated: July 2005 Slide 1 Introduction To Computers.
BLOCK DIAGRAM OF COMPUTER
Aug CMSC 104, LECT-021 Machine Architecture and Number Systems Some material in this presentation is borrowed form Adrian Ilie From The UNIVERSITY.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Computers Organization & Assembly Language
CIS Computer Programming Logic
1 Machine Architecture and Number Systems Topics Major Computer Components Bits, Bytes, and Words The Decimal Number System The Binary Number System Converting.
How Computers Work Dr. John P. Abraham Professor UTPA.
Computer Systems Chapter 1 Pages Hardware-physical pieces Key hardware components in a computer system: The physical parts. – Central processing.
Computer System & Binary Review. Memory Model What memory is supposed to look like.
MIPS coding. SPIM Some links can be found such as:
Computer Programming Basics Assistant Professor Jeon, Seokhee Assistant Professor Department of Computer Engineering, Kyung Hee University, Korea.
Slide 1 Wednesday, October 07, 2015 Low Level Machine.
Lec 3: Data Representation Computer Organization & Assembly Language Programming.
1 Problem Solving using computers Data.. Representation & storage Representation of Numeric data The Binary System.
Data and its manifestations. Storage and Retrieval techniques.
Machine Architecture CMSC 104, Section 4 Richard Chang 1.
Input, Output, and Processing
1 i206: Lecture 2: Computer Architecture, Binary Encodings, and Data Representation Marti Hearst Spring 2012.
D75P 34 – HNC Computer Architecture Interim Week Hexadecimal revisited! © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College except.
CSC 3210 Computer Organization and Programming Chapter 1 THE COMPUTER D.M. Rasanjalee Himali.
Fundamental Programming: Fundamental Programming K.Chinnasarn, Ph.D.
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
CPU How It Works. 2 Generic Block Diagram CPU MemoryInputOutput Address Bus Data Bus.
© 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.
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.
 Lecture 2 Processor Organization  Control needs to have the  Ability to fetch instructions from memory  Logic and means to control instruction sequencing.
Number Systems by Dr. Amin Danial Asham. References  Programmable Controllers- Theory and Implementation, 2nd Edition, L.A. Bryan and E.A. Bryan.
Programming Fundamentals. Overview of Previous Lecture Phases of C++ Environment Program statement Vs Preprocessor directive Whitespaces Comments.
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.
Computer Organization Instructions Language of The Computer (MIPS) 2.
1 Asstt. Prof Navjot Kaur Computer Dept PRESENTED BY.
COMPUTER SYSTEM A computer system is define as combination of components designed to process data and store files. A computer system consists of four.
ECE DIGITAL LOGIC LECTURE 2: DIGITAL COMPUTER AND NUMBER SYSTEMS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/14/2016.
The Hexadecimal System is base 16. It is a shorthand method for representing the 8-bit bytes that are stored in the computer system. This system was chosen.
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.
Chapter 9: Data types and data structures OCR Computing for A Level © Hodder Education 2009.
Computer Architecture and Number Systems
Lec 3: Data Representation
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Computer Science I CSC 135.
Chapter Four Data Representation in Computers By Bezawit E.
Dr. Clincy Professor of CS
Presentation transcript:

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 carries 30 Marks 4 Let us look at the topics included in the exam

2 Topics Included 4 Algorithms 4 Operating Systems 4 Processor Architecture 4 Searching and Sorting a List 4 Binary and Hex Numbers 4 Bits, Bytes, Pixels

3 Topics Included 4 Digital Logic and expressions 4 Software Engineering Basic Concepts 4 Waterfall model and spiral model 4 Arrays, Contiguous and Linked Lists, Stacks, Queues and Binary Search Trees 4 Database Systems (Network and Relational) 4 E-Commerce Concerns and Encryption 4 Ethics in Computing

4 Topics NOT in Exam 4 C++ Programming NOT in exam 4 Micro Machine Language NOT in exam 4 Networks NOT in exam 4 2GL,3GL, 4GL NOT in exam

5 *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

6 *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

7 Architecture 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 and operands are brought into the data path 4 ALU operates on the operands and result is sent to memory or held in registers 4 Can you identify all registers and their usage? 4 Can you point out the steps in multiplying two numbers that are stored in memory?

8 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

9 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

10 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 4 Also look at steps involved in inserting a name into a list

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 Bits, Bytes and Pixels 4 A bit is a binary digit 4 It can assume the value of 0 or 1 4 Collection of 8 bits is known as a byte 4 A byte is the minimum unit in our computer memory and hard disk jargon 4 1KB means 1024 bytes 4 1MB means 1024KB 4 1GB means 1024MB

15 Bits, Byes and Pixels 4 Suppose that a file has 4776 characters 4 Since each character has one bytes ASCII code, the file occupies 4776 bytes 4 In terms of KB, 4776/1024 means 4.66KB 4 A CD contains 650MBand hard disk is 20GB. How many CD’s can be copied into the hard disk? 4 (20*1024/650) equals 31.5

16 Bits, Bytes and Pixels 4 An image has thousands of dots. Each dot is called a pixel. Each pixel takes up some memory space 4 A black and white image on 640x480 screen has 307,200 bits of information. You need 38,400 bytes to store this image ( 37.5KB) 4 If the image is colored, we will need 1 byte per pixel for 256-color image

17 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

18 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 19 *WaterFall Model Diagram

20 *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)

21 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 22 Spiral Model Diagram

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

24 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

25 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

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

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

28 Pre_Exam Standing