Podcast
Questions and Answers
In Java, what does the term 'static' refer to in a class declaration?
In Java, what does the term 'static' refer to in a class declaration?
- Scope of the variable within the class
- Ability of the compiler to determine the location in memory of the declared variable (correct)
- Ability of the variable to change during program execution
- Location of the variable in memory during program execution
In the context of compiler design, when does a static policy make decisions?
In the context of compiler design, when does a static policy make decisions?
- At compile time (correct)
- After program execution
- At run-time
- During program execution
What type of scope does a language have if the scope of a declaration can be determined only by looking at the program?
What type of scope does a language have if the scope of a declaration can be determined only by looking at the program?
- Dynamic scope
- Run-time scope
- Static scope (correct)
- Lexical scope
What is the main difference between names and identifiers?
What is the main difference between names and identifiers?
What does a variable refer to?
What does a variable refer to?
What is the most striking difference between binding and storage?
What is the most striking difference between binding and storage?
What is the scope of declaration for an identifier local to a recursive procedure?
What is the scope of declaration for an identifier local to a recursive procedure?
When does binding time occur?
When does binding time occur?
What does object lifetime refer to?
What does object lifetime refer to?
What can names do that storage cannot?
What can names do that storage cannot?
Flashcards are hidden until you start studying