Java set 1

Quiz
•
Other
•
University
•
Hard
ESPARK 2023
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the following program.
short x = 10;
x = x * 5;
System.out.print(x);
50
10
compile error
exception
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify what can directly access and change the value of the variable res. package com.mypackage;
public class Solution{
private int res = 100;
}
Any class
only Solution class
any class that extends solution
none
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To which of the following does the class string belong to.
java.lang
java.applet
java.awt
java.string
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output of Math.floor(5.9)?
5
6
5.0
5.5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the variables declared in a class for the use of all methods of the class called?
Object
Instance variables
Reference variables
None
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When is the finalize() method called?
Before Garbage Collection
Before an Object goes out of Scope
None
Before a variable goes out of Scope
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the infinite loop
for(;;)
for(int i=0;i<1;i++)
for(int i=0;;i++)
All of the Above
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Java 1

Quiz
•
University
10 questions
tiktok finish the lyris

Quiz
•
KG - Professional Dev...
7 questions
Programowanie aplikacji internetowych WSTĘP

Quiz
•
University
10 questions
Quis 4 Teori PJV

Quiz
•
University
15 questions
Java Mega Quiz

Quiz
•
University
10 questions
MODULE 1 CORE JAVA BCA IV

Quiz
•
University
10 questions
Recordando JavaScript

Quiz
•
University
10 questions
Test de JavaScript

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University