Computer Programming 2 Exam Questions
With Correct Answers A+
Compiler - Answer✔translate entire program at once
interpreter - Answer✔translate one line at a time
escape - Answer✔\n indicates new line
function header - Answer✔return type, name of function, function parameters
logical error - Answer✔good syntax, but doesn't do what you intended
octothorp - Answer✔#
preprocessor - Answer✔what to do before program compiles
scope - Answer✔region in which the variable exists
syntax - Answer✔rules of any language
machine language - Answer✔binary, 1's and 0's, the most basic form of computer language
translator - Answer✔checks program for syntax errors
+= - Answer✔add and assign operator
& - Answer✔refers to memory address of variable
cast - Answer✔transform one data type to another data type
check digit - Answer✔digit at the end of a number that validates authenticity
mixed expression - Answer✔operands have different data types
% - Answer✔modulus operator, returns the remainder of integer division
! - Answer✔not operator
++ - Answer✔prefix and postfix increment before and after variable
dead logical path - Answer✔path with unreachable code
if else structure - Answer✔takes one action if this or another action if that logic is false
1|Page