Automata Fix - Unit 1

Automata Fix - Unit 1

University

10 Qs

quiz-placeholder

Similar activities

MS Core Java Quiz-2 2023

MS Core Java Quiz-2 2023

University

12 Qs

Methods

Methods

University

10 Qs

Stings, Cloning and ArrayList

Stings, Cloning and ArrayList

University

10 Qs

Java Method

Java Method

University

15 Qs

OOP - Java Classes

OOP - Java Classes

12th Grade - University

15 Qs

Talent Next Java MCQ-1

Talent Next Java MCQ-1

University

10 Qs

exception

exception

University

10 Qs

Java Operators

Java Operators

University

14 Qs

Automata Fix - Unit 1

Automata Fix - Unit 1

Assessment

Quiz

Computers

University

Hard

Created by

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

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?