APSC 160 Study Guide - Final Guide: Include Directive, Newline, Ibm Displaywrite

272 views23 pages
24 Oct 2018
School
Department
Course
Professor

Document Summary

Note: the questions in this document do not constitute an actual final exam although many of the questions have actually appeared on previous exams. In particular, note that there are more questions presented here than would appear on a single exam: these sample questions are not exhaustive of the topics or kinds of questions that could be covered on your exam. You should therefore not use these questions as your primary source of study material. For each of the multiple choice questions below, circle the one best answer. What does a c language compiler do: translate from c into machine language, verify correctness of a program, process directives like #include and #define before running the program, organize all the c program files in a directory. Which is the correct way to declare a variable s containing the string foo: char s = "foo", char s = foo, char s[] = foo, char s[] = foo\0;