Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

1

2 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

3 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

4 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

5 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

6 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

7 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

8 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

9 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

10 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

11 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

12 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)

13 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

14 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: 1001 4 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

15 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

16 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

17 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

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

19 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)

20 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

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

22 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

23 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

24 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

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

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


Download ppt "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."

Similar presentations


Ads by Google