JAVA: Level-1

JAVA: Level-1

5th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

kiem tra 2

kiem tra 2

8th Grade

10 Qs

 Unit 4 Advanced AP CSP

Unit 4 Advanced AP CSP

9th - 12th Grade

10 Qs

IP ADDRESSING AND ITS VERSION

IP ADDRESSING AND ITS VERSION

11th Grade

15 Qs

UNIT 1.2 MEMORY

UNIT 1.2 MEMORY

10th Grade

19 Qs

Functions in C++

Functions in C++

11th Grade

20 Qs

Inter ITI Skill Fusion - Set 2

Inter ITI Skill Fusion - Set 2

11th Grade

15 Qs

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

ไมโครคอนโทรลเลอร์ & Arduino Uno R3

ไมโครคอนโทรลเลอร์ & Arduino Uno R3

12th Grade

20 Qs

JAVA: Level-1

JAVA: Level-1

Assessment

Quiz

Computers, Education

5th - 12th Grade

Practice Problem

Hard

Created by

Amol Karpe

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Choose from below non-mandatory (not MUST) component of a Java Program.

Class name

main method

print method

All of the above

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Choose correct signature of main method.

public static int main(String[] args)

private static void main(String[] args)

public static void main(int[] args)

public static void main(String[] args)

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

In Java Array, index starts from

1

0

-1

-2

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What will be output of following code -


public static void main(String[] args) {

System.out.print("Hello");

System.out.println("How are you?");

}

Error

Hello

How are you?

HelloHow are you?

How are you?Hello

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

In Java, which of the following Loop executes at least once -

for Loop

while Loop

do...while Loop

None of the above

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What will be the output of following code -


public static void main(String[] args) {

byte b = 135;

System.out.println(b * 2);

}

135

270

135 * 2

Compilation Error

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

to assign a value as "2.5", which data type I can use

int

boolean

char

float

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?