APP Quiz 1

APP Quiz 1

University

10 Qs

quiz-placeholder

Similar activities

C Viva

C Viva

University

10 Qs

Plot the Code

Plot the Code

University

10 Qs

Third Year Placement Training Revision Test

Third Year Placement Training Revision Test

University

10 Qs

Quiz 2

Quiz 2

University

11 Qs

OOP - Java Classes

OOP - Java Classes

12th Grade - University

15 Qs

QUIZ KELAS JAVA

QUIZ KELAS JAVA

University

10 Qs

Java

Java

University

15 Qs

CPP/C

CPP/C

University

10 Qs

APP Quiz 1

APP Quiz 1

Assessment

Quiz

Computers

University

Hard

Created by

Lakshminarayanan R

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code?

int x = 5;

if (x++ == 5) {

    System.out.println("x was 5");

} else {

    System.out.println("x was not 5");

}

System.out.println("x is now " + x);

x was 5, x is now 6

  • x was not 5, x is now 6

x was 5, x is now 5

x was not 5, x is now 5

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the type of variable ‘b’ and ‘d’ in the following Java snippet?

int a[], b;

int []c, d;

‘b’ and ‘d’ are int

‘b’ and ‘d’ are arrays of type int

‘b’ is int variable; ‘d’ is int array

‘d’ is int variable; ‘b’ is int array

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be the output?

5 and Class B

10 and Class A

5 and Class A

10 and Class B

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

 

What will be the output of the following Java program?

Compilation error

Runtime error

5 6 5 6

5 6 5

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is a type of polymorphism in Java Programming?

Multiple polymorphism

Compile time polymorphism

Multilevel polymorphism

Execution time polymorphism

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be the result of the following code?

Static method

Instance method

Compilation error

Runtime error

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be the output of this ?

1

120

0

125

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?