6CSN1

6CSN1

University

10 Qs

quiz-placeholder

Similar activities

Java 1D Arrays

Java 1D Arrays

University

15 Qs

Lets explore Java

Lets explore Java

University

14 Qs

W10: Interface

W10: Interface

University

6 Qs

Java for Geeks and Dummies

Java for Geeks and Dummies

12th Grade - University

10 Qs

Chapter 9: Iterations

Chapter 9: Iterations

University

7 Qs

Lukes really hard quiz

Lukes really hard quiz

University

10 Qs

Basic Java Quiz

Basic Java Quiz

University

15 Qs

A4 IB - Introducción a Listas de Python

A4 IB - Introducción a Listas de Python

University

10 Qs

6CSN1

6CSN1

Assessment

Quiz

Computers

University

Hard

Created by

RAVIKANTH K

Used 2+ times

FREE Resource

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

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?