PROGRAMMING LOGIC AND DESIGN
TEST 1 NEWEST (2025/2026) QUESTIONS
AND CORRECT ANSWERS | A+ GRADE
software engineering Correct Answer the application of
traditional engineering methodologies and techniques to
the development of software
syntax Correct Answer the formal rules governing how
valid instructions are written in a programming language
semantics Correct Answer the set of rules that determines
the meaning of instructions written in a programming
language
metalanguage Correct Answer a language that is used to
write the syntax rules for another language
identifier Correct Answer a name associated with a
function or data object and used to refer to that function or
data object
write a line of code that includes an identifier for my dogs,
total cars, and total cash flow Correct Answer my_dogs
myCars
Tot_CashFlow
,reserved word Correct Answer a word that has special
meaning in C++; it cannot be used as a programmer
defined identifier
example of reserved words in C++ Correct Answer int
main()
data type Correct Answer a specific set of data values
along with a set of operations on those values
data types- char Correct Answer describes data consisting
of one alphanumeric character-- a letter, a digit, or special
symbol
data types- string Correct Answer a sequence of
characters, such as a word, name, or sentence, enclosed
in double quotes. string data types must be typed entirely
on one line or they are invalid.
data types- int Correct Answer for working with integer
numbers
data types- float Correct Answer for working with real
numbers that have a decimal point
declaration Correct Answer a statement that associates an
identifier with a data object, a function, or data type so that
the programmer can refer to that item by name.
, variable Correct Answer a location in memory referenced
by an identifier, that contains a data value that can be
changed
write a line of code that correctly declares a variable with a
decimal point under the titles, payRate, hours, wages, and
empNum Correct Answer float payRate;
float hours;
float wages;
float empNum
write a line of code that correctly declares letter,
middleInitial, and ch as characters Correct Answer char
letter;
char middleInitial;
char ch;
constants Correct Answer all single characters (enclosed
in single quotes) and strings (enclosed in double quotes)
write a line of code using a constant. first, middle, last,
name Correct Answer const string FIRST = "William";
const string MIDDLE = "David";
const string LAST = "Braley";
literal value Correct Answer any constant value written in a
program
named constant (symbolic constant) Correct Answer a
location In memory referenced by an identifier, that
contains a data value that cannot be changed
TEST 1 NEWEST (2025/2026) QUESTIONS
AND CORRECT ANSWERS | A+ GRADE
software engineering Correct Answer the application of
traditional engineering methodologies and techniques to
the development of software
syntax Correct Answer the formal rules governing how
valid instructions are written in a programming language
semantics Correct Answer the set of rules that determines
the meaning of instructions written in a programming
language
metalanguage Correct Answer a language that is used to
write the syntax rules for another language
identifier Correct Answer a name associated with a
function or data object and used to refer to that function or
data object
write a line of code that includes an identifier for my dogs,
total cars, and total cash flow Correct Answer my_dogs
myCars
Tot_CashFlow
,reserved word Correct Answer a word that has special
meaning in C++; it cannot be used as a programmer
defined identifier
example of reserved words in C++ Correct Answer int
main()
data type Correct Answer a specific set of data values
along with a set of operations on those values
data types- char Correct Answer describes data consisting
of one alphanumeric character-- a letter, a digit, or special
symbol
data types- string Correct Answer a sequence of
characters, such as a word, name, or sentence, enclosed
in double quotes. string data types must be typed entirely
on one line or they are invalid.
data types- int Correct Answer for working with integer
numbers
data types- float Correct Answer for working with real
numbers that have a decimal point
declaration Correct Answer a statement that associates an
identifier with a data object, a function, or data type so that
the programmer can refer to that item by name.
, variable Correct Answer a location in memory referenced
by an identifier, that contains a data value that can be
changed
write a line of code that correctly declares a variable with a
decimal point under the titles, payRate, hours, wages, and
empNum Correct Answer float payRate;
float hours;
float wages;
float empNum
write a line of code that correctly declares letter,
middleInitial, and ch as characters Correct Answer char
letter;
char middleInitial;
char ch;
constants Correct Answer all single characters (enclosed
in single quotes) and strings (enclosed in double quotes)
write a line of code using a constant. first, middle, last,
name Correct Answer const string FIRST = "William";
const string MIDDLE = "David";
const string LAST = "Braley";
literal value Correct Answer any constant value written in a
program
named constant (symbolic constant) Correct Answer a
location In memory referenced by an identifier, that
contains a data value that cannot be changed