1|Page
PSU Computer Science 101 Exam 1 Study ||Verified
Exam!!|| Most Recent Exam Actual Complete Real
Exam Questions And Correct Answers (Verified
Answers) Already Graded A+ | Guaranteed Success!!
Newest Exam!!!
A compiler uses ____ as input and generates ____ as
output.
a. binary executable files; object files
b. object files; binary executable files
c. source code; object code
d. object code; source code - Answer-c. source code;
object code
A(n) ____ is a software utility that begins with the first
statement in a program, preprocesses it into a binary
instruction, and then executes it.
a. preprocessor
b. linker
c. interpreter
d. compiler - Answer-c. interpreter
,2|Page
Which action can cause a runtime error in a program?
a. dividing a number by zero
b. inserting a keyword in the wrong position
c. leaving quotes or brackets unpaired
d. using the wrong variable in a calculation - Answer-a.
dividing a number by zero
Which action will cause a syntax error?
a. accessing a file that does not exist
b. leaving a keyword out of a statement
c. using the wrong expression for a decision
d. forgetting the order of operations - Answer-b. leaving a
keyword out of a statement
Which action can cause a logic error in a program?
a. inserting a keyword in the wrong position
b. forgetting to declare a variable before using it
c. using the wrong expression for a decision
d. dividing a number by zero - Answer-c. using the wrong
expression for a decision
, 3|Page
When you install Python, it comes with a built-in, easy-to-
use integrated development environment called _____.
a. REPL
b. PyPi
c. PyCharm
d. IDLE - Answer-d. IDLE
When using IDLE, you choose shell mode _____.
a. in order to save your work for future use
b. by saving your file and then pressing F5
c. when you want to quickly test lines of code
d. by closing the IDLE window on your desktop - Answer-
c. when you want to quickly test lines of code
Which phrase describes character and string literals?
a. words used by a programming language for a specific
purpose
b. named memory locations that hold data that is not
changed by the statements in a program
c. data such as letters, symbols, words, and sentences
PSU Computer Science 101 Exam 1 Study ||Verified
Exam!!|| Most Recent Exam Actual Complete Real
Exam Questions And Correct Answers (Verified
Answers) Already Graded A+ | Guaranteed Success!!
Newest Exam!!!
A compiler uses ____ as input and generates ____ as
output.
a. binary executable files; object files
b. object files; binary executable files
c. source code; object code
d. object code; source code - Answer-c. source code;
object code
A(n) ____ is a software utility that begins with the first
statement in a program, preprocesses it into a binary
instruction, and then executes it.
a. preprocessor
b. linker
c. interpreter
d. compiler - Answer-c. interpreter
,2|Page
Which action can cause a runtime error in a program?
a. dividing a number by zero
b. inserting a keyword in the wrong position
c. leaving quotes or brackets unpaired
d. using the wrong variable in a calculation - Answer-a.
dividing a number by zero
Which action will cause a syntax error?
a. accessing a file that does not exist
b. leaving a keyword out of a statement
c. using the wrong expression for a decision
d. forgetting the order of operations - Answer-b. leaving a
keyword out of a statement
Which action can cause a logic error in a program?
a. inserting a keyword in the wrong position
b. forgetting to declare a variable before using it
c. using the wrong expression for a decision
d. dividing a number by zero - Answer-c. using the wrong
expression for a decision
, 3|Page
When you install Python, it comes with a built-in, easy-to-
use integrated development environment called _____.
a. REPL
b. PyPi
c. PyCharm
d. IDLE - Answer-d. IDLE
When using IDLE, you choose shell mode _____.
a. in order to save your work for future use
b. by saving your file and then pressing F5
c. when you want to quickly test lines of code
d. by closing the IDLE window on your desktop - Answer-
c. when you want to quickly test lines of code
Which phrase describes character and string literals?
a. words used by a programming language for a specific
purpose
b. named memory locations that hold data that is not
changed by the statements in a program
c. data such as letters, symbols, words, and sentences