





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






binary computer language IDE - answerDenoting binary compounds of a nonmetallic or electronegative element (or group) Expression - answerassigns a value to a variable Algorithm - answerseries of steps to solve a problem Debugging - answeridentify and remove errors from (computer hardware or software) Machine Language -instructions that a computer can respond to directly. answera computer programming language consisting of binary or hexadecimal
Assembly Language - answera low-level symbolic code converted by an assembler. High-Level Language - answereasier to use, uses natural language 3 example of good programming practices -can understand what exactly is happening answer1. Adding comments so that another programmer
Flow Control Structures: Name 3 - answer1. If-Else Ex.if (hrs > 40) grossPay = rate40 + 1.5rate*(hrs-40);
else grossPay = rate*hrs;
Nested statements - answerAre if else statements, more than one. if (speed > 65) if (speed > 80)cout << "You're gonna get pulled over!"; elsecout << "You're driving OK for I-5.";
Break; - answerProvides clearer "big-picture" view Shows menu structure effectivelyEach branch is one menu choice
count++; // Update expression } For Loop Example -{ answerfor (count=0;count<3;count++) cout << "Hi "; // Loop Body}
Used for 1, 22, 333, 4444 Also: Collect 20 data points from the user Nested For Loop Example -for (inner=7; inner>2; inner--) answerfor (outer=0; outer<5; outer++) cout << outer << inner; Factorial - answer C Family Tree -2. C++ answer1. C
\n - answernew line: in hexadecimal format \r - answercarriage return (Positions the cursor at the start of the current line.) \t - answer(Horizontal) Tab: Advances the cursor to the next tab stop. \a - answerAlert: Sounds alert noise (bell sound) \ - answerAllows you to place a backslash in a quoted expression intVar++; - answeralso means : intVar = intVar + 1;
What is the valid assignment statement that assigns the value 5 to the variable num_people? - answernum_people = 5;
The value of the expression 20.0 * (9/5) + 32.0 is? - answer 52 9/5 evaluates to 1 using integer division What is the value assigned to the variable x? int x;x= 1/2; - answer 0
C++ reserved keywords - answerif, double, else C++ requires every identifier to be declared prior to use. The type is specified in the declaration. - answerTrue
Built into C++ language -long answerint shortdouble
C++ is case sensitive - answerAlpha, ALPHA, & AlphA are all different identifiers || operator - answer1.it is the logical OR operator
}x = 20; cout << x << endl; -x= 10 answercout << x << endl;
&& operator - answer1. It uses short circuit evaluation