Java Programming Quiz

Java Programming Quiz

University

16 Qs

quiz-placeholder

Similar activities

Java 1st Quiz

Java 1st Quiz

University

19 Qs

Java Programming

Java Programming

University

20 Qs

Java Operators

Java Operators

University

14 Qs

Code Junction 4

Code Junction 4

University

20 Qs

Susulan PBO XIRPL (2021/2022)

Susulan PBO XIRPL (2021/2022)

11th Grade - University

20 Qs

UTS pemrograman web lanjut

UTS pemrograman web lanjut

University

20 Qs

OOP

OOP

University

20 Qs

JDBC

JDBC

University

20 Qs

Java Programming Quiz

Java Programming Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Mohanapriya P

Used 4+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Predict the output of following Java program class Main { public static void main(String args[]){ final int i; i = 20; i = 30; System.out.println(i); } }

30

Compiler Error

Garbage value

0

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Predict the output of following Java program // Note static keyword after import. import static java.lang.System.*; class StaticImportDemo { public static void main(String args[]) { out.println("Technical Training"); } }

Compiler Error

Runtime Error

Technical Training

None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

class Main { public static void main(String args[]) { int t; System.out.println(t); } }

0

garbage value

compiler error

runtime error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a Java features?

Dynamic

Architecture Neutral

Use of pointers

Object-oriented

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_____ is used to find and fix bugs in the Java programs.

JVM

JRE

JDK

JDB

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of float and double in java?

32 and 64

32 and 32

64 and 64

64 and 32

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?