Microsoft Word – SU 2021 Midterm Study Sheet CSE 2421 – Summer 2021 Midterm Study Sheet 1. Along with your midterm, you will receive a C programming language Operator Precedence chart, an I/O format string reference for scanf() and printf(), a list of C keywords, and (if exam questions dictate) an ASCII character sheet reference. Prior to the midterm, you can find these references within the slides or in the Midterm section on Piazza. You should make a point of reviewing these items prior to the exam so that, should you need to refer to them during your exam, you can do so quickly and efficiently. 2. Did you keep up with the Required Readings included in the slides? I hope so! 3. Did you read any of the articles in the General Reference section of Piazza? If not, maybe you should. 4. Did you bother to take a look at any of the C language Sample programs? 5. Can you work your way around in gdb? What does break do? How might one set a breakpoint? You should know at least 2 different ways to set a breakpoint. How might one run a program with gdb? How does one work with command line arguments within gdb? Do you know how to redirect input so that it comes from a file while you are running a program in gdb? What does “continue” do? Do you know how to find the value of a declared variable? Do you know how to print in in hexadecimal rather than decimal? How about the value of structure elements? Any basic gdb command is fair game. You should also be able to use gdb information to figure out a “bug” in a simple piece of code. 6. Any concepts addressed in Lab1 through Lab4 (this means you’ve coded it by the time of the midterm) would be reasonable questions. 7. Any concepts address in Homework 1 would be reasonable questions. 8. Slide Deck 2: Understand differences between C and Java Compile time vs run time errors (e.g. static vs dynamic errors) Do you know the 4 general categories of Computer Language statements? Be comfortable with what the Preprocessor does; be able to describe it