Automata Fix - Unit 1

Automata Fix - Unit 1

University

10 Qs

quiz-placeholder

Similar activities

java quiz on Encapsulation and Abstraction

java quiz on Encapsulation and Abstraction

University

10 Qs

AB1401 Case Study: Facebook

AB1401 Case Study: Facebook

University

12 Qs

EDA PARTE 2

EDA PARTE 2

University

15 Qs

C Wrapup Quiz Deutsch

C Wrapup Quiz Deutsch

University

12 Qs

Pointer dan Fungsi

Pointer dan Fungsi

University

14 Qs

Variables and Functions

Variables and Functions

KG - University

10 Qs

GDPR

GDPR

University

10 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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?