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 12 MCQ Questions With Answers
1.
Which is not a possible result of n%6
0
1
5
6
2.
What would this output?System.out.println(15%3);
An error
5
3
0
3.
What is the type of this method's parameter?
setCredits
void
int
creditValue
credits
4.
An object diagram changes when the program is running.
True
False
5.
An object diagram changes when you modify the source code.
True
False
6.
When a class has more than one method with the same name.
Abstraction
Modularization
Overloading
Diagraming
7.
The ability to ignore details of parts, to focus attention on a higher level of a problem.
Abstraction
Modularization
Overloading
Diagraming
8.
What is the logical operator for "or" ?
||
&
&&
!
|
9.
! (4 < 5)
True
False
10.
(34 != 33) && ! false
True
False
11.
When a variable stores an object, the object is stored in the variable directly.
True
False
12.
What is the type of this method?
setCredits
void
int
creditValue
credits
13.
This changes the state of an object.
method
mutator
accessor
conditional
parameter
14.
What is the name of this method?
setCredits
void
int
creditValue
credits
15.
Which of the following is a valid declaration of a field?
public int age;
private int age;
private int Age;
public int Age
16.
What is the output of the expression?
An error
catfish
fish
cat
17.
Information given to a method.
method
mutator
accessor
conditional
parameter
18.
False && true || true
True
False
19.
(2 > 2) ││ ((4 == 4) && (1 < 0))
True
False
20.
What is the logical operator for "not" ?
||
&
&&
!
|
21.
The process of dividing a whole into well-defined parts
Abstraction
Modularization
Overloading
Diagraming
22.
What is the logical operator for "and" ?
||
&
&&
!
|
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