MCQ Mojo
access_time
menu
Quiz
Web Stories
CBSE
arrow_drop_down
MCQ Questions for CBSE Class 12 with Answers
MCQ Questions for CBSE Class 11 with Answers
MCQ Questions for CBSE Class 10 with Answers
MCQ Questions for CBSE Class 9 with Answers
MCQ Questions for CBSE Class 8 with Answers
MCQ Questions for CBSE Class 7 with Answers
MCQ Questions for CBSE Class 6 with Answers
MCQ Questions for CBSE Class 5 with Answers
MCQ Questions for CBSE Class 4 with Answers
MCQ Questions for CBSE Class 3 with Answers
MCQ Questions for CBSE Class 2 with Answers
MCQ Questions for CBSE Class 1 with Answers
CBSE
arrow_drop_down
MCQ Questions for CBSE Class 12 with Answers
MCQ Questions for CBSE Class 11 with Answers
MCQ Questions for CBSE Class 10 with Answers
MCQ Questions for CBSE Class 9 with Answers
MCQ Questions for CBSE Class 8 with Answers
MCQ Questions for CBSE Class 7 with Answers
MCQ Questions for CBSE Class 6 with Answers
MCQ Questions for CBSE Class 5 with Answers
MCQ Questions for CBSE Class 4 with Answers
MCQ Questions for CBSE Class 3 with Answers
MCQ Questions for CBSE Class 2 with Answers
MCQ Questions for CBSE Class 1 with Answers
Quiz
Quiz
/
BlueJ Class 9 MCQ Questions With Answers
1.
Cell numbers of a dimensional array are also known as:
packets
blocks
subscripts
superscript
2.
Which is not a possible result of n%6
0
1
5
6
3.
Which element is represented by a[10]?
10th
9th
11th
None
4.
What would this output?System.out.println(15%3);
An error
5
3
0
5.
What is the type of this method's parameter?
setCredits
void
int
creditValue
credits
6.
An object diagram changes when the program is running.
True
False
7.
Which of the following is a valid print statement?
System.out.println("Hello");
System.out.printLn("Hello");
system.out.println("Hello");
println("Hello");
8.
An object diagram changes when you modify the source code.
True
False
9.
Select the correct output of following java code
4 6
2 4
8
10
10.
What would this output?
5bike134
12bike134
5bike17
12bike17
11.
When a class has more than one method with the same name.
Abstraction
Modularization
Overloading
Diagraming
12.
The ability to ignore details of parts, to focus attention on a higher level of a problem.
Abstraction
Modularization
Overloading
Diagraming
13.
What is the logical operator for "or" ?
||
&
&&
!
|
14.
Int a[] ={2,4,6,8,10};a[0]=23;a[3]=a[1];int c= a[0]+a[1];System.out.println("Sum = "+c);
6
25
24
27
15.
! (4 < 5)
True
False
16.
Int a[]=new int [5]; a[0]=4; a[1]=8; a[2]=7; a[3]=12; a[4]=3; System.out.println(a[2+1]);
78
15
12
19
17.
Char m[] = {'R', 'A', 'J', 'E', 'N', 'D', 'R', 'A' };?
m.size of (a)
m.elements of (m)
m.length
m.length()
18.
(34 != 33) && ! false
True
False
19.
When a variable stores an object, the object is stored in the variable directly.
True
False
20.
What is the type of this method?
setCredits
void
int
creditValue
credits
21.
This changes the state of an object.
method
mutator
accessor
conditional
parameter
22.
What is the name of this method?
setCredits
void
int
creditValue
credits
23.
Which of the following is a valid declaration of a field?
public int age;
private int age;
private int Age;
public int Age
24.
An array element can be accessed through:
dots
element number
index number
none
25.
This return information about the state of an object.
method
mutator
accessor
conditional
parameter
Report Question
Previous
Next
warning
Submit
access_time
Time
Report Question
A bunch of text
Support mcqmojo.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page