Save
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

csc 211

ALL review topics

QuestionAnswer
OOP and procedural programming A class is basically a structure with member functions as well as member data. Classes are central to the programming methodology known as object-oriented programming.
OOP CLASS A class is a type that is similar to a structure type, but a class type normally has member functions as well as member variables.
OOP CLASS TYPE OBJECT The value of a variable of a class type is called an object (therefore, when speaking loosely, a variable of a class type is also often called an object). An object has both data members and function members.
PROCEDURAL ABSTRACTION means that your function should be written so that it can be used like a black box. This means that the programmer who uses the function should not need to look at the body of the function definition to see how the function works.
Block scope s some C++ code enclosed in braces. The variables declared in a block are local to the block, and so the variable names can be used outside the block for something else (such as being reused as the names for different variables).
PARAMETER Many people use the term parameter for both what we call formal parameters and what we call arguments.
example parameter int sum(int a,int b){ return a+b; } int a=sum(1,2);
evaluating expressions para comes first, ++ -- comes 2nd, * / comes 3rd and +- comes last. int = only put first value before decimal place double= put first and second value and round
overloading by return double mpg(double miles, double gallons) //Returns miles per gallon. { return (miles / gallons); } cout << mpg(45, 2) << " miles per gallon"; Savitch, Walter (2015-04-15). Absolute C++ (Page 168). Pearson Education. Kindle Edition.
overloading bycall reference PIZZA ARITHMATIC
boolean is an expression that results in a boolean value, that is, in a value of either true or false.
precedence rules for boolean Anything inside parentheses is done first. Arithmetic is done before equality and inequality tests. Logical operations are done after equality and inequality tests."Not" (!) is done before "and" (&&) "And" (&&) is done before "or" (||). Assign=last
overloading by different value use the void function in int main and anything not given value wise will be = to the above values given at the end.
Call by value parameter is like a blank a place holder to fill in the actual values that are going to be call by int main. local variable at the top. i.e. Law office
call-by-reference parameter must be marked in some way so that the compiler will know. The way that you indicate a call-by-reference parameter is to attach the ampersand sign, &, to the end of the type name in the formal parameter list. i.e. swap integers
call by reference i.e. void getInput(double& receiver) { cout << "Enter input number:\n"; cin >> receiver; }
void swap values cannot equal eachother through with same value, needs to be set first by an item not used-- temp = fnum. fnum=secnum; then equal to eachother than temp = secnum.
call by value and call by reference can be used via pg 158-159 void goodStuff(int& par1, int par2, double& par3);
Popular Computers sets

 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards