Java Programming Quiz Online
Java Quiz Online:
Instruction:
Number of Questions: 20
Time: 20 minutes
Each question carry 1 mark each
No negative marking
Quiz-summary
0 of 20 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 20 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
-
Thanks for Submitting
Webeduclick Java Quiz Test
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- Answered
- Review
-
Question 1 of 20
1. Question
1 pointsWho developed Java Language?
Correct
Incorrect
-
Question 2 of 20
2. Question
1 pointsJava has compiler name as –
Correct
Incorrect
-
Question 3 of 20
3. Question
1 pointsWhat will be the output of the following Java code?
class test {
public static void main(String args[])
{
int x = 3;
System.out.print(++x * 5);
}
}Correct
Incorrect
-
Question 4 of 20
4. Question
1 pointsWhich data type value is returned by all transcendental math functions?
Correct
Incorrect
-
Question 5 of 20
5. Question
1 pointsWhat is byte code in the context of Java?
Correct
Incorrect
-
Question 6 of 20
6. Question
1 pointsThe java run time system automatically calls this method while garbage collection –
Correct
Incorrect
-
Question 7 of 20
7. Question
1 pointsWhat is the output of the following code:
class test
{
public static void main(String args[])
{
String s1 = “Hello”;
String s2 = new String(s1);
System.out.println(s1==s2);
}
}Correct
Incorrect
-
Question 8 of 20
8. Question
1 pointsIn java, objects are passed as –
Correct
Incorrect
-
Question 9 of 20
9. Question
1 pointsWhat is the output of the following code:
int a = 2, b = 3, c = 4, d = 5;
float k = 4.3f;
System.out.println( -b * a + c *d );Correct
Incorrect
-
Question 10 of 20
10. Question
1 pointsWhat is the range of the char type in Java?
Correct
Incorrect
-
Question 11 of 20
11. Question
1 pointsWhat is the value of a[3] as the result of the following array declaration?
Correct
Incorrect
-
Question 12 of 20
12. Question
1 pointsWhat is the value of 111 % 13?
Correct
Incorrect
-
Question 13 of 20
13. Question
1 pointsWhat is the error in the following class definitions?
Abstract class temp
{
abstract sum (int x, int y) { }
}Correct
Incorrect
-
Question 14 of 20
14. Question
1 pointsGiven a class named student, which of the following is a valid constructor declaration for the class?
Correct
Incorrect
-
Question 15 of 20
15. Question
1 pointsIn Java, A package is a collection of –
Correct
Incorrect
-
Question 16 of 20
16. Question
1 pointsIn OOP, new classes can be defined by extending existing classes are called –
Correct
Incorrect
-
Question 17 of 20
17. Question
1 pointsFile class is included in which package?
Correct
Incorrect
-
Question 18 of 20
18. Question
1 pointsMost restrictive access specifier in Java –
Correct
Incorrect
-
Question 19 of 20
19. Question
1 pointsString s1 = ” yes” ;
String s2 = ” yes ” ;
String s3 = new String ( s1);
Which of the following would equate to true?Correct
Incorrect
-
Question 20 of 20
20. Question
1 pointsThe output of this program is –
public class Test {
public static void main (String args []) {
int age;
age = age + 1;
System.out.println(“The age is ” + age);
}
}Correct
Incorrect
NOTE:
Click the ‘Quiz-summary‘ button and then click ‘Finish quiz‘ button to submit your quiz answers
Your Online quiz will be submitted after the time is expired
Do not refresh the Page.