You are on page 1of 3

7/22/23, 6:14 PM CBSE Class 12 Computer Science Classes and Objects In Java MCQs Set A, Multiple Choice Questions

d) Groups
HOTs Questions (/hot-
Answer: Arrays
questions/67/cbse.html)

Question: ________is one dimensional (1-D) data structure that can be used to store list of items like characters, numbers.
VBQs (/value-based-
a) Vector
questions/67/cbse.html)
b) Path
c) Matrix Unseen Passage (/unseen-passage-all-
d) Route classes-and-subjects)
Answer: Vector

Question: ________is used to represent two dimensional (2-D) data structures like table or rows and columns.

a) Vector
b) Path
c) Matrix
d) Route
Answer: Matrix

Question: ________are useful when same operations are to be performed on various elements of the similar type.

a) Matrix's
b) Arrays
c) Dimensions
d) Groups
Answer: Arrays

Question: All the______of an array are stored in memory using contiguous storage space.

a) Index's
b) Values
c) Features
d) Elements
Answer: Elements
 Subjects
Question: Each element is identified by an______position associated with array variable.  Accountancy (/cbse-class-xii-accountancy-
a) Index 442.html)

b) Value  Bio Technology (/cbse-class-xii-bio-technology-


c) Tabular 516.html)
d) Element
https://www.studiestoday.com/mcq-computer-science-cbse-class-12-computer-science-classes-and-objects-java-mcqs-set-312647.html 2/40
7/22/23, 6:14 PM CBSE Class 12 Computer Science Classes and Objects In Java MCQs Set A, Multiple Choice Questions
Answer: Index  Biology (/cbse-class-xii-biology-446.html)

 Business Studies (/cbse-class-xii-business-


Question: In Java_______is an object used to manage list of items. studies-443.html)
a) Array
 Chemistry (/cbse-class-xii-chemistry-447.html)
b) Variable
c) Matrix  Computer Science (/cbse-class-xii-computer-
science-448.html)
d) Element
Answer: Array  Economics (/cbse-class-xii-economics-444.html)

 Engineering Drawing (/cbse-class-xii-


Question: Creating an array is a_______step process. engineering-drawing-654.html)
a) One
 English (/cbse-class-xii-english-121.html)
b) Two
c) Three  Entrepreneurship (/cbse-class-xii-
entrepreneurship-22669.html)
d) Four
Answer: Two  Geography (/cbse-class-xii-geography-309.html)

 Graphics Design (/cbse-class-xii-graphics-


Question: An array object can be created in_____ways. design-625.html)

a) One
 Hindi (/cbse-class-xii-hindi-308.html)
b) Two
 History (/cbse-class-xii-history-307.html)
c) Three
d) Four  Home Science (/cbse-class-xii-home-science-
Answer: Two 120.html)

 Informatics Practices (/cbse-class-xii-informatics-


Question: Which is the way an array object can be created ? practices-505.html)

a) Using new operator and specifying the size.


 Languages (/cbse-class-xii-languages-517.html)
b) Directly initializing the content of array
 Marketing (/cbse-class-xii-marketing-22667.html)
c) Both (A) and (B)
d) None of these  Mathematics (/cbse-class-xii-mathematics-

Answer: Both (A) and (B) 310.html)

 Other Subjects (/cbse-class-xii-other-subjects-


Question: Array with______dimension is known as 1-D array. 534.html)

a) Double  Painting and Sculpture (/cbse-class-xii-painting-


b) Triple and-sculpture-22592.html)

c) Both (A) and (B)


 Physical Education (/cbse-class-xii-physical-
d) Single education-16527.html)
Answer: Single

https://www.studiestoday.com/mcq-computer-science-cbse-class-12-computer-science-classes-and-objects-java-mcqs-set-312647.html 3/40
7/22/23, 6:14 PM CBSE Class 12 Computer Science Classes and Objects In Java MCQs Set A, Multiple Choice Questions
 Physics (/cbse-class-xii-physics-449.html)

Question: For example_________can be seen as a collection of one or more scalar variables.


 Political Science (/cbse-class-xii-political-science-
a) Vector 119.html)
b) Path
 Psychology (/cbse-class-xii-psychology-506.html)
c) Matrix
d) Variable  Sanskrit (/cbse-class-xii-sanskrit-507.html)

Answer: Vector  Sociology (/cbse-class-xii-sociology-627.html)

 Urdu (/cbse-class-xii-urdu-508.html)
Question: Instead of declaring individual variables like marks 1, marks2, marks3, marks4, marks5; one can declare array_________

a) Marks [5]
b) Mark[5]
c) Marks[l-5]
d) All of these
Answer: Marks [5]

Question: Individual variable elements of an array marks [5] can be accessed as :

a) Marks[1], marks[2], marks[3], marks[4], marks [5].


b) Marks[-1], marks[1], marks[2], marks[3], marks [4].
c) Marks[0], marks[1], marks[2], marks[3], marks [4].
d) Marks[-1], marks[0], marks[1], marks[2], marks [3].
Answer: Marks[0], marks[1], marks[2], marks[3], marks [4].

Question: To declare a______array a pair of square brackets [ ] is used after array name or after data type.

a) 2-D
b) 1-D
c) 3-D
d) 4-D
Answer: 1-D

Question: The syntax to declare array is as follows________

a) [ ];  Classes
b);
 Class XII (/cbse-class-xii-118.html)
c) Both (A) and (B)
d) None of these  Class XI (/cbse-class-xi-98.html)

Answer: Both (A) and (B)


 Class X (/cbse-class-x-10.html)

https://www.studiestoday.com/mcq-computer-science-cbse-class-12-computer-science-classes-and-objects-java-mcqs-set-312647.html 4/40

You might also like