
Java_Foundation_3
Authored by Rukumani CT_PG
Computers
Professional Development
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result
The compilation fails at line 9
The compilation fails at line 2
Hello World
The compilation fails at line 8
2.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Which two allow a.Main to allocate a new Person? (Choose two.)
In Line 1, change the access modifier to privateprivate Person() {
In Line 1, change the access modifier to publicpublic Person() {
In Line 2, add extends Person to the Main classpublic class Main extends Person {and change Line 3 to create a new Main objectPerson person = new Main();
In Line 2, change the access modifier to protectedprotected class Main {
In Line 1, remove the access modifierPerson() {
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which interface in the java.util.function package will return a void return type?
Supplier
Predicate
Function
Consumer
4.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Which two lines inserted in line 1 will allow this code to compile? (Choose two.)
protected void walk(){}
void walk(){}
abstract void walk();
private void walk(){}
public abstract void walk();
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result?
An exception is thrown at runtime
42=(x+y)=42
42=(x+y)=6
6=(x+y)=42
6=(x+y)=6
6.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Which three actions implement Java SE security guidelines? (Choose three.)
Change line 7 to return names.clone();
Change line 2 to protected volatile String[] names;
Change line 2 to private final String[] names;
Change line 3 to private Secret(String[] names) {
Change the getNames() method name to get$Names()
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which is the correct order of possible statements in the structure of a Java class file?
class, package, import
package, import, class
import, package, class
package, class, import
import, class, package
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
14 questions
DIrecciones IP
Quiz
•
Professional Development
14 questions
Day 1 - Basics of Java
Quiz
•
Professional Development
15 questions
CodeHS - Intro to Python - Conditionals Quiz
Quiz
•
9th Grade - Professio...
10 questions
AWS Practitioner - 10
Quiz
•
Professional Development
10 questions
CSS flexbox quiz
Quiz
•
Professional Development
15 questions
Network Plus Pre Assessment
Quiz
•
Professional Development
14 questions
Guess the Video Game Characters 8
Quiz
•
KG - Professional Dev...
10 questions
Cyber security _ ครู
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
12 questions
Mardi Gras Trivia
Quiz
•
Professional Development
7 questions
Copy of G5_U5_L14_22-23
Lesson
•
KG - Professional Dev...
12 questions
Unit 5: Puerto Rico W1
Quiz
•
Professional Development
42 questions
LOTE_SPN2 5WEEK2 Day 4 We They Actividad 3
Quiz
•
Professional Development
15 questions
Balance Equations Hangers
Quiz
•
Professional Development
31 questions
Servsafe Food Manager Practice Test 2021- Part 1
Quiz
•
9th Grade - Professio...