Assume that you have create and save some Java code in the text editor, choose the correct order to compile and run Java using command prompt.
I. set path
II. type the java command
III. type the javac command
OOP Programming Technique And Data & Variable
Quiz
•
Computers
•
University
•
Hard
azlina ibrahim
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Assume that you have create and save some Java code in the text editor, choose the correct order to compile and run Java using command prompt.
I. set path
II. type the java command
III. type the javac command
I,II,III
III,II,I
I,III,II
II,I,III
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Choose the syntax of a class named Student with variable named studentName
class Student
{
char studentName;
}
class Student
{
int studentName;
}
class Student
{
studentName;
}
class Student
{
String studentName;
}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Define terminologies used to describe the data component in UML class diagram
Method
Attribute
Class
Object
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Determine the output of the program below
class q2{
public static void main(String args[]){
System.out.println("I love Java!");
System.out.println("I love Java.");
}
}
I love Java.
I love Java!
I love Java. I love Java!
I love Java!
I love Java.
I love Java! I love Java.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Determine the output of the program below
class q1{
public static void main(String args[]){
System.out.print("I love Java!");
System.out.println("I love Java.");
}
}
I love Java.
I love Java!
I love Java. I love Java!
I love Java!
I love Java.
I love Java! I love Java
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the right statement about Java Data types.
Integer data types are short, int and long
The character data type is char.
Real number data types are float and double
All the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the data type that is not recommended for numeric applications in Java?
int
double
byte
float
15 questions
Java
Quiz
•
University
15 questions
Code Combat
Quiz
•
University
10 questions
FP Tema 2: Introducción a la programación
Quiz
•
University
20 questions
Python for beginners
Quiz
•
University
15 questions
Basic Java Quiz
Quiz
•
University
13 questions
JavaScript
Quiz
•
University
16 questions
JS - Knowledge Check
Quiz
•
University
15 questions
Java Programming
Quiz
•
University
15 questions
Multiplication Facts
Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz
Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
15 questions
June Review Quiz
Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles
Quiz
•
8th Grade
25 questions
Triangle Inequalities
Quiz
•
10th - 12th Grade