Search Header Logo

Java Simple - 1

Authored by KiRUBANANTHAM CHENNIAPPAN

Other

University

Used 5+ times

Java Simple - 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which statement is true about Java?

Java is a sequence-dependent programming language

Java is a code dependent programming language

Java is a platform-dependent programming language

Java is a platform-independent programming language

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of these cannot be used for a variable name in Java?

identifier & keyword

identifier

keyword

none of the mentioned

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the value of g?

int g = 3;

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

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Polymorphism

Inheritance

Compilation

Encapsulation

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

StringBuffer s1 = new StringBuffer("Quiz");

StringBuffer s2 = s1.reverse();

System.out.println(s2);

Find the Output?

QuizziuQ

Quiz

ziuQQuiz

ziuQ

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the valid statement.

char[] ch = new char(5);

char[] ch = new char[5];

char[] ch = new char();

char[] ch = new char[];

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

When is the object created with new keyword?

At run time

At compile time

Depends on the code

None

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?