JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Evaluasi Informatika | Internet dan Jarkom

Evaluasi Informatika | Internet dan Jarkom

9th - 12th Grade

15 Qs

Topic 4.1 Introduction to Java

Topic 4.1 Introduction to Java

12th Grade

20 Qs

SOFTWARE 7I

SOFTWARE 7I

7th Grade - University

20 Qs

CS Terms and Vocab Practice Quiz 3

CS Terms and Vocab Practice Quiz 3

7th - 12th Grade

20 Qs

Arduino ม.2 และ ม.3 ฉบับที่ 2

Arduino ม.2 และ ม.3 ฉบับที่ 2

KG - Professional Development

20 Qs

Blizzard Entertainment

Blizzard Entertainment

9th - 12th Grade

20 Qs

8.12 C++ Test on Classes

8.12 C++ Test on Classes

9th - 12th Grade

15 Qs

Prodas 1

Prodas 1

10th Grade

15 Qs

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Hicabi Yeniay

Used 108+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following can be operands of arithmetic operators?

Numeric

Boolean

Both Numeric & Characters

Characters

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What will be the output of the following Java program?

class Output {

public static void main(String args[]) {

int a = 1;

int b = 2;

int c;

int d;

c = ++b;

d = a++;

c++;

b++;

++a;

System.out.println(a + " " + b + " " + c); }

}

324

323

244

234

344

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will be the output of the following Java code?

class operators {

public static void main(String args[]) {

int x = 8;

System.out.println(++x * 3 + " " + x); }

24 8

27 9

24 9

27 8

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following Java code?

class Relational_operator {

public static void main(String args[]) {

int var1 = 5;

int var2 = 6;

System.out.print(var1 > var2); }

}

5

6

FALSE

TRUE

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these is not an Assignment Operator?

&=

|=

+=

<=

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following Java program?

class booloperators {

public static void main(String args[]) {

boolean var1 = true;

boolean var2 = false;

System.out.println((var1 & var2));

}

}

True

False

1

0

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What will be the output of the following Java program?

public static void main(String args[]) {

char a = 65;

char b = 66;

char d = 68;

d--;

char c = --b;

a++;

System.out.println(b);

System.out.println(d);

System.out.println(b);

System.out.println(a);

}

}

A

C

A

B

B

A

B

A

B

A

C

A

A

D

A

B

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?