Programming 2 OOP Word Scramble
|
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
Normal Size Small Size show me how
| Question | Answer |
| 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