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

Answer: Two

Question: To save space, if the characters are________an array of bytes should be used instead of array of characters.

a) ASCII
b) Coded
c) ACSII
d) ACIIS
Answer: ASCII

Question: A_______can be used with array of bytes as an argument.

a) Method
b) Destructor
c) Variable
d) Constructor
Answer: Constructor

Question: When two String objects are created using same string literals, memory space is not allocated for_______object.

a) First
b) Second
c) Both (A) and (B)
d) None of these
Answer: Second

Question: Separate memory is allocated when string objects are created using_______operator even if strings are identical.

a) New
b) new
c) int
d) Float
Answer: new

Question: Method boolean equals(String str) returns_______if invoking string is same as str.

a) True
b) False
c) Can't say
d) None of these
Answer: True

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

Question: A_____contains both data and program code (functions referred to as methods).

a) Function
b) Class
c) Attribute
d) Code
Answer: Class

Question: When the class is executed, the______method is called and the application runs as a normal program.

a) Main
b) Sub
c) Super
d) Super Main
Answer: Main

Question: In earlier programs no data______were used.

a) Codes
b) Classes
c) Members
d) Applications
Answer: Members

Question: While it is possible to use only a single class in a______project, this is not a good practice for large applications.

a) Java
b) C++
c) PHP
d) C
Answer: Java

Question: When designing software, the entire_____should be divided into simpler components that perform logically related tasks.

a) Code
b) Class
c) Program
d) Application
Answer: Application

https://www.studiestoday.com/mcq-computer-science-cbse-class-12-computer-science-classes-and-objects-java-mcqs-set-312647.html 27/40
7/22/23, 6:14 PM CBSE Class 12 Computer Science Classes and Objects In Java MCQs Set A, Multiple Choice Questions
Question: For each above mentioned component or module, a_____can be created.

a) Function
b) Class
c) Attribute
d) Code
Answer: Class

Question: When a program contains two or more classes, only one class can cantain the_____method.

a) Main()
b) Major
c) Main()
d) Minor
Answer: Main()

Question: What is SciTE editor ?

a) SCintilla based Text Editor


b) Scientific based Text Editor
c) Sourceful Text Editor
d) Syntax Text Editor
Answer: SCintilla based Text Editor

Question: A class is a template for multiple objects with similar features.

a) Function
b) Class
c) Attribute
d) Code
Answer: Class

Question: ________embody all the features of a particular set of objects.

a) Codes
b) Classes
c) Members
d) Applications
Answer: Classes

Question: For example, class 'Room' is a______for all rooms with their common properties.

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

You might also like