UMBC CMSC 104 – Section 01, Fall 2016

Slides:



Advertisements
Similar presentations
Programming and Data Structure
Advertisements

Assembly Language for Intel-Based Computers, 4 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify and.
Wednesday, 9/4/02, Slide #1 1 CS 106 Intro to CS 1 Wednesday, 9/4/02  Today: Introduction, course information, and basic ideas of computers and programming.
Topic R1 – Review for the Midterm Exam. CISC 105 – Review for the Midterm Exam Exam Date & Time and Exam Format The midterm exam will be Tuesday, 3 April.
Introduction to C Programming Overview of C Hello World program Unix environment C programming basics.
Topic R3 – Review for the Final Exam. CISC 105 – Review for the Final Exam Exam Date & Time and Exam Format The final exam is 120-minutes, closed- book,
Ceng 230 Programming with C
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand the structure of a C-language program. ❏ To write your first C.
CSE1301 Computer Programming: Revision. Topics Type of questions What do you need to know? About the exam Exam technique Sample questions.
CMSC 104, Version 9/01 1 Machine Architecture and Number Systems Topics Major Computer Components Bits, Bytes, and Words The Decimal Number System The.
Why Program? Computer – programmable machine designed to follow instructions Program – instructions in computer memory to make it do something Programmer.
Elements of a C++ program 1. Review Algorithms describe how to solve a problem Structured English (pseudo-code) Programs form that can be translated into.
COMP 110: Introduction to Programming Tyler Johnson January 14, 2009 MWF 11:00AM-12:15PM Sitterson 014.
Goals of Course Introduction to the programming language C Learn how to program Learn ‘good’ programming practices.
Machine Architecture CMSC 104, Section 4 Richard Chang 1.
 200 Total Points ◦ 74 Points Writing Programs ◦ 60 Points Tracing Algorithms and determining results ◦ 36 Points Short Answer ◦ 30 Points Multiple Choice.
Introduction to Computer Programming Using C Session 23 - Review.
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
Pointers: Basics. 2 What is a pointer? First of all, it is a variable, just like other variables you studied  So it has type, storage etc. Difference:
Exam Format  105 Total Points  25 Points Short Answer  20 Points Fill in the Blank  15 Points T/F  45 Points Multiple Choice  The above are approximations.
Announcement!!! First exam next Thursday (I’m trying to give you a first exam before the drop date) I’ll post a sample exam over the weekend and will try.
Machine Architecture and Number Systems
9/29/99B-1 CSE / ENGR 142 Programming I Variables, Values, and Types © 1998 UW CSE.
Silberschatz and Galvin  C Programming Language Kingdom of Saudi Arabia Ministry of Higher Education Al-Majma’ah University College of Education.
CS1010: Programming Methodology
CS 1428 Final Exam Review. Exam Format 200 Total Points – 60 Points Writing Programs – 45 Points Tracing Algorithms and determining results – 20 Points.
Pointers: Basics. 2 Address vs. Value Each memory cell has an address associated with it
Computer Organization Exam Review CS345 David Monismith.
CMSC201 Computer Science I for Majors Lecture 03 – Variables
Computer Architecture and Number Systems
STORAGE DEVICES Towards the end of this unit you will be able to identify the type of storage devices and their storage capacity.
The Machine Model Memory
UMBC CMSC 104 – Section 01, Fall 2016
UMBC CMSC 104 – Section 01, Fall 2016
EGR 2261 Unit 10 Two-dimensional Arrays
Topics Introduction Hardware and Software How Computers Store Data
Introduction to the C Language
Chapter 2 - Introduction to C Programming
ECE Application Programming
CMSC202 Computer Science II for Majors Lecture 08 – Overloaded Constructors Dr. Katherine Gibson Based on slides by Chris Marron at UMBC.
STORAGE DEVICES Towards the end of this unit you will be able to identify the type of storage devices and their storage capacity.
Getting Started with C.
CSCI 161: Introduction to Programming
Chapter 2 - Introduction to C Programming
Machine Architecture and Number Systems
CS 1308 Exam 2 Review.
Introduction to Computer Programming
STORAGE DEVICES Towards the end of this unit you will be able to identify the type of storage devices and their storage capacity.
CS 2308 Final Exam Review.
Introduction to the C Language
Data Structures and Algorithms
Unit 2 Programming.
CS 1428 Exam I Review.
Chapter 2 - Introduction to C Programming
CS 2308 Exam I Review.
CISC101 Reminders Your group name in onQ is your grader’s name.
A First Book of ANSI C Fourth Edition
Programming Funamental slides
CS 1428 Final Exam Review.
Topic 1: Data Representation
Machine Architecture and Number Systems
Machine Architecture and Number Systems
CMSC250 Fall 2018 Circuits 1 1.
CISC101 Reminders Labs start this week. Meet your TA! Get help with:
EE 312 Final Exam Review.
Notes from Last Class Office Hours: GL Accounts?
Introduction to C Programming
Machine Architecture and Number Systems
CS 1308 Exam 2 Review.
Computer components.
Presentation transcript:

UMBC CMSC 104 – Section 01, Fall 2016 Exam 1 Review

Notes & Announcements Exam 1 Postponed! Old Date: Next Tuesday, 10/18 New Date: Next Thursday, 10/20 Next Tuesday, the TA will hold a Q&A session during class time Bring your questions about anything that might be on the exam

Hands-on Lab 2 Review

Hands-on Lab Results Most of you got the sum and the product without any problem Most of you were able to calculate the average, but often the decimals were truncated… Some of you got the largest & smallest calculations … but most of you did it the hard way

Calculating the Average Works how you would expect, except… A float multiplied or divided by a float is always a float An integer multiplied or divided by a float is always a float An integer multiplied or divided by an integer is always an integer Even you’re storing the result in a float variable!

Dividing Integers & Floats

Output of Previous Slide An Integer divided by an Integer: 2.000000 An Integer divided by a Float: 2.500000

Finding the largest and smallest Many ways to do this Compare each number to the others Gets kind of complicated Potentially lots of nested ifs We haven’t covered “complex” comparators like && yet A loop Also complicated Just add another variable!

Finding the largest and smallest

Lab 2 I posted two more files to the sample directory stats.c – My “answer” to lab 2, which was used to create the sample output division.c – The division sample we went over when discussing averages Any other questions on this?

Exam 1 Review

Overview If it’s in the slides, it’s fair game Broad Concepts Generally, concepts more important than specifics Broad Concepts Machine Architecture (parts of a computer) Data Storage Concepts Number Systems (Hex, Binary, Decimal) OS Concepts & Linux Algorithms & Algorithm Concepts C Basics (i.e. what we’ve covered so far)

Machine Architecture Content Creation vs Consumption Computer components CPU, GPU, ALU, etc Speed & Storage measurements MHz, GHz, etc MB, GB, etc Volatile vs Non-volatile Serial vs Parallel

Data Storage Concepts Bits & Bytes Data Sizes (see table)

Number Systems Binary Hex Conversions Binary to Decimal Decimal to Binary Hex to Decimal Decimal to Hex Hex to Binary Binary to Hex

OS Concepts & Linux What is an OS Ways to interact with an OS Linux Files & Directories Frequently used commands See slides Know how to traverse the directory structure, create and delete files, etc

Algorithms & Algorithm Concepts Definition of an algorithm Characteristics of an algorithm Pseudocode Concepts

C Basics Stages of compilation A basic C program template Hello world! Preprocessor directives for symbolic constants #define Legal Variable Identifiers Declaring variables Variable types int, float, char Basic printf() and scanf() usage

Questions?