Exam2 - languages? (b) What are the four categories of...

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

View Full Document Right Arrow Icon
ICS 313 Fundamentals of Programming Languages (022) Exam II (20%) (75 Minutes) Student ID: N a m e : Question Max Mark 1 30 2 25 3 20 4 25 Total 100 13 May 2003
Background image of page 1

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

View Full DocumentRight Arrow Icon
Question 1 [5, 10, 15] (a) What is the difference between reserved words and keywords? (b) What are the main characterizing attributes of variables? (c) What are the types (categories) of storage binding for scalars, and their advantages and disadvantages. For each category when is the type bound. For each, name a language that uses that method.
Background image of page 2
Question 2 [10, 15] (a) What advantages do Java reference type variables have over the pointers in other
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: languages? (b) What are the four categories of arrays? Explain them, their advantages, disadvantages, similarities and differences. Question 3 [10, 10] (a) Define the following terms: operator associativity, and type coercions. (b) What is one possible disadvantage of treating the assignment operator as if it were an arithmetic operator? Question 4 [15, 10] (a) What are the design issues for multiple selection statements? (b) What is the main reason user-located loop control statements were invented?...
View Full Document

Page1 / 5

Exam2 - languages? (b) What are the four categories of...

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

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