IT A OOPs Lab Quiz1

IT A OOPs Lab Quiz1

Professional Development

10 Qs

quiz-placeholder

Similar activities

DBMS-Transactions-Revision

DBMS-Transactions-Revision

Professional Development

12 Qs

Topic Quiz-1 : Python Basics

Topic Quiz-1 : Python Basics

Professional Development

10 Qs

Apache Spark

Apache Spark

Professional Development

10 Qs

Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera

Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera

1st Grade - Professional Development

10 Qs

DW (EM25) - Introducción al Internet [T1]

DW (EM25) - Introducción al Internet [T1]

University - Professional Development

15 Qs

JS

JS

Professional Development

15 Qs

Int Prog Semana 1

Int Prog Semana 1

Professional Development

11 Qs

DL Refresher

DL Refresher

KG - Professional Development

10 Qs

IT A OOPs Lab Quiz1

IT A OOPs Lab Quiz1

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Varalaxmi P N V

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

What will be the output of the following Java code?

class increment {

public static void main(String args[])

 { 

            int g = 3;

 System.out.print(++g * 8);

}

}

32

33

24

25

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not an OOPS concept in Java?

Polymorphism

Inheritance

Compilation

Encapsulation

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

class Output

    {

        public static void main(String args[])

        {

            int arr[] = {1, 2, 3, 4, 5};

            for ( int i = 0; i < arr.length - 2; ++i)

                System.out.println(arr[i] + " ");

        }

    }

1 2 3 4 5

1 2 3 4

1 2

    1 2 3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the extension of compiled java classes?

.txt

.js

.class

.java

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Java program?

class recursion

        {

 int func (int n)

        {

        int result;

        if (n == 1)

                return 1;

            result = func (n - 1);

            return result;

        }

    }

    class Output

    {

        public static void main(String args[])

        {

            recursion obj = new recursion() ;

            System.out.print(obj.func(5));

        }

    }

1

120

 0

) None of the mentioned

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Java code?

    class output

    {

        public static void main(String args[])

        {

           String c = "Hello i love java";

           boolean var;

           var = c.startsWith("hello");

           System.out.println(var);

        }

    }

0

 true

1

false

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Java program?

    class output

    {

        public static void main(String args[])

        {

           StringBuffer s1 = new StringBuffer("Quiz");

           StringBuffer s2 = s1.reverse();

           System.out.println(s2);

        }

    }

QuizziuQ

ziuQQuiz

Quiz

ziuQ

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?