Search Header Logo

Java

Authored by Viswanath Kani

Computers

University

Used 167+ times

Java
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

61 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Describe method.

A component of a program in a big program.

A program to perform a specific task.

A component of a program written to perform a specific task.

A variable that use to read an input.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This is a general structure a method.

<Returnvalue type> <Method Name> (argument / s)

<Modifier> < type> <Method Name> (parameter / s)

public static void main (String[ ] args)

<Method Name> (parameter)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In which line is representing the meaning of Standard library method.

Line 2

Line 8

Line 13

Line 10

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The different between static and non static method is ....

for non static method : user need to create object in a class to call a method.

A method is to perform only specific task.

There is no significant differences between static and non - static method.

Both are bounded with a class.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This program is consist with syntax error. Identify the reason and fix the error with the most suitable answer.

Mismatched with data type of radius and height.

FIx with :- char radius, height;

Mismatched with data type of r and h in method.

FIx with :- int r, h;

Mismatched with variable name of radius and height.

FIx with :- double r, h;

Mismatched with data type of radius and height.

FIx with :- double radius, height;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is String a primitive data type?

Yes

No

Both

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method to use to find length of a string?

length()

size()

long()

count()

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