Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
1.2k views
in Computer by (83.5k points)
edited by

(a) Define abstraction. 

(b) Differentiate between searching and sorting. 

(c) Write a difference between the functions is Upper Case ( ) and to Upper Case ( ). 

(d) How are private members of a class different from public members ? 

(e) Classify the following as primitive or non- primitive data types : 

(i) char

(ii) arrays

(iii) int

(iv) classes

1 Answer

+1 vote
by (92.4k points)
selected by
 
Best answer

(a) Abstraction is one of the key concepts of object-oriented programming (OOP) languages. Its main goal is to handle complexity by hiding unnecessary details of the object created by user. It enables the user to implement more complex logic on top of the provided abstraction without understanding or even thinking about all the hidden complexity. For example the forward and backward movement of the stereo set is abstracted by buttons like  and 

(b) Searching is the process of finding one or all locations of any element in the given list of data and deciding if the element is present in the list or not. If that element is present in the list of data then searching is said to be successful otherwise unsuccessful. Sorting is the process of ordering the given data list in ascending or descending manner (numerically, alphabetically or lexicographically). 

(c) is Upper Case () is an in-built function of Java, it is used to check if the letters of the given string is in either uppercase or not. It returns true if all letters are in uppercase otherwise returns false. to Upper Case () is also an implicit function of Java that is used to change the lowercase letters of the given string to uppercase. 

(d) Private members can be accessed only within the class where they are declared, not outside the class, but public members can be accessed inside as well as outside the class. 

(e) (i) char → primitive data type 

(ii) arrays → non-primitive data type 

(iii) int → primitive data type 

(iv) classes → non-primitive data type

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...