computer science programs, Assignments of Computer science

important programs to be done in class 10

Typology: Assignments

2023/2024

Uploaded on 07/02/2024

tamanna-kohli-1
tamanna-kohli-1 ๐Ÿ‡ฎ๐Ÿ‡ณ

1 / 12

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download computer science programs and more Assignments Computer science in PDF only on Docsity!

COMPUTER APPLICATIONS SS Se SECTION - A (Compulsory Questions) Question 1. . . Choose the correct answer from the given options : 1. 4, If data members are private, what can we do to access them from the class object? (a) Create public member functions to access those data members (b) Create private member functions to access those data members (c) Create protected member functions to access those data members (d) Private data members can never be accessed from outside the class Which among the following best describes encapsulation? (a) It is a way of combining various data members into a single unit (b) It is a way of combining various member functions into a single unit (c) It is a way of combining various data members and member functions into a single unit which can operate on any data (d) It is a way of combining various data members and member functions that operate on those data members into a single unit Which of these access specifiers must be used for main() method? (a) private (b) public (c) protected (d) none of the mentioned If a function has to be called only by using other member functions of the class, what should be the access specifier used for that function? (a) Private (b) Protected (c) Public - (d) Default Which of the following statements are incorrect? (a) public members of class can be accessed by any code in the program (b) private members of class can only be accessed by other members of the class (c) private members of class can be inherited by a subclass, and become protected members in subclass (d) protected members of a class can be inherited by a subclass, and become private members of the subclass What is the process by which we can control what parts of a program can access the members of a class? (a) Polymorphism (b) Abstraction (c) Encapsulation (d) Recursion Which of these is an incorrect Statement? (a) It is necessary to use new operator to initialize an array (b) Array can be initialized using comma separated expressions surrounded by curly braces (c) Array can be initialized when they are declared (d) None of the mentioned