
MIS205 OOP Quiz 1
Authored by Güray ARIK
Computers
2nd Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which one is NOT a Java Data Type?
int
boolean
double
number
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a correct syntax to output "Hello World" in Java?
Console.WriteLine("Hello World");
System.out.println("Hello World");
print ("Hello World");
echo("Hello World");
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is local variable?
Variables defined inside methods, constructors or blocks are called local variables.
Variables defined outside methods, constructors or blocks are called local variables.
Static variables defined outside methods, constructors or blocks are called local variables.
None of the above.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
One of the main features of Java is Write Once Run Anywhere, i.e. it is platform-independent. It can run on any OS irrespective of the environment because of ...........................?
JVM
JRE
JDK
IDE
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which data type is used to create a variable that should store text in Java?
Char
String
Text
Boolean
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which method can be used to find the length of a string?
getLength()
len()
getSize()
length()
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What will be the Output of the below code?
num1 == num2
num3 == num4
num1 == num2
num3 != num4
num1 != num2
num3 == num4
num1 != num2
num3 != num4
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?