COSC 1436 Final EXAM QUESTIONS AND ANSWERS 100% SOLVED (Newest 2025)
The CPU has 2 main parts: - Correct Answers ✅The control
unit and the arithmetic unit A byte has how many bits? - Correct Answers ✅8 bits Programming Syntax - Correct Answers ✅The rules of grammar used by a language Algorithm - Correct Answers ✅A set of well defined steps for performing a task or solving a problem System Software - Correct Answers ✅The programs that manage the computer hardware and the programs that run on them In a C++ program two slash marks (//) indicate - Correct Answers ✅the beginning of a comment Literal data signs - Correct Answers ✅Values that do not change while the program is running Variable definitions - Correct Answers ✅Every variable needs a definition 1 / 4
COSC 1436 Final EXAM QUESTIONS AND ANSWERS 100% SOLVED (Newest 2025) Numeric data points in C++ can be classified into two general categories - Correct Answers ✅integer and floating point What symbol is used o begin a pre-processor directive - Correct Answers ✅# (pound sign) Directives DO NOT have to end with what symbol? - Correct Answers ✅; (semi-colon) All variables must be - Correct Answers ✅operationally defined The first character of an identifier must be what? - Correct Answers ✅an alphabetic character or an underscore After the first character you may use what characters? - Correct Answers ✅alphabetic characters, number, and underscore characters Which of the following definitions are syntactically correct? - Correct Answers ✅int MyVar; & int myVar Unsigned integers always treat the sign bit as what part of the number? - Correct Answers ✅Magnitude 2 / 4
COSC 1436 Final EXAM QUESTIONS AND ANSWERS 100% SOLVED (Newest 2025)
what form is this constant: 0x75A - Correct Answers ✅Base
8 what character does char c = "a"; compile into - Correct Answers ✅char c Classic C-strings end with what null terminator - Correct Answers ✅\0 what does a floating point number type default to - Correct Answers ✅signed what are true and false represented by in C++ - Correct Answers ✅0 for false values and any non-zero value for true values In C++ the following relationship regarding type size is always true for all platforms - Correct Answers ✅sizeof(short) <= sizeof(int) <= sizeof(long)
The following statement displays: cout << 1 % 4 - Correct
Answers ✅it will produce 1 3 / 4
COSC 1436 Final EXAM QUESTIONS AND ANSWERS 100% SOLVED (Newest 2025) What program causes the program to wait until information is typed at the keyboard and the enter key is pressed - Correct Answers ✅Cin object What operator always follows the Cin object? - Correct Answers ✅>> What operator always follows the Cout object? - Correct Answers ✅<< What operator is used for concatenation? - Correct Answers ✅+ Plus sign what can be used to override the rules of operator precedence in a mathematical expression? - Correct Answers ✅( ) Parenthesis In the following C++ statement, what will be executed first according to the order of precedence?result = 6 - 3 * 2 + 7 - 10 / 2 ; - Correct Answers ✅3 * 2 This I/O manipulator in a cout stream is used to establish a field width for the value immediately following it - Correct Answers ✅setw() (set width)
- / 4