
TALENT-NEXT-JAVA-QUIZ1

Quiz
•
Computers
•
University
•
Hard
Isha Kansal
Used 45+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
1) Which of the following option leads to the portability and security of Java?
Bytecode is executed by JVM
The applet makes the Java code secure and portable
Use of exception handling
Dynamic binding between objects
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
public class MyFirst { public static void main(String[] args) { MyFirst obj = new MyFirst(n);
}
static int a = 10;
static int n;
int b = 5;
int c;
public MyFirst(int m)
{
System.out.println(a + ", " + b + ", " + c + ", " + n + ", " + m);
} // Instance Block
{ b = 30; n = 20;
} // Static Block
static
{ a = 60;
}
}
10, 5, 0, 20, 0
10, 30, 20
60, 5, 0, 20
60, 30, 0, 20, 0
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
_____ is used to find and fix bugs in the Java programs.
JVM
JRE
JDK
JDB
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Evaluate the following Java expression, if x=3, y=5, and z=10:
++z + y - y + z + x++
24
23
20
25
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
tell the output
public class Test {
public static void main(String[] args) {
int count = 1;
while (count <= 15)
{
System.out.println(count % 2 == 1 ? "***" : "+++++");
++count;
} // end while
} // end main
}
15 times ***
15 times +++++
8 times *** and 7 times +++++
Both will print only once
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following for loop declaration is not valid?
for ( int i = 99; i >= 0; i / 9 )
for ( int i = 7; i <= 77; i += 7 )
for ( int i = 20; i >= 2; - -i )
for ( int i = 2; i <= 20; i = 2* i )
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which method of the Class.class is used to determine the name of a class represented by the class object as a String?
getClass()
intern()
getName()
toString()
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
JavaScript Basics

Quiz
•
12th Grade - University
20 questions
Code Junction 4

Quiz
•
University
20 questions
OOP

Quiz
•
University
19 questions
Java Basic 1 - Quiz

Quiz
•
8th Grade - University
15 questions
VECTORES Y MATRICES

Quiz
•
University
20 questions
Review JavaScript

Quiz
•
11th Grade - University
15 questions
004_Java Instance Variables

Quiz
•
12th Grade - University
20 questions
JDBC

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 Computers
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