CBSE Class 12 Computer Science Classes and Objects In Java MCQs Set A

Refer to CBSE Class 12 Computer Science Classes and Objects In Java MCQs Set A provided below available for download in Pdf. The MCQ Questions for Class 12 Computer Science with answers are aligned as per the latest syllabus and exam pattern suggested by CBSE, NCERT and KVS. Multiple Choice Questions for Classes and Objects In Java are an important part of exams for Class 12 Computer Science and if practiced properly can help you to improve your understanding and get higher marks. Refer to more Chapter-wise MCQs for CBSE Class 12 Computer Science and also download more latest study material for all subjects

MCQ for Class 12 Computer Science Classes and Objects In Java

Class 12 Computer Science students should refer to the following multiple-choice questions with answers for Classes and Objects In Java in Class 12.

Classes and Objects In Java MCQ Questions Class 12 Computer Science with Answers

Question: An_______is a variable representing a collection of homogeneous type of elements.

a) Arrangement

b) Array

c) Assortment

d) Group

Answer: Array

 

Question: ________are useful to represent vector, matrix and other multi-dimensional data.

a) Arrangements

b) Arrays

c) Assortments

d) Groups

Answer: Arrays

 

Question: ________is one dimensional (1-D) data structure that can be used to store list of items like characters, numbers.

a) Vector

b) Path

c) Matrix

d) Route

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

 

Question: Each element is identified by an______position associated with array variable.

a) Index

b) Value

c) Tabular

d) Element

Answer: Index

 

Question: In Java_______is an object used to manage list of items.

a) Array

b) Variable

c) Matrix

d) Element

Answer: Array

 

Question: Creating an array is a_______step process.

a) One

b) Two

c) Three

d) Four

Answer: Two

 

Question: An array object can be created in_____ways.

a) One

b) Two

c) Three

d) Four

Answer: Two

 

Question: Which is the way an array object can be created ?

a) Using new operator and specifying the size.

b) Directly initializing the content of array

c) Both (A) and (B)

d) None of these

Answer: Both (A) and (B)

 

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

a) Double

b) Triple

c) Both (A) and (B)

d) Single

Answer: Single

 

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

a) Vector

b) Path

c) Matrix

d) Variable

Answer: Vector

 

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) [ ];

b);

c) Both (A) and (B)

d) None of these

Answer: Both (A) and (B)

 

Question: For example, to store the marks obtained by a student in five tests in Mathematics subject, an array of______integer elements can be used.

a) Five

b) Six

c) Four

d) Seven

Answer: Five

 

Question: The array marks refers to______location where five integer values are stored.

a) Chip

b) Memory

c) Variable

d) Address

Answer: Memory

 

Question: Array object named 'marks' with size for 5 elements can be created as follows :

a) Int marks [ ] = new int [5];

b) Int[ ] marks = new int [5];

c) Both (A) and (B)

d) None of these

Answer: Both (A) and (B)

 

Question: Integer of int data type uses________bytes storage space.

a) 2

b) 3

c) 4

d) 5

Answer: 4

 

Question: Thus array marks requires________bytes in contiguous locations in memory.

a) 5 x 4 = 20

b) 5 x 5 = 25

c) 5 x 3 = 15

d) 5 x 2 = 10

Answer: 5 x 4 = 20

 

Question: To refer an element of an array, an index or subscript is used in______after array variable name.

a) Curly bracket { }

b) Square bracket [ ]

c) Round bracket ()

d) None of these

Answer: Square bracket [ ]

 

Question: ______specifies the position of an element in an array.

a) Number

b) Index

c) Variable name

d) Element

Answer: Index

 

Question: Index value starts from_______

a) 5

b) 4

c) 1

d) 0

Answer: 0

 

Question: The array variable marks[5] has an index value from_______

a) 1 to 5

b) 0 to 4

c) 0 to 5

d) 1 to 4

Answer: 0 to 4

 

Question: In array variable marks [5], marks [0] refers to the_______element.

a) Last

b) Second

c) First

d) None of these

Answer: First

 

Question: In array variable marks [5], marks [4] refers to the_______element.

a) Last

b) Second

c) First

d) Fourth

Answer: Last

 

Question: An object is a_______to variable.

a) Position

b) Location

c) Address

d) Reference

Answer: Reference

 

Question: Array being an object in Java, array name is also a______variable.

a) Position

b) Location

c) Address

d) Reference

Answer: Reference

 

Question: Array name contains_______to memory location where the array elements are stored.

a) Position

b) Location

c) Address

d) Reference

Answer: Reference

 

Question: As array is an object, so its elements are initialized with_______values.

a) Default

b) Initial

c) Declared

d) Index

Answer: Default

 

Question: 1-D array is initialized using_______separated values of data elements in braces { }.

a) Semi colon

b) Comma

c) Colon

d) Full stop

Answer: Comma

 

Question: Which of the following is correct initialization of 1-D array ?

a) Int marks[ ] = {90, 70, 77};

b) Int [ ] marks = {90, 70, 77};

c) Int marks} ] = {90; 70; 77}

d) Both (A) and (B)

Answer: Both (A) and (B)

 

Question: When an array is initialized while creating, it does not need the use of_______operator.

a) New

b) New

c) Int

d) Float

Answer: New

 

Question: The array size is same as the number of values specified in________

a) Braces

b) Index

c) Default value

d) Initialization

Answer: Braces

 

Question: Class methods are declared as________and can be referred without any object in the class.

a) Private

b) Void

c) Package

d) Static

Answer: Static

 

Question: Every element of an array is an individual variable that can be referred by using_______

a) Index

b) Value

c) Tabular

d) Element

Answer: Index

 

Question: Like variables, to change the value of an element, an assignment statement can be used which refers a variable element on______side.

a) Right

b) Left

c) Middle

d) None of these

Answer: Left

 

Question: Instead of writing the code, various static methods provided by Java using_______class can be used.

a) Java.Arrays

b) Java.utility

c) Java.util.Arrays

d) All of these

Answer: Java.util.Arrays

 

Question: Methods sort() and fill() are part of______class.

a) JavaArrays

b) Java.util

c) Java.util.Arrays

d) All of these

Answer: Java.util.Arrays

 

Question: To sort an entire or part of array_______method can be used.

a) Sort()

b) Fill()

c) Display()

d) Order()

Answer: Sort()

 

Question: Method______is used to fill or partial array with specified value.

a) Sort()

b) Fill()

c) Display()

d) Order()

Answer: Fill()

 

Question: To search an element in an array, arrays class provides______method.

a) Search0

b) Find()

c) Binary search()

d) Bin search ()

Answer: Binary search()

 

Question: search method does element by element comparison in a serial manner.

a) Linear

b) Vertical

c) Horizontal

d) Vector

Answer: Linear

 

Question: ______arrays are used to store tabular data in the form of rows and columns.

a) 2-D

b) 1-D

c) 3-D

d) 4-D

Answer: 2-D

 

Question: In Java, 2-D array can be declared using array name and 2 pairs of______to specify the size of two dimensions row and column respectively.

a) Curly bracket { } { }

b) Square bracket [ ] [ ]

c) Round bracket () ( )

d) None of these

Answer: Square bracket [ ] [ ]

 

Question: int marks [ ] f ] = new int [5] [3], the logical view of array elements is a table of_________

a) 3 rows and 5 columns

b) 15 columns

c) 5 rows and 3 columns

d) 15 rows

Answer: 5 rows and 3 columns

 

Question: Int marks [ ] [] = new int [5] [3], will physically use contiguous memory locations that is_______bytes.

a) 15

b) 45

c) 60

d) 8

Answer: 60

 

Question: To create_______array, an array of an array has to be created.

a) 2-D

b) 1-D

c) 3-D

d) 4-D

Answer: 2-D

 

Question: Declaration and initialization of 2-D array is very similar to 1-D array except the number of

a) Sizes

b) Length

c) Index values

d) Dimensions

Answer: Dimensions

 

Question: In 2-D array, each row is considered as_______array element.

a) 2-D

b) 1-D

c) 3-D

d) 4-D

Answer: 1-D

 

Question: To initialize 2-D array, all these initialized rows are to be enclosed in curly braces {} separating them by______

a) Colon (:)

b) Comma (,)

c) Semi Colon (;)

d) Full stop (.)

Answer: Comma (,)

 

Question: In Java, 2-D array is considered as an_______of 1-D array.

a) Matrix

b) Array

c) Dimension

d) Group

Answer: Array

 

Question: In 2-D array, each name is stored in different row and all names have different number of______

a) Spaces

b) Groups

c) Characters

d) Columns

Answer: Characters

 

Question: Size of each row of an array can be known using_______property of 1-D array.

a) Length

b) Height

c) len

d) Size

Answer: Length

 

Question: For 2-D array_______property returns number of rows.

a) Length

b) Height

c) len

d) Size

Answer: Length

 

Question: For 1-D array______property returns number of columns in specified row element.

a) Length

b) Height

c) Len

d) Size

Answer: Length

 

Question: ________is a collection of homogeneous type of data.

a) Matrix

b) Array

c) Dimension

d) Group

Answer: Array

 

Question: ________elements can be accessed using index for each dimension in [ ].

a) Matrix

b) Array

c) Dimension

d) Group

Answer: Array

 

Question: Index value starts with_______

a) One

b) Two

c) Zero

d) Three

Answer: Zero

 

Question: Declaring an______without initialization does not create an array object.

a) Matrix

b) Array

c) Dimension

d) Group

Answer: Array

 

Question: String is nothing but a sequence of________

a) Spaces

b) Groups

c) Characters

d) Columns

Answer: Characters

 

Question: 1-D array of_______can be considered as a string.

a) Spaces

b) Groups

c) Characters

d) Columns

Answer: Characters

 

Question: ________literals are where a sequence of characters is enclosed between double quotes.

a) String

b) Character

c) Numerical

d) None of these

Answer: String

 

Question: To use variables that can store strings, Java supports_____types of strings.

a) One

b) Two

c) Three

d) Four

Answer: Two

 

Question: Strings in Java are handled by two classes namely 'String' and________

a) Strings

b) Characters

c) Buffer

d) StringBuffer

Answer: StringBuffer

 

Question: String ( ) without arguments create a________object with no character.

a) String

b) Character

c) Buffer

d) Code

Answer: String

 

Question: String (char ary[ ]) creates a String object with its initial value using ary_______

a) Value

b) Argument

c) Index

d) [ ]

Answer: Argument

 

Question: String (char ary[ ], int start, intlen) creates a String object using 1-D ary argument starting at ary[start] with________number of characters.

a) Length

b) Leng

c) Len

d) Limited

Answer: Len

 

Question: String (String strObj) creates a String object which is same as object specified in________

a) Value

b) Argument

c) Index

d) Square brackets [ ]

Answer: Argument

 

Question: String (string literal) creates a String_________which is same as object specified in argument.

a) Literal

b) obj

c) Object

d) Variable

Answer: Object

 

Question: String (string literal) creates a String object that refers to the______specified in argument.

a) Literal

b) Obj

c) Object

d) Variable

Answer: Literal

 

Question: In Java, characters are stored using_______bytes.

a) Four

b) Three

c) Two

d) Five

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: "strl = - str2"_______the contents of strl and str2 and not the objects at strl and str2.

a) Equals

b) Matches

c) Compares

d) Relates

Answer: Compares

 

Question: The String class provides_______to compare strings, find length of string, combining strings, obtaining substrings, converting strings, splitting strings, searching for character or patterns in string etc.

a) Constructors

b) Methods

c) Strings

d) Classes

Answer: Methods

 

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

 

Question: Method booleanequalslgnore Case (String str) returns_______if invoking string is same as str after ignoring case (case insensitive).

a) True

b) False

c) Can't say

d) None of these

Answer: True

 

Question: Method int compare To (String str) returns 0, > 0, < 0_______if invoking string is equal to, greater than or less than str respectively.

a) String

b) Negative value

c) Integer

d) Float

Answer: Integer

 

Question: Method int compare To ignore Case (String str) is same as______but Case Sensitive.

a) Equals

b) Ignore Case

c) Equals lgnore Case

d) Compare To

Answer: Compare To

 

Question: A String class provides methods for_______task.

a) Extracting part of string.

b) Replacing characters or substrings.

c) Splitting string into substrings

d) All of these

Answer: All of these

 

Question: A String class provides methods for______task.

a) Getting number of characters.

b) Getting character at specified index position.

c) Converting string into an array of bytes.

d) All of these

Answer: All of these

 

Question: A String class provides methods for_____task.

a) Converting string into lowercase or uppercase

b) Appending string

c) Copy string or part of string

d) All of these

Answer: All of these

 

Question: Method int______returns number of characters in invoking string.

a) IndexAt(int index)

b) Length( )

c) GetBytes()

d) To Upper Case()

Answer: Length( )

 

Question: Method char______returns character at index position from the invoking string, index considered from 0.

a) Index At(int index)

b) Length( )

c) Get Bytes()

d) To Upper Case()

Answer: Index At(int index)

 

Question: Method byte[ ]_______returns an array of characters as bytes from invoking string.

a) IndexAt(int index)

b) Length( )

c) Get Bytes()

d) To Upper Case()

Answer: Get Bytes()

 

Question: Method void________copies characters of invoking string fromlndx to tolndx-1 to target array from targetlndx onwards.

a) To Upper Case()

b) To Lower Case

c) Concat(String str)

d) Get Chars(intfromIndx, inttoIndx, char target [], inttargetIndx)

Answer: Get Chars(intfromIndx, inttoIndx, char target [], inttargetIndx)

 

Question: Method String______returns a string after appending str with the invoking string.

a) To Uppercase0

b) To LowerCase

c) Concat (String str)

d) Get Chars (intfromlndx, inttolndx, chad target[], inttargetlndx)

Answer: Concat (String str)

 

Question: String______returns a string with all characters of invoking string converted to lowercase.

a) To UpperCase()

b) To LowerCase

c) Concat (String str)

d) Get Chars (intfromlndx, inttolndx, chail target!], inttarget Indx)

Answer: To LowerCase

 

Question: String______returns a string with all characters of invoking string converted to uppercase.

a) To UpperCase()

b) To LowerCase

c) Concat (String str)

d) GetChars (intfromlndx, inttolndx, chJ target!], inttargetlndx)

Answer: To UpperCase()

 

Question: With array variable, length is an______or property of array;

a) Attribute

b) Method

c) String

d) None of these

Answer: Attribute

 

Question: With String object length is a_______

a) Attribute

b) Method

c) String

d) None of these

Answer: Method

 

Question: ________class of Java does not provide any method to reverse a string.

a) Attribute

b) Method

c) String

d) None of these

Answer: String

 

Question: Java library also provides class in java.util package.

a) Data

b) String

c) Time

d) Date

Answer: Date

 

Question: ________class encapsulates both date and time and represents the value using milliseconds precision.

a) Data

b) String

c) Time

d) Date

Answer: Date

 

Question: Method_______constructs Date object using current system time.

a) Date (long elapsed Time)

b) Date()

c) To String()

d) Get Time()

Answer: Date()

 

Question: Method______constructs Date object using specified time in milliseconds elapsed since January 1, 1970 GMT.

a) Date (long elapsed Time)

b) Date()

c) To String()

d) Get Time()

Answer: Date (long elapsed Time)

 

Question: Method String_______returns a string representing date and time of invoking object.

a) Date (long elapsed Time)

b) Date()

c) To String()

d) Get Time()

Answer: To String()

 

Question: Method long_____returns number of milliseconds since January 1,1970 GMT.

a) Date (long elapsed Time)

b) Date()

c) ToString()

d) Get Time()

Answer: Get Time()

 

Question: Method void set Time (long elapsed Time) sets new date and time of an object using elapsed time.

a) Set Time (long elapsed Time)

b) Date()

c) ToString()

d) Get Time()

Answer: Set Time (long elapsed Time)

 

Question: Like Date class______class is also provided in java.util package.

a) Data

b) Calendar

c) Time

d) Date

Answer: Calendar

 

Question: ______class can be used to extract calendar information like year, month, date, hour, minute and second.

a) Data

b) Calendar

c) Time

d) Date

Answer: Calendar

 

Question: Like get methods, set methods are used to set the value of the field constants of______class.

a) Data

b) Calendar

c) Time

d) Date

Answer: Calendar

 

Question: Execution of call 'calendar.set (Calendar.DATE, 20)' will set the date to________

a) Today's date

b) Yesterday's date

c) 20th

d) None of these

Answer: 20th

 

Question: _______the starting index of an array.

a) 0

b) 1

c) Null

d) All of these

Answer: 0

 

Question: Array elements are stored in_______

a) Sequential memory locations.

b) Scattered memory locations

c) Direct memory locations

d) Random memory locations

Answer: Sequential memory locations.

 

Question: Identify the incorrect declaration of arrays from the following.

a) Int a[50];

b) Float values[10] [20];

c) Double a[50];

d) Int score [10, 15];

Answer: Int score [10, 15];

 

Question: Array is used to represent the following.

a) A list of data items of different data types

b) A list of data items of real data type.

c) A list of data items of same data type..

d) A list of data items of integer data type

Answer: A list of data items of same data type..

 

Question: Array are passed to a function argument by_______

a) Value

b) Reference

c) Both value and reference

d) None of these

Answer: Reference

 

Question: An array a[8] will store how many values ?

a) 8

b) 7

c) 9

d) 0

Answer: 8

 

Question: If an array is declared as a a[10], then its elements will be stored as_______

a) a[l] to a[10]

b) a[l] to a[9]

c) a[0] to a[9]

d) a[0] to a[10]

Answer: a[0] to a[9]

 

Question: The index or subscript value for an array of size n ranges from

a) 1 to n-1

b) 0 to n-1

c) 1 to n

d) 0 to n

Answer: 0 to n-1

 

Question: If a static array is not initialized, the elements will be set to_________

a) 0

b) A float number

c) An undetermined value

d) A character constant

Answer: 0

 

Question: If 'a' is the object of String class and its content is "AHMEDABAD", then what is the value of str.length()?

a) 9

b) 10

c) 8

d) 11

Answer: 9

 

Question: If 'a' is the object of String class and its content is "C IS A LANGUAGE", then what is the value of str.length()

a) 14

b) 15

c) 12

d) 11

Answer: 15

 

Question: What type of value is returned when we use get method of Calender class with constant MONTH ?

a) Char

b) String

c) Int

d) Boolean!

Answer: Int

 

 

Question: Method to String() returns________data type.

a) Char

b) String

c) Int

d) Boolean

Answer: String

 

Question: Method getTime() returns________data type.

a) Long

b) String

c) Void

d) Date

Answer: Long

 

Question: Method concat(String str) returns______datatype,

a) Long

b) String

c) Void

d) Date

Answer: String

 

Question: What is the full form of GMT ?

a) Greenwich Median Time

b) Greenwich Mode Time

c) Greenwich Modern Time

d) Greenwich Mean Time

Answer: Greenwich Mean Time

 

Question: In Java, characters are stored using______bytes.

a) Four

b) Three

c) Two

d) Five

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

 

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

 

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.

a) Pattern

b) Protocol

c) Template

d) Model

Answer: Template

 

Question: In Java, a class is defined using_____keyword.

a) Public

b) Class

c) Class

d) Void

Answer: Class

 

Question: Every class the programmer writes in Java is generally made up of____components.

a) Four

b) Three

c) Two

d) One

Answer: Two

 

Question: ______and behavior are the components of every class.

a) Properties

b) Mannerism

c) Patterns

d) Attributes

Answer: Attributes

 

Question: ________are defined by variables in a class.

a) Properties

b) Mannerism

c) Patterns

d) Attributes

Answer: Attributes

 

Question: _______is defined by methods in a class.

a) Behavior

b) Mannerism

c) Patterns

d) Properties

Answer: Behavior

 

Question: ______are used to access or modify attributes.

a) Behavior

b) Methods

c) Modifiers

d) Attributes

Answer: Methods

 

Question: ______means a reference variable name of type class.

a) Instantiation

b) Initialization

c) Declaration

d) Modification

Answer: Declaration

 

Question: A______is declared with syntax.

a) Instantiation

b) Initialization

c) Declaration

d) Modification

Answer: Declaration

 

Question: _______means creating the object by allocating the memory.

a) Instantiation

b) Initialization

c) Declaration

d) Modification

Answer: Instantiation

 

Question: Keyword______is used to create the object by allocating memory.

a) Old

b) old

c) New

d) new

Answer: new

 

Question: ______means to initialize the newly created object.

a) Initialization

b) Instantiation

c) Declaration

d) Modification

Answer: Initialization

 

Question: A______is called to initialize the newly created object.

a) Variable

b) Constructor

c) Class

d) Method

Answer: Constructor

 

Question: A______is a special type of method.

a) Variable

b) Constructor

c) Class

d) Method

Answer: Constructor

 

Question: In Java, a class is a______

a) Brand

b) Kind

c) Type

d) Form

Answer: Type

 

Question: In Java, the______examples are int and Boolean.

a) Brand types

b) Form types

c) Built-in types

d) None of these

Answer: Built-in types

 

Question: A_______can be used to specify the type of a variable in a declaration statement, the type of a formal parameter, or the return type of a function.

a) Class declaration

b) Class name

c) Class types

d) All of these

Answer: Class name

 

Question: Declaring a variable does not create a________

a) Object

b) Memory space

c) Class

d) Boolean

Answer: Object

 

Question: In Java, no_____can ever store an object.

a) Variable

b) Constructor

c) Class

d) Method

Answer: Variable

 

Question: A variable declared using class type can only store a_____to an object.

a) Orientation

b) Position

c) Reference

d) Indication

Answer: Reference

MCQs for Classes and Objects In Java Computer Science Class 12

Expert teachers of studiestoday have referred to NCERT book for Class 12 Computer Science to develop the Computer Science Class 12 MCQs. If you download MCQs with answers for the above chapter you will get higher and better marks in Class 12 test and exams in the current year as you will be able to have stronger understanding of all concepts. Daily Multiple Choice Questions practice of Computer Science will help students to have stronger understanding of all concepts and also make them expert on all critical topics. After solving the questions given in the MCQs which have been developed as per latest books also refer to the NCERT solutions for Class 12 Computer Science. We have also provided lot of MCQ questions for Class 12 Computer Science so that you can solve questions relating to all topics given in each chapter. After solving these you should also refer to Class 12 Computer Science MCQ Test for the same chapter.

Where can I download latest CBSE MCQs for Class 12 Computer Science Classes and Objects In Java

You can download the CBSE MCQs for Class 12 Computer Science Classes and Objects In Java for latest session from StudiesToday.com

Are the Class 12 Computer Science Classes and Objects In Java MCQs available for the latest session

Yes, the MCQs issued by CBSE for Class 12 Computer Science Classes and Objects In Java have been made available here for latest academic session

Where can I find CBSE Class 12 Computer Science Classes and Objects In Java MCQs online?

You can find CBSE Class 12 Computer Science Classes and Objects In Java MCQs on educational websites like studiestoday.com, online tutoring platforms, and in sample question papers provided on this website.

How can I prepare for Classes and Objects In Java Class 12 MCQs?

To prepare for Classes and Objects In Java MCQs, refer to the concepts links provided by our teachers and download sample papers for free.

Are there any online resources for CBSE Class 12 Computer Science Classes and Objects In Java?

Yes, there are many online resources that we have provided on studiestoday.com available such as practice worksheets, question papers, and online tests for learning MCQs for Class 12 Computer Science Classes and Objects In Java