6CSN1

6CSN1

University

10 Qs

quiz-placeholder

Similar activities

HCI QUIZ #1 and #2

HCI QUIZ #1 and #2

University

15 Qs

Application Development Midterm Quiz

Application Development Midterm Quiz

University

15 Qs

Testeo de equipos - BIOS

Testeo de equipos - BIOS

University

10 Qs

Software Engineering

Software Engineering

University

10 Qs

AMS - Aula 03

AMS - Aula 03

University

10 Qs

Quiz Lec2

Quiz Lec2

KG - University

10 Qs

Python List

Python List

4th Grade - University

15 Qs

GIT COURSE

GIT COURSE

University

13 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?

Discover more resources for Computers