java Programming1

java Programming1

Professional Development

28 Qs

quiz-placeholder

Similar activities

Show Me the Data

Show Me the Data

6th Grade - Professional Development

23 Qs

Motion Sickness

Motion Sickness

Professional Development

23 Qs

MORRIS GARAGES - 3-60 & Protect Plan & MG SHIELD

MORRIS GARAGES - 3-60 & Protect Plan & MG SHIELD

Professional Development

24 Qs

CN-First Test

CN-First Test

Professional Development

25 Qs

Fire code of the Philippines

Fire code of the Philippines

Professional Development

27 Qs

class ,objects,variables & methods

class ,objects,variables & methods

Professional Development

25 Qs

Business Enviornment Analysis

Business Enviornment Analysis

Professional Development

23 Qs

java Programming1

java Programming1

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Medium

Created by

Assistant Chennai

Used 131+ times

FREE Resource

AI

Enhance your content in a minute

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

28 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Java was developed by

James gosling

John gosling

James frank

John frank

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct main() method signature in Java?

public static void main (String [] args)

public static void Main (String [] args)

public static void main (string [] args)

public static void main (String args)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable declaration in Java?

int 1myInteger = 0;

int int = 0;

Int my Integer = 0;

int myInteger = 0;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of this command does not have errors?

System.out.print("Hello World")

System.out.print(Hello World);

System.out.Print("Hello World);

System.out.print("Hello World");

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output of below program?

public class Test {

public static void main(String[] args) {

int x = 10*20-20;

System.out.println(x);

}

}

Runtime Error

Prints 180

Prints 0

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output for the following statement:

System.out.print("1"+"1");

11

2

Error Message

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Indicate the actual output of the statements below:

int thisYear = 2020;

System.out.println("The current year is "+thisYear);

The current year is thisYear

The current year is 2020

No output; an error exists

The current year is

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

Already have an account?