Module 1 Quiz >>> What does a compiler do >>> Getting Started with Go
What does a compiler do?
True or False:
Concurrency always results in some performance improvement.
That’s correct! Concurrency enables parallelism, but if parallel hardware is not present, speedup will not be achieved because multiple tasks cannot execute at the same time.
Which of the following is an example of a short variable declaration?
The type of a variable determines which of the following aspects of that variable? (Select ALL that are correct.)
Correct! In declaring a variable’s type, the programmer specifies the amount of memory that needs to be allocated for that variable.
Correct! The variable’s type defines the nature of the variable along with the types of operations that can be performed on it.
Correct! The variable’s type specifies the nature of the data that can be contained (for example, integer vs. floating point number).
What does an interpreter do?
What is the name of the package from which an executable program is generated?
What is the scope of a variable?
That’s correct! A variable’s scope defines the parts of a program that can “see” that variable.
What is Garbage Collection?