CSCE 3600 FINAL EXAM QUESTIONS & ANSWERS
Optimization of a program that works within a single basic block of code is called
_________________. - Answers - local transformation / optimization
Any macros specified in source code are expanded by the - Answers - preprocessor
What is the role of optimizing the compiler? - Answers - minimize a program's execution
time, memory footprint, storage size, and power consumption
In a C program, the statement int x = 10.5; should be detected as______ - Answers -
syntax error
-g - Answers - Include debug information, no optimization
-O0 - Answers - Default, no optimization
-O1 - Answers - - Do optimizations that don't take too long- CP, CF, CSE, DCE, LICM,
inlining small functions
-O2 - Answers - Take longer optimizing, more aggressive scheduling
-O1 - Answers -
-O3 - Answers - Make space/speed trade-offs: loop unrolling, more inlining
-Os - Answers - Optimize program size
What symbol is used at the beginning of the line in Python to add comments? - Answers
-#
What does the lexical analyzer take as input? - Answers - source code
What is the process of searching for match tokens described using? - Answers - Finite
automata & Regular expressions
These operations are performed in parsing phase of compilation. - Answers - Construct
parse trees
The primary job of the linker is to . - Answers - Combines all of the object files for one
program into a single object file.
Which of the following are false in Python? - Answers - -The numbers 0 (integer), 0.0
(float) and 0j (complex)
Optimization of a program that works within a single basic block of code is called
_________________. - Answers - local transformation / optimization
Any macros specified in source code are expanded by the - Answers - preprocessor
What is the role of optimizing the compiler? - Answers - minimize a program's execution
time, memory footprint, storage size, and power consumption
In a C program, the statement int x = 10.5; should be detected as______ - Answers -
syntax error
-g - Answers - Include debug information, no optimization
-O0 - Answers - Default, no optimization
-O1 - Answers - - Do optimizations that don't take too long- CP, CF, CSE, DCE, LICM,
inlining small functions
-O2 - Answers - Take longer optimizing, more aggressive scheduling
-O1 - Answers -
-O3 - Answers - Make space/speed trade-offs: loop unrolling, more inlining
-Os - Answers - Optimize program size
What symbol is used at the beginning of the line in Python to add comments? - Answers
-#
What does the lexical analyzer take as input? - Answers - source code
What is the process of searching for match tokens described using? - Answers - Finite
automata & Regular expressions
These operations are performed in parsing phase of compilation. - Answers - Construct
parse trees
The primary job of the linker is to . - Answers - Combines all of the object files for one
program into a single object file.
Which of the following are false in Python? - Answers - -The numbers 0 (integer), 0.0
(float) and 0j (complex)