
practice
Quiz
•
Education
•
University
•
Practice Problem
•
Hard
parth bhelonde
FREE Resource
Enhance your content in a minute
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid comment in Java? Options: a. /** comment */ b. /* comment */ c. /* comment / d. // comment
/* comment *
# comment
// comment //
c. /* comment /
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? (Code snippet provided) Options: a. NPTEL2024\n44java b. NPTEL44\n44java c. NPTEL2024\n2024java d. NPTEL44\n2024java
NPTEL2024 44java
c. NPTEL2024\n2024java
NPTEL44 44java
NPTEL2024 44java
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to find and fix bugs in the Java programs? Options: a. JVM b. JRE c. JDK d. JDB
a. JDK
b. JRE
c. JVM
d. JDB
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value returned by the method f() defined below? (Method provided) Options: a. The sum of x and y, that is, x + y. b. The difference of x and y, that is, x - y. c. The maximum of x and y, that is, the larger value of x and y. d. The minimum of x and y, that is, the smaller value of x and y.
The absolute difference of x and y, that is, |x - y|.
c. The maximum of x and y, that is, the larger value of x and y.
The average of x and y, that is, (x + y) / 2.
The product of x and y, that is, x * y.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following program. What will be the output if it is executed? (Code snippet provided) Options: a. Print fi
Print f
Print if
Print fi
Print fi and more
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'static' keyword in Java? Options: a. To define a constant b. To create a class method c. To create an instance variable d. To define an interface
To define a method variable
To implement an abstract class
b. To create a class method
To create a subclass
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to declare an array in Java? Options: a. int[] arr; b. int arr[]; c. Both a and b d. None of the above
c. Both a and b
int arr = new int[5];
array int[] arr;
int[] = arr;
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
Yuk, ber-EBI!! PS 2A
Quiz
•
University
20 questions
Environment Management First Module
Quiz
•
University
20 questions
SOAL PTS PPKN KELAS XI
Quiz
•
11th Grade - University
18 questions
MCQs based on The Integration Ladder by Ronald Harden
Quiz
•
University
17 questions
Using Autodesk Inventor Software
Quiz
•
University - Professi...
20 questions
Rabelais Gargantua chapitres XLI- L
Quiz
•
10th Grade - University
16 questions
Schoolpoortquiz Altena
Quiz
•
1st Grade - University
20 questions
Quiz about the Philippine National Police
Quiz
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Education
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University
