6CSN1

6CSN1

University

10 Qs

quiz-placeholder

Similar activities

CSC1243 - Introduction to Computer Programs (Programming Langua)

CSC1243 - Introduction to Computer Programs (Programming Langua)

University

10 Qs

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

BIM1014 Quiz 2

BIM1014 Quiz 2

KG - University

15 Qs

UNIT-1 PYTHON BASICS

UNIT-1 PYTHON BASICS

University

10 Qs

Programing test

Programing test

1st Grade - University

10 Qs

UX Design

UX Design

University

10 Qs

Google Aptitude Test

Google Aptitude Test

KG - University

10 Qs

Pengantar Coding

Pengantar Coding

University

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