1 / 15

CSE111: Great Ideas in Computer Science

CSE111: Great Ideas in Computer Science. Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:50 645-4739 alphonce@buffalo.edu. Announcements. First exam Wednesday next week Closed book Bring your UB card Monday next week: review. Today’s Agenda. Review last lecture’s material

daire
Download Presentation

CSE111: Great Ideas in Computer Science

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CSE111: Great Ideas in Computer Science Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:50 645-4739 alphonce@buffalo.edu

  2. Announcements • First exam Wednesday next week • Closed book • Bring your UB card • Monday next week: review

  3. Today’s Agenda • Review last lecture’s material • Situate machine language in hierarchy of languages • Discuss exam

  4. cell phones off (please)

  5. Low-level languages • Machine language • 1101000001000010 • Assembly language • ADD R1 R2

  6. High level languages • Java • We can write “x + y” instead of “ADD R1 R2” (in addition to with several MOV instructions) • Others: C#, Erlang, Python, ML, Prolog, Lisp

  7. Translation • LLL  LLL is called assembly • there is a 1:1 translation from assembly to machine language • fairly simple process • HLL  LLL is called compilation • there is no 1:1 translation • translation is quite complex • optimizations can be applied to make low level code more efficient

  8. Requirements of a PL • Sequencing • Selection • Repetition

  9. Equivalences • Computation models • Turing Machine • Lambda calculus • Programming languages • Java • C# • Prolog • Python

  10. High-level languages • Easier syntax than • Machine language (bit strings) • Assembly language (mnemonic) • Must be translated (compiled) to machine language

  11. Exam • Procedure • Format • Content

  12. Exam procedures • Wait outside room until called in • Sit where there is an exam • Cannot leave until sign-in is completed, at the earliest • We check and collect ID cards • ID card returned when you turn in exam • Exam is closed book, closed notes, closed neighbor • Bring pen/pencil to exam • No electronics permitted (take earbuds out of your ears) • No hats, not drink bottles, pencil cases, etc. • Late arrivals will not be seated – you will receive a zero on the exam

  13. Exam format (exam #1 only) • Some multiple-choice • Some short answer/fill-in-the-blank • Example: (drawn on board)

  14. Exam content • Chapters 0, 1 and 2 from textbook • Lecture material • Strongest emphasis will be put on lecture material • Readings are “fair game”

  15. Questions?

More Related