COMP1180 Review Date: 4 March, 2009 Time: 10:30am - 12:20pm Venue: –CS students -- FSC801C and FSC801D –IS and other students -- OEE1017 Remarks: – 1)

Slides:



Advertisements
Similar presentations
Etter/Ingber Engineering Problem Solving with C Fundamental Concepts Chapter 4 Modular Programming with Functions.
Advertisements

Introduction to C Programming
Control Statements. Define the way of flow in which the program statements should take place. Control Statements Implement decisions and repetitions.
Introduction to C Systems Programming Concepts. Introduction to C A simple C Program A simple C Program –Variable Declarations –printf ( ) Compiling and.
Overview of programming in C C is a fast, efficient, flexible programming language Paradigm: C is procedural (like Fortran, Pascal), not object oriented.
ICE1341 Programming Languages Spring 2005 Lecture #13 Lecture #13 In-Young Ko iko.AT. icu.ac.kr iko.AT. icu.ac.kr Information and Communications University.
Programming Languages and Paradigms The C Programming Language.
Making Choices in C if/else statement logical operators break and continue statements switch statement the conditional operator.
1 CSE1301 Computer Programming: Revision 1. 2 Topics Type of questions What do you need to know? About the exam Exam technique Staff consultation Sample.
Differences between Java and C CS-2303, C-Term Differences between Java and C CS-2303, System Programming Concepts (Slides include materials from.
Wednesday, 12/11/02, Slide #1 CS 106 Intro to Comp. Sci. 1 Wednesday, 12/11/02  QUESTIONS??  Today: CLOSING CEREMONIES!  HW #5 – Back Monday (12/16)
CS Data Structures Appendix 1 How to transfer a simple loop- expression to a recursive function (factorial calculation)
Introduction to C Systems Programming. Systems Programming: Introduction to C 2 Systems Programming: 2 Introduction to C  A ‘C’ Program –Variable Declarations.
Wednesday, 10/9/02, Slide #1 CS 106 Intro to CS 1 Wednesday, 10/9/02  QUESTIONS ??  Today:  Discuss HW #02  Discuss test question types  Review 
Review for midterm exam Dilshad M. Shahid Spring NYU.
1 CSE1301 Computer Programming: Lecture 35 Revision.
More on Numerical Computation CS-2301 B-term More on Numerical Computation CS-2301, System Programming for Non-majors (Slides include materials from.
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,
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect M1 P. 1Winter Quarter Midterm I Review Topics.
1 Midterm Review COMP 102. Tips l Eat a light meal before the exam l NO electronic devices (including calculators, dictionaries, phones, pagers, etc.)
CS241 PASCAL I - Control Structures1 PASCAL I - Control Structures Philip Fees CS241.
COMP1170 Midterm Preparation (March 17 th 2009) Acknowledgment The notes are adapted from those provided by Deitel & Associates, Inc. and Pearson Education.
Assignment #2, 12- month Calendar CS-2301, B-Term Programming Assignment #2 12-Month Calendar CS-2301, System Programming for Non-Majors (Slides.
Introduction to C Language
Introduction to Computer Algorithmics and Programming Ceng 113 Variables and Operators in C.
1 COMP 2130 Introduction to Computer Systems Computing Science Thompson Rivers University.
CECS 121 EXAM 1. /* C Programming for the Absolute Beginner */ // by Michael Vine #include main() { printf(“\nC you later\n”); system(“pause”); }
1 CSE1301 Computer Programming: Revision. 2 Topics Type of questions What do you need to know? About the exam Exam technique Staff consultation Revision.
C Programming language
Lecture 5 Introduction to Programming in C Arne Kutzner Hanyang University / Seoul Korea.
JAVA Tokens. Introduction A token is an individual element in a program. More than one token can appear in a single line separated by white spaces.
CIS-165 C++ Programming I CIS-165 C++ Programming I Bergen Community College Prof. Faisal Aljamal.
Dennis Ritchie 1972 AT & T Bell laboratories (American Telephone and Telegraph) USA 1www.gowreeswar.com.
Control Statements in C 1.Decision making statements 2.Looping statements 3.Branching statements
Chapters 1-5 Review C++ Class. Chapter 1 – the big picture Objects Class Inheritance Reusability Polymorphism and Overloading.
CECS 130 EXAM 1. To declare a constant (read only) value: const int x = 20; const float PI = 3.14; Can we do this? const int x;
Computer programming Outline Functions [chap 8 – Kochan] –Defining a Function –Arguments and Local Variables Automatic Local.
CCSA 221 Programming in C CHAPTER 8 – PART 1 WORKING WITH FUNCTIONS 1.
/* C Programming for the Absolute Beginner */ // by Michael Vine #include main() { printf(“\nC you later\n”); system(“pause”); }
CS241 PASCAL I - Control Structures1 PASCAL Control Structures Modified Slides of Philip Fees.
1 Chapter 3: Loops and Logic. 2 Control Statements If statement Example NumberCheck.java Relational operators (, >=, ==, !=) Using code blocks with If.
1 Programming in C++ Dale/Weems/Headington Chapter 9 Additional Control Structures (Switch, Do..While, For statements)
Lecture 15: Course Review BJ Furman ME 30 16MAY2011.
2: Basics Basics Programming C# © 2003 DevelopMentor, Inc. 12/1/2003.
Chapter 1 Java Programming Review. Introduction Java is platform-independent, meaning that you can write a program once and run it anywhere. Java programs.
0 Chap.2. Types, Operators, and Expressions 2.1Variable Names 2.2Data Types and Sizes 2.3Constants 2.4Declarations 2.5Arithmetic Operators 2.6Relational.
CS113 Introduction to C Instructor: Ioannis A. Vetsikas Lecture 2 : August 28 webpage:
C syntax (simplified) BNF. Program ::= [ ] Directives ::= [ ] ::= | |… ::=#include > ::=#define.
CS 1428 Final Exam Review. Exam Format 200 Total Points – 60 Points Writing Programs – 45 Points Tracing Algorithms and determining results – 20 Points.
Decisions Chapter 4.
C++, OBJECT ORIENTED PROGRAMMING
BY GAWARE S.R. COMPUTER SCI. DEPARTMENT
C Short Overview Lembit Jürimägi.
Starting JavaProgramming
Review for Final Exam.
CS 1428 Final Exam Review.
Introduction C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell.
Structured Program Development in C
Differences between Java and C
CS 1428 Final Exam Review.
C Programming Getting started Variables Basic C operators Conditionals
Information Technology for Engineers
Programming Language C Language.
Fundamental Programming
1-6 Midterm Review.
Module 2 Variables, Data Types and Arithmetic
Programming Languages and Paradigms
C Language B. DHIVYA 17PCA140 II MCA.
INTRODUCTION TO C.
Presentation transcript:

COMP1180 Review Date: 4 March, 2009 Time: 10:30am - 12:20pm Venue: –CS students -- FSC801C and FSC801D –IS and other students -- OEE1017 Remarks: – 1) Closed book & closed notes – 2) The test will be taken in written test format – 3) Covers everything up to recursive function – 4) Take alternate seat and work on your own – 5) Bring a calculator if you want (optional)

COMP1180 Review Assessment: 10% of the Grade Total Marks: 100 Expected Time to Finish: 100 Min. Format: –Short Questions on Programming and C Syntax (~20%) –Understanding the Program (~20%) –Program Tracing and its Output (~30%) –Function Writing (~30%)

COMP1180 Review Class Notes from the Text Book: –02 - Introduction to C Programming –03 - Structured Program Development –04 - C Program Control –05 - Functions Supplementary Notes from Prof. Joseph Ng –S02-printf_scanf.ppt –S03-C_Language.ppt –S04-Structured_Programming.ppt –S05-Functions.ppt All Lab Sheets from Lab1 to Lab5 (excluding Lab 0 & Lab3a)

COMP1180 Review Variables –Data Types – char, int, float, double –Variable Types – global, local, static, const –Naming, Declaration, and Initialization –Qualifiers – short, long, signed, and unsigned (skipped) Formatted input and output – scanf( ), printf( ) Assignment statements –Arithmetic operators: +, -, *, /, % –Precedence, associativity and integer division –Relational operators: >, >=, <, <=, ==, != –Logical operators: &&, || –Type conversion –Increment and decrement operators: ++, --, i++ vs. ++i –Assignment operators: +=, -=, *=, /=, %= –Conditional operators: expr1 ? expr2 : expr3 (skipped)

COMP1180 Review Control flow –Statements and Blocks –IF statements if (expression) statement; if (expression) statement1; else statement2; If (exp != 0) vs. if (exp) Nested IF statements –SWITCH statement Default, break and switch vs. if –Loops –WHILE loop –FOR loop –DO WHILE loop –Nested loops –break and continue within a loop –goto and labels (skipped)

COMP1180 Review Arrays –One-dimension array – int A[20]; Declaration, initialization, accessing array elements –Multi-dimension array – int connect[18][18]; Declaration, initialization, accessing array elements –Character arrays – char s[10] ; End-of-string character (‘\0’); Functions –Return-type Function-name (Parameter List) –Function Prototype, Function Definition, and Function Call –Parameters vs. Arguments and Formal vs. Actual arguments –The return statement and type conversion –Scopes of variables: local vs. global vs. parameters vs. static –Call by values –Call by reference (skipped) –Recursive functions