Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

1.

Question 1
What are the types of Java application?
1 point
Desktop application
Web application
Mobile application
UX/UI application

2.
Question 2
What are the IDEs that can make Java application?
1 point
Eclipse IDE
Netbeans IDE
IntelliJ IDE
Arduino IDE

3.
Question 3
What is the Java Development Kit (JDK) in java?
1 point
a cross-platformed software development environment that offers a collection of tools and libraries
necessary for developing Java-based software applications.
a core package used in Java, along with the JVM (Java Virtual Machine) and the JRE (Java Runtime
Environment).
a software for building applications that combines common developer tools into a single graphical
user interface (GUI).
A text editor that can assist in writing software code with features such as syntax highlighting with
visual cues

4.
Question 4
What is the extension of compiled java classes?
1 point
.txt
.js
.class
.java

5.
Question 5
What is the corrected information about the main method in Java program?
1 point
Java main method is the entry point of any java program
Its syntax is always public static void main(String[] args)
Can only change the name of String array argument, for example you can change args to
myStringArgs
Can change the name of the “main method”

6.
Question 6
What is the corrected information about writing a comment in Java program?
1 point
can include the comments anywhere in the code without degrading the performance of the code
A single-line comment start with two slashes that tell the computer ignore all the character until the
end of the current line
if the code is changed, it's required the comments to be changed
a comment perform a task and ends with a semicolon

7.
Question 7
What is the output of this Java program?

public class CodeTesterApp{

public static void main(String args[]){

// display a welcome message

System.out.println("Welcome to the code Test");

System.out.println();

// display a goodbye message

System.out.println("Bye!");

}
1 point
Welcome to the code Test

Bye!
Welcome to the code Test

System.out.println();

Bye!
Welcome to the code Test

System.out.println();

display a goodbye message

Bye!
display a welcome message

Welcome to the code Test

display a goodbye message


Bye!.

8.
Question 8
What is the corrected information about methods in Java program?:
1 point
A class can contain one of more methods.
A method is a block of code that performs a task
A method is a folder that can store one or more java classes inside
A method is excecuted when you run the class that contains it

9.
Question 9
What is the corrected information about the main method in Java program?:
1 point
A main method is a special type of method that’s executed when you run the class that contains it
A class can contain one main method only
A main method is often the starting point for an application
A main method store Java code, and starts with a class declaration

10.
Question 10
What are the basic requirements to write a java program?
1 point
Install JDK (Java Development Kit).
Install an IDE or editor to write the code
Navigate to the installation directory of JDK and access the Javac
compile the .class file in Java

You might also like