6CSN1

6CSN1

University

10 Qs

quiz-placeholder

Similar activities

Porcentajes

Porcentajes

University

12 Qs

Week 4

Week 4

University

15 Qs

Operating System -Quiz-1

Operating System -Quiz-1

University

10 Qs

ADVACOMT-Quiz No.1 (final term)

ADVACOMT-Quiz No.1 (final term)

University

15 Qs

Web-II-Loop and Function

Web-II-Loop and Function

University

10 Qs

Programacion Orientada a Objetos

Programacion Orientada a Objetos

12th Grade - University

10 Qs

JAVA - Arrays

JAVA - Arrays

University - Professional Development

15 Qs

AV1/R1 2TEC_PM_1 A 11_História e Reconhecimento da UX

AV1/R1 2TEC_PM_1 A 11_História e Reconhecimento da UX

1st Grade - University

15 Qs

6CSN1

6CSN1

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

RAVIKANTH K

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following function is used to generate the application's top-level window?

  1. JPanel

  1. JFrame

  1. JCombo

None

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Among AWT and Swing which is platform independent?

AWT

Swing

Both

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Java, can a class implement multiple interfaces

Only Absract classes can implement

Classes can implement only 1 interface

Classes can implement multiple classes only

Yes, classes can implement

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of abstract classes

To declare abstract methods

To provide a base class with common methods and fields

To make a class final

All the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. Which statement is incorrect>?
    1. Class can contain another class inside it

  2. 2. Class can contain an interface inside it

  3. 3. An interface can contain an interface inside it

  4. 4. An interface can contain a class inside it

1

2

3

None

4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Spot the mistake in the code snipet

int i = 0; while(i < 5) { i++; } System.out.println(i);

  • Infinite loop

  • Syntax error

  • Prints 0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet.

if(false){ System.out.println("True"); } else{ System.out.println("False"); }

True

  • False

  • Error

Access all questions and much more by creating a free account

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

Already have an account?