V5Questions - Volume Five Questions, Projects, and Lab...

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

View Full Document Right Arrow Icon
Volume Five Questions, Projects, and Lab Exercises Beta Draft - Do not distribute © 2001, By Randall Hyde Page 1399 Questions, Projects, and Labs Chapter Six 6.1 Questions 1) What is a First Class Object ? 2) What is the difference between deferred and eager evaluation? 3) What is a thunk? 4) How does HLA implement thunk objects? 5) What is the purpose of the HLA THUNK statement? 6) What is the difference between a thunk and procedure variable? 7) What is the syntax for declaring a thunk as a formal parameter? 8) What is the syntax for passing a thunk constant as an actual parameter? 9) Explain how an activation record’s lifetime can affect the correctness of a thunk invocation. 10) What is a trigger and how can you use a thunk to create a trigger? 11) The yield statement in an iterator isn’t a true HLA statement. It’s actually equivalent to something else. What is it equivalent to? 12) What is a resume frame? 13) What is the problem with breaking out of a FOREACH loop using the BREAK or BREAKIF statement? 14) What is the difference between a coroutine and a procedure? 15) What is the difference between a coroutine and a generator? 16) What is the purpose of the coret call in the coroutines class? 17) What is the limitation of a coret operation versus a standard RET instruction? 18) What is the lifetime of the automatic variables declared in a coroutine procedure? 19) Where is the easiest place to pass parameters between two coroutines? 20) Why is it difficult to pass parameters between coroutines on the stack? 21) State seven places you can pass parameters between two procedures. 22) State at least six different ways you can pass parameters. 23) Where is the most efficient place to pass parameters? 24) Where do most high level languages pass their parameters? 25) What some problems with passing parameters in global variables? 26) What is the difference between the Pascal/HLA and the CDECL parameter passing mechanisms? 27) What is the difference between the Pascal/HLA and the STDCALL parameter passing mechanisms? 28) What is the difference between the STDCALL and the CDECL parameter passing mechanisms? 29) Provide one reason why some assembly code might require the caller to remove the parameters from the stack. 30)
Background image of page 1

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

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

Page1 / 6

V5Questions - Volume Five Questions, Projects, and Lab...

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