Question: Question 1 Which concept of OOP is false for C++? O Code can be written without using classes O At least one object should

Question 1 Which concept of OOP is false for C++? O Code

Question 1 Which concept of OOP is false for C++? O Code can be written without using classes O At least one object should be declared in code O A class must have member functions O Code must contain at least one class Question 2 What is the difference between struct and class in C++? O All members of a structure are public and structures don't have virtual functions O Members of a class are private by default and members of struct are public by default. O All of the given O All members of a structure are public and structures don't have constructors and destructors Question 6 Which of the following cannot be passed to a function in C++? O Constant O Header file O Array O Structure Question 7 Which is not a feature of OOP in general definitions? O Modularity O Code reusability O Duplicate/Redundant Data O Efficient code Question 16 } What is the output of this program? class Test{ int x; }; int main() { Test t; cout < < t.x; return 0; O-1 O Garbage value O Error O O Question 20 If an object named Apple has a member named "price", what is the command to assign a value of 15 into it? O Apple.price = 15; O Apple(15); O Price(15); O Apple.price == 15; 1 pts 1 pts 1 pts 1 pts 1 pts 1 pts

Step by Step Solution

3.42 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Question 1 ANSoption d All the other parts are true for C code It is not necessary for a c code to ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!