Minggu, 07 April 2013

Concepts of Programming Languages - Chapter 5

Review Question
1. Are name case sensitive ? Are the special words of the language reserved words or keywords ?
4. Two or more variables name that can be used to access the same memory location.
5.  Two pointers variables are aliases when they point to the same memory location.
7. Binding is an association between an attribute and an entity. Binding time is the time which binding takes place.
9. Static binding if it first occurs before run time begins and remain s unchanged throughout program execution Dynamic binding if the binding first occurs during run time or can change in the course of program execution.
18. Such variables are typically stack dynamic, so their storage is allocated when the section is entered and deallocated when the section is exited.

Problem Set
1. Student , Student123 because in C we can't use _ ,etc. and begin it with number for the variables name.
4. Because a variable must have data type before it assigned. Range int type in Java -2,147,483,648 to +2,147,483,648.
10.
1 -> a,b,c (definition 1)
2 -> a (definition 1) b (definition 2) c,d,e (definition 3)
3 -> a (definition 1) b,c d (definition 2)
4 -> a,b,c (definition 1)

Tidak ada komentar:

Posting Komentar