Java Basic Quiz

Java Basic Quiz

University

15 Qs

quiz-placeholder

Similar activities

Structure of Java Program

Structure of Java Program

University

10 Qs

JAVA FOR ANDROID-ANDROID

JAVA FOR ANDROID-ANDROID

University

20 Qs

Java Programming

Java Programming

University

10 Qs

Java Class vocabulary

Java Class vocabulary

9th Grade - University

12 Qs

Flask

Flask

University

11 Qs

Basics of JAVA

Basics of JAVA

University

11 Qs

Android Fundamentals - Day 2 : Android Basics

Android Fundamentals - Day 2 : Android Basics

University - Professional Development

10 Qs

Chapter 1 Introduction to Computers and Java

Chapter 1 Introduction to Computers and Java

University

15 Qs

Java Basic Quiz

Java Basic Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Barani Vijaya Kumar A T

Used 6+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

What is the essential software required to run Java programs from the command line?

Java Runtime Environment (JRE)

Integrated Development Environment (IDE)

Java Development Kit (JDK)


Java Virtual Machine (JVM)


2.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

How do you change a text file to a Java file?

Compile the file using javac


Save the file as a Java project


Open the file in a Java IDE


Rename the file with a .java extension


3.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

What is the purpose of the 'public static void main' method in a Java program?

To save the program


To define the entry point of the program


To execute the program


To compile the program


4.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Which command is used to compile a Java program?


java

compile

javac

run

5.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Which command is used to run a compiled Java program?


javac

java

run

execute

6.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Which statement is true about java ?


Java is a sequence-depended programming language


Java is a code dependent programming language


Java is a platform-dependent programming language


Java is a platform-independent programming language


7.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Which of these are selection statements in java


Break

For ( )


If ( )


Continue


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?