10  Java

10 Java

KG

10 Qs

quiz-placeholder

Similar activities

Mid-Year Java Check

Mid-Year Java Check

Unabridged Unit 1 Test APCSAwesome

Unabridged Unit 1 Test APCSAwesome

Basic Java Quiz

Basic Java Quiz

Java March

Java March

AP Computer Science A

AP Computer Science A

CodeHS - Unit 2: Lessons 1 - 3

CodeHS - Unit 2: Lessons 1 - 3

10  Java

10 Java

Assessment

Quiz

Computers

KG

Practice Problem

Medium

Created by

Nursultan uulu

Used 14+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?