Java

Java

University

61 Qs

quiz-placeholder

Similar activities

revise test no1

revise test no1

University

60 Qs

GravenQUIZ

GravenQUIZ

KG - University

60 Qs

FINAL EXAMINATION | CSC 113 - Computer Programming 2

FINAL EXAMINATION | CSC 113 - Computer Programming 2

University

60 Qs

Trắc nghiệm nhập môn OOP

Trắc nghiệm nhập môn OOP

University

62 Qs

Soal UTS PBO Lanjut

Soal UTS PBO Lanjut

University

65 Qs

22BCA6A-Quiz2-Java-File Handling

22BCA6A-Quiz2-Java-File Handling

University

56 Qs

JAVA QUIZZ-3

JAVA QUIZZ-3

University

60 Qs

BSIT2A Long Quiz OOP2

BSIT2A Long Quiz OOP2

University

60 Qs

Java

Java

Assessment

Quiz

Computers

University

Hard

Created by

Viswanath Kani

Used 167+ times

FREE Resource

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()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?