PROGRAM DESIGN 8TH EDITIONQUESTIONS WITH
ANSWERS
Computer program - CORRECT ANSWER✅✅✅a sequence of statements whose objective
is to accomplish a task
Programming - CORRECT ANSWER✅✅✅process of planning and creating a program
Assignment statement - CORRECT ANSWER✅✅✅instructs the system to evaluate
expression an store the result in memory space
Variable - CORRECT ANSWER✅✅✅memory location that can be changed
Subprogram (function) - CORRECT ANSWER✅✅✅a collection of statements, and when it
is activated, or executed, it accomplishes something
Predefined (Standard) functions - CORRECT ANSWER✅✅✅are already written and
provided as part of the system
Example of function for C++ - CORRECT ANSWER✅✅✅main
Semantic rules - CORRECT ANSWER✅✅✅determine the meaning of instructions in a
programming language
Syntax rules - CORRECT ANSWER✅✅✅determine the validity of instructions in a
programming language.
Programming language - CORRECT ANSWER✅✅✅a set of rules, symbols, and special
words
, Comments - CORRECT ANSWER✅✅✅notes not for the compiler, but the reader, for
clarity (like console.log())
Token - CORRECT ANSWER✅✅✅smallest individual unit of a program written in any
language (special symbols, word symbols and identifiers), no character can come in between
special symbols - CORRECT ANSWER✅✅✅comma, semicolon, colon, asterisk, <=, !=,
==, ?, >=, plus sign, minus, slash, period and a blank.
Commas separate items in a list
Semicolons are used at the end of a Java statement.
A blank is created by pressing space-bar once
reserved words/keywords - CORRECT ANSWER✅✅✅Identifiers that are part of the built-
in syntax of a language (int, float, double, char)
indentifiers - CORRECT ANSWER✅✅✅variables: consists of letters, digits, and the
underscore character i(case sensitive)// example: first, conversion, payRate
whitespaces - CORRECT ANSWER✅✅✅blanks, tabs, and newline characters
objective of a C++ program - CORRECT ANSWER✅✅✅to manipulate data
Data type - CORRECT ANSWER✅✅✅simple data type, structured data type, pointers
Simple data type - CORRECT ANSWER✅✅✅integral, floating point, enumeration
Integral - CORRECT ANSWER✅✅✅numbers with no decimal
floating point - CORRECT ANSWER✅✅✅decimal numbers