EECS 183 Exam 1 || All Answers Are Correct.
how to cin everything (including spaces) correct answers getline(cin, stringVar)
cout operator correct answers <<
cin operator correct answers >>
range of int variables correct answers +/- 2 billion (2,000,000,000)
how to initialize a constant correct answers CONST_VAR
is doubleVar = 36 * intVar an int or double? correct answers still an int (will be a double with
.00)
what is == correct answers equal to operator
what is = correct answers assignment operator
function declaration correct answers return type function name (parameter list);
function definition correct answers return type function name(parameter list) {
code of function }
ASCII order correct answers 0 -9, A - Z, a -z
how to compare floating point correct answers NOT ==
fabs(x - y) < .0001
NOT !=
fabs(x - y) > .0001
order operators evaluated correct answers ( ) ! arithmetic ><= == != & | && ||
what starts every program correct answers #include<iostream>
using namespace std;
int main() {
return 0;
}
how to name variable correct answers camelCase. snake_case
casting correct answers (int)(x)
or (double)(var)
parameter correct answers variable declared within parentheses of a function
argument correct answers data passed to function
scope of variables correct answers whatever { } in which they are declared
how to cin everything (including spaces) correct answers getline(cin, stringVar)
cout operator correct answers <<
cin operator correct answers >>
range of int variables correct answers +/- 2 billion (2,000,000,000)
how to initialize a constant correct answers CONST_VAR
is doubleVar = 36 * intVar an int or double? correct answers still an int (will be a double with
.00)
what is == correct answers equal to operator
what is = correct answers assignment operator
function declaration correct answers return type function name (parameter list);
function definition correct answers return type function name(parameter list) {
code of function }
ASCII order correct answers 0 -9, A - Z, a -z
how to compare floating point correct answers NOT ==
fabs(x - y) < .0001
NOT !=
fabs(x - y) > .0001
order operators evaluated correct answers ( ) ! arithmetic ><= == != & | && ||
what starts every program correct answers #include<iostream>
using namespace std;
int main() {
return 0;
}
how to name variable correct answers camelCase. snake_case
casting correct answers (int)(x)
or (double)(var)
parameter correct answers variable declared within parentheses of a function
argument correct answers data passed to function
scope of variables correct answers whatever { } in which they are declared