
OOP ppp

Quiz
•
Information Technology (IT)
•
University
•
Hard
Aditya Djalil
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Object-Oriented Analysis and Design Quiz

Quiz
•
University
20 questions
Quiz tentang Google Colab

Quiz
•
10th Grade - University
23 questions
Quizz về Anatomy of Mobile

Quiz
•
University
22 questions
KELAS 6 - WEB BROWSER AND SEARCH ENGINE

Quiz
•
6th Grade - University
20 questions
Mastering Core Java Concepts

Quiz
•
University
20 questions
QUIZ 3: MIDTERM

Quiz
•
University
20 questions
Quiz on Modularity and Functions

Quiz
•
University
20 questions
ByteTheSnake

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University