Search Header Logo

10 Java

Authored by Nursultan uulu

Computers

KG

Used 14+ times

10  Java
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will this code segment output?

System.out.println("Hello");

System.out.println("World");

Hello

World

HelloWorld

Hello World

Hello


World

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the below is NOT a Java arithmetic operator?

+

-

/

#

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

How would you correctly display, “Hello, how are you?”?

print.Hello, how are you?;

println('Hello, how are you?');

System.out.println(Hello, how are you?);

System.out.println("Hello, how are you?");

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will this java expression evaluate to?

(int) 7.8

7

7.0

8

7.8

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is a proper way to declare and initialize a variable in Java?

myInteger = 100;

char = 'a';

int myNumber = 10;

"Variable"

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will this code segment output ?

String name = "Asan";

System.out.println("name");

Asan

name Asan

name

print

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the result of this expression?

int a = 5;

double b = 5.0;

System.out.println(a/b);

a/b

1.0

1

5

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?