Midterm2_answers - CGS 3460 Summer 2011 Midterm Name UFID In order for your exam to be graded you must agree and sign the following ”On my honor

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CGS 3460 Summer 2011 Midterm Name: UFID: In order for your exam to be graded, you must agree and sign the following: ”On my honor, I have neither given nor received unauthorized aid in doing this exam.” Name(print): Signature: 1. [20 p ] Define the following terms: (a) compiler Answer: A computer program that translates source code written in a programming language into machine code (b) keyword Answer: A syntactic element of the language which has a special meaning and cannot be used as an identifier (c) lvalue Answer: A memory location (d) scope Answer: The part of a program where a variable is accessible/ 2. [25 p ] Consider the following code sequence: char f () { return ’x’; } int g (int i) {return ++i;} int main() { int i=0; float a={1.0, 2.0, 3.0, 4.0}; ...<expr>... } Fill the following table specifying, for each C expression in the left column, its value, its side effect(s), if any, and whether it can serve as an lvalue when replacing < expr > in the code above. For the side effect considerin the code above....
View Full Document

This note was uploaded on 07/08/2011 for the course CGS 3460 taught by Professor Staff during the Summer '08 term at University of Florida.

Page1 / 4

Midterm2_answers - CGS 3460 Summer 2011 Midterm Name UFID In order for your exam to be graded you must agree and sign the following ”On my honor

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online