Quiz1_answers - Programming Using C Quiz 1 Name 1[20 p Define the following terms(a[6 p comment explanatory annotation inserted in the source code

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: Programming Using C Quiz 1 Name: 1. [20 p ] Define the following terms: (a) [6 p ] comment: explanatory annotation inserted in the source code which is ingnored by the compiler (b) [7 p ] variable: memory location with a name (c) [7 p ] data type: a set of vaues with the operations defined on them 2. [20 p ] (a) [5 p ] What, if anything, is wrong with the following program? int main(){ int While; While=0; return 0; } Answer: Nothing is wrong with this program (b) [15 p ] List all the tokens in this program and classify each as keyword, identifier, operator or special symbol. Answer: int - keyword main - identifier ( - special symbol ) - special symbol {- special symbol int - keyword While - identifier ; - special symbol While - identifier = - operator 0 - number literal ; - special symbol return - keyword 0 - number literal ; - special symbol }- special symbol 3. [30 p ] What is the output of the following statements? For partial credit, give intermediate results of subexpression evaluation.give intermediate results of subexpression evaluation....
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 / 2

Quiz1_answers - Programming Using C Quiz 1 Name 1[20 p Define the following terms(a[6 p comment explanatory annotation inserted in the source code

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