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

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.

Question

Pick out the other definition of objects.
click to flip
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't know

Question

What is the difference between struct and class in C++?
Remaining cards (25)
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

Programming 2 OOP

QuestionAnswer
Pick out the other definition of objects. instance of the class
What is the difference between struct and class in C++? Members of a class are private by default and members of struct are public by default.
Which of the following has a correct C++ class definition? class Student {};
If there is a class named Student and you want to create an object name "firstyear", what would be the correct syntax Student firstyear
Blueprint of an object Class
What operator is used to access a data member or a member function? dot (.) operator
Which is not a feature of OOP in general definitions? Duplicate/Redundant Data
Refers to binding together the data and the functions that manipulate them Encapsulation
Objects created are based on what? class
Which of the following best defines a class? Blueprint of an object
An object is a _________________ of a class an instance
If a class is named Car and you will create an object named SportsCar, what would be the statement? Car SportsCar;
Which of the following are available only in the class hierarchy chain? Protected data members
What is the output of this program? class Test { int x; }; int main() { Test t; cout << t.x; return 0; } Error
What symbol is used to define a function outside of the class? ::
What is the difference between a struct and a class in C++? A struct cannot have member functions
Which of the following concepts of OOPS means exposing only necessary information to the client? Data hiding
Which of the following term is used for a function defined inside a class? Member function
Mistakes 2
What is the additional feature in classes that were not in structures? Member Functions
It is an identifiable entity with some characteristics and behavior Object
A behavior an object Method
Which of the following is an OOP language? C++
Which of the following is an abstract data type? class
The default access specifier for the class members is: private
If an object named Apple has a member named "price", what is the command to assign a value of 15 into it? Apple.price = 15;
Created by: gridlockalpha
 

 



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