Questions · Page 6 of 7

MCQ

MCQ 2511 Mark
Which of the following is used to represent two-dimensional data structure ?
  • Matrix
  • B
    Vector
  • C
    Object
  • D
    Class
Answer
Correct option: A.
Matrix
A
View full question & answer
MCQ 2571 Mark
Which constant of Calendar class will return Week number within the year?
  • WEEK_OF_YEAR
  • B
    WeekOfYear
  • C
    WEEK_MONTH
  • D
    WEEK_YEAR
Answer
Correct option: A.
WEEK_OF_YEAR
A
View full question & answer
MCQ 2581 Mark
Which constant of Calendar class will return Week number within the month?
  • A
    WEEK
  • B
    WEEK_NO
  • C
    WEEKDAY
  • WEEK_OF_MONTH
Answer
Correct option: D.
WEEK_OF_MONTH
D
View full question & answer
MCQ 2591 Mark
Which constant of Calendar class will return AM or PM notation ?
  • A
    HOUR
  • AM_PM
  • C
    MINUTES
  • D
    SECONDS
Answer
Correct option: B.
AM_PM
B
View full question & answer
MCQ 2601 Mark
Which constant of Calendar class will return Seconds ?
  • A
    Seconds
  • B
    Seconds_Of_Time
  • C
    SECONDS
  • SECOND
Answer
Correct option: D.
SECOND
D
View full question & answer
MCQ 2611 Mark
Which constant of Calendar class will return Minutes ?
  • A
    Minutes
  • MINUTE
  • C
    Minute_Time
  • D
    Minute_Of_Time
Answer
Correct option: B.
MINUTE
B
View full question & answer
MCQ 2621 Mark
Which constant of Calendar class will return Hours in 24-hour notation ?
  • A
    HOUR_CAL
  • B
    Hour_Of_Time
  • HOUR_OF_DAY
  • D
    HOUR
Answer
Correct option: C.
HOUR_OF_DAY
C
View full question & answer
MCQ 2631 Mark
Which constant of Calendar class will return same value as DATE?
  • A
    DAY
  • B
    DayOfMonth
  • C
    DateOfMonth
  • DAY_OF_MONTH
Answer
Correct option: D.
DAY_OF_MONTH
D
View full question & answer
MCQ 2641 Mark
Which brackets are used to specify the size of two dimensions row and column respectively?
  • A
    Parenthesis
  • B
    Curly brackets
  • Square brackets
  • D
    Angular brackets
Answer
Correct option: C.
Square brackets
C
View full question & answer
MCQ 2651 Mark
Which array class method is used to search an element in an array ?
  • A
    Search( )
  • binarySearch( )
  • C
    binary( )
  • D
    SearchArray( )
Answer
Correct option: B.
binarySearch( )
B
View full question & answer
MCQ 2661 Mark
With which values array is initialized, as array is an object?
  • A
    Class name
  • Default values
  • C
    Parameters of brackets
  • D
    Object name
Answer
Correct option: B.
Default values
B
View full question & answer
MCQ 2681 Mark
Which of the following is a one - dimensional data structure ?
  • A
    Matrix
  • Vector
  • C
    Class
  • D
    Method
Answer
Correct option: B.
Vector
B
View full question & answer
MCQ 2701 Mark
Which of the following are stored in memory?
  • A
    Numbers
  • B
    Elements
  • Literals
  • D
    None of these
Answer
Correct option: C.
Literals
C
View full question & answer
MCQ 2711 Mark
What can we use with array of bytes as an argument ?
  • A
    Object
  • Constructor
  • C
    Class
  • D
    Method
Answer
Correct option: B.
Constructor
B
View full question & answer
MCQ 2721 Mark
What can we use instead of 'array of characters', to save space ?
  • Array of bytes
  • B
    Array of numbers
  • C
    Array of ASCII
  • D
    Array of strings
Answer
Correct option: A.
Array of bytes
A
View full question & answer
MCQ 2731 Mark
What can we use to save space, if the characters are ASCII ?
  • A
    Array of numbers
  • B
    Array of ASCII
  • C
    Array of Index
  • Array of bytes
Answer
Correct option: D.
Array of bytes
D
View full question & answer
MCQ 2741 Mark
What is used to create a String object that refers to the literal specified in argument?
  • A
    String (String strObj)
  • String (string literal)
  • C
    String ( )
  • D
    String (String strObj)
Answer
Correct option: B.
String (string literal)
B
View full question & answer
MCQ 2751 Mark
How many types of strings are supported by Java to use variables which can store stings?
  • A
    1
  • 2
  • C
    3
  • D
    4
Answer
Correct option: B.
2
B
View full question & answer
MCQ 2761 Mark
Which of the following can be considered as a string ?
  • A
    2-D array of string
  • B
    Tabular array of string
  • 1 - D array of characters
  • D
    Matrix array of string
Answer
Correct option: C.
1 - D array of characters
C
View full question & answer
MCQ 2771 Mark
Which of the following is a sequence of characters ?
  • A
    Array
  • String
  • C
    String Buffer
  • D
    Alphanumeric values
Answer
Correct option: B.
String
B
View full question & answer
MCQ 2781 Mark
Which kind of array does not create an array object?
  • A
    Array with values
  • B
    Array with square brackets and values
  • Array without initialization
  • D
    Array with element values
Answer
Correct option: C.
Array without initialization
C
View full question & answer
MCQ 2791 Mark
Which of the following property is used to get the number of elements in 1 - D array?
  • A
    Size
  • Length
  • C
    Measure
  • D
    DefineSize
Answer
Correct option: B.
Length
B
View full question & answer
MCQ 2801 Mark
Which property of 1 - D array is used to know the size of each row ?
  • Length
  • B
    Size
  • C
    Measure
  • D
    Define
Answer
Correct option: A.
Length
A
View full question & answer
MCQ 2811 Mark
Which of the following is considered as an array of 1 - D array', in Java ?
  • A
    Vector
  • 2 - D
  • C
    Matrix
  • D
    Multi-dimensional
Answer
Correct option: B.
2 - D
B
View full question & answer
MCQ 2821 Mark
What is considered as 1 array element, in 2 - D array ?
  • A
    Each element
  • B
    Each column
  • Each row
  • D
    All A, B & C
Answer
Correct option: C.
Each row
C
View full question & answer
MCQ 2831 Mark
How many numbers of dimensions can be created in array ?
  • A
    Two only
  • B
    One only
  • C
    Limited
  • Unlimited
Answer
Correct option: D.
Unlimited
D
View full question & answer
MCQ 2841 Mark
Which kind of array can be created by an array of array ?
  • A
    1 - D
  • B
    Vector
  • C
    Multi-dimensional
  • 2 - D
Answer
Correct option: D.
2 - D
D
View full question & answer
MCQ 2851 Mark
Which arrays are not supported directly by Java ?
  • A
    Single
  • Multi-dimensional
  • C
    Tabular
  • D
    2 - D
Answer
Correct option: B.
Multi-dimensional
B
View full question & answer
MCQ 2861 Mark
Which brackets are used to specify the size of two dimensions row and column respectively ?
  • A
    Parenthesis
  • B
    Curly brackets
  • Square brackets
  • D
    Angular brackets
Answer
Correct option: C.
Square brackets
C
View full question & answer
MCQ 2881 Mark
In which form 2D arrays store tabular data ?
  • A
    Vectors
  • Rows and Columns
  • C
    1 - D
  • D
    All A, B & C
Answer
Correct option: B.
Rows and Columns
B
View full question & answer
MCQ 2891 Mark
Which method does element by element comparison in a serial fashion ?
  • A
    Binary
  • B
    Find
  • Linear
  • D
    Search
Answer
Correct option: C.
Linear
C
View full question & answer
MCQ 2901 Mark
Which of the following search is used to search an element in array by writing our own method?
  • Linear
  • B
    Binary
  • C
    Sort
  • D
    Find
Answer
Correct option: A.
Linear
A
View full question & answer
MCQ 2911 Mark
Which of the following arguments are required to fill partial array from element to (last-1) with specified value ?
  • A
    Array, fill, start, last
  • Array, start, last, value
  • C
    Array, start, value, last
  • D
    Array, value, start, last
Answer
Correct option: B.
Array, start, last, value
B
View full question & answer
MCQ 2931 Mark
Which arguments are required, when the "fill" method is invoked ?
  • A
    Array, start
  • Array, value
  • C
    Array, last
  • D
    Array, fill
Answer
Correct option: B.
Array, value
B
View full question & answer
MCQ 2951 Mark
What is the range of elements for partial sort?
  • A
    Start to last
  • Start to (last - 1)
  • C
    Start to end
  • D
    End to start
Answer
Correct option: B.
Start to (last - 1)
B
View full question & answer
MCQ 2961 Mark
What is contained by array name?
  • Reference to memory location
  • B
    Constant value
  • C
    Variable list
  • D
    Method name
Answer
Correct option: A.
Reference to memory location
A
View full question & answer
MCQ 2971 Mark
Which three argument are required to sort array partially?
  • A
    Array, 1, 2
  • Array, start, last
  • C
    Array, fill, value
  • D
    Array, sort, value
Answer
Correct option: B.
Array, start, last
B
View full question & answer
MCQ 2991 Mark
Which kind of sorting is done, when we use only array as an argument?
  • Sort an entire array
  • B
    Sort partial array
  • C
    Sort particular fields
  • D
    All A, B, C
Answer
Correct option: A.
Sort an entire array
A
View full question & answer
MCQ 3001 Mark
Which method is used to sort entire or a part of an array ?
  • A
    Fill( )
  • B
    Psort( )
  • C
    Asort( )
  • Sort( )
Answer
Correct option: D.
Sort( )
D
View full question & answer
MCQ - Page 6 - COMPUTER STD 12 Science Questions - Vidyadip