
Automata Fix - Unit 1

Quiz
•
Computers
•
University
•
Hard
Dr. Geetha
Used 10+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
public class A {
public static void main(String[] args)
{
if (true)
break;
}
}
Nothing
Error
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
public class A {
public static void main(String[] args)
{
System.out.println('j' + 'a' + 'v' + 'a');
}
}
java
Some other
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
public class Demo{
public static void main(String[] arr){
Integer num1 = 100;
Integer num2 = 100;
Integer num3 = 500;
Integer num4 = 500;
if(num1==num2){
System.out.println("num1 == num2");
}
else{
System.out.println("num1 != num2");
}
if(num3 == num4){
System.out.println("num3 == num4");
}
else{
System.out.println("num3 != num4");
}
}
}
num1 == num2
num3 == num4
num1 == num2
num3 != num4
num1 != num2
num3 == num4
num1 != num2
num3 != num4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of following program ?
public class Prg {
public static void main(String args[]){
System.out.print('A' + 'B');
}
}
AB
195
131
Error
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of following program?
public class Prg { public static void main(String args[]){ System.out.print(20+ 1.34f + "A" + "B"); }}
201.34AB
201.34fAB
21.34AB
Error
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of following program?
public class prg {
public static void main(String[] args) {
System.out.print("Hello");
System.out.println("Guys!");
}
}
HelloGuys!
Hello Guys!
Hello
Guys!
Compile with a Warning
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
String x = new String("xyz");
String y = "abc";
x = x + y;
How many String objects have been created?
2
3
4
5
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Java Quiz 1

Quiz
•
University
10 questions
Briefing Operator Java

Quiz
•
University
15 questions
Trắc nghiệm kiến thức Java Core - Phần I

Quiz
•
University
12 questions
Java

Quiz
•
11th Grade - University
15 questions
Java Basic Quizz

Quiz
•
University
15 questions
II CSM A & B

Quiz
•
University
10 questions
Java Arrays

Quiz
•
University
10 questions
Latihan1

Quiz
•
University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade