
OOP ppp
Authored by Aditya Djalil
Information Technology (IT)
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If we invoke the static method showTest(), what will the output be?
none, the class will not compile
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the variable code equal after the method convertCode() is run?
The code will not compile
100237
237
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An object is an instantiation of a class. Pernyataan ini dapat diterjemahkan sebagai -sebuah obyek adalah sebuah perwujudan dari sebuah kelas.
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output?
The code will compile but have runtime error
The code will not compile because the Student class located in package model could not be accessed from any class outside its package
The code will not compile because the Main class should not have public modifier
The code will compile and run fine
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this class will be when compile and run?
Output is 2
The file will not compile because we can’t directly access method increment inside the static method (the object should be instantiated first then use the object to access increment method)
The file will compile, but will give an error when run
Output is 1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What code should be put to print the length of the second element of the first dimension of the array named arr, which is { 4, 5 }?
System.out.println(test.arr[0].length);
System.out.println(test.arr.length);
System.out.println(test.arr[1].length);
System.out.println(test.arr[1].length());
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
It will compile and output 21 to the screen
It will compile, but will produce interpreter error when executed
It will not compile and give the compile error
It will compile and output 20 to the screen
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
PIT_10.06-10_ASMT
Quiz
•
9th Grade - University
20 questions
Database quiz part 1 - D2T4
Quiz
•
University
20 questions
TR01-HT01-OP02
Quiz
•
University
20 questions
KUIZ DIAGNOSTIK
Quiz
•
11th Grade - University
20 questions
Soal Ulangan Internet 8.7
Quiz
•
8th Grade - University
20 questions
Kelas 8 - Halaman 10 (UH Bab 1)
Quiz
•
8th Grade - University
20 questions
ARDU TEST
Quiz
•
9th Grade - University
20 questions
LONG QUIZ MIS
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University