Search Header Logo

Basics of JAVA

Authored by Navraj Khanal

Computers

University

Used 39+ times

Basics of JAVA
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The keyword "method" is another name for

an object

a class

a function

a variable

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a numeric data type

int

double

float

decimal

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is incorrect?

int count = 50.0;

int salary = 50_000;

int salary = 50_00;

all of these are incorrect

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where does a java program start executing instructions from:

class

source file

main method

object

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We are use Scanner Library in java for...

Give permissions to the user
Correcting software errors
Allows user to read data
Allows the user to enter data

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When we want to print in Java, we use the code ......

system.out.print();
System.out.println();
System.Out.Printf();
System.out.show();

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A variable that holds words

String
boolean
int
float

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?