JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

University

12 Qs

quiz-placeholder

Similar activities

Administrative Law for Public Authorities - Topic 1

Administrative Law for Public Authorities - Topic 1

University - Professional Development

10 Qs

QUIZ PERAN MANAJEMEN PADA INDUSTRI

QUIZ PERAN MANAJEMEN PADA INDUSTRI

University

10 Qs

Clases Abstractas, polimorfismo

Clases Abstractas, polimorfismo

University

12 Qs

Month Languages

Month Languages

7th Grade - University

15 Qs

VOIDABLE CONRACTS PART 2

VOIDABLE CONRACTS PART 2

University

12 Qs

BASICS OF MECHATRONICS

BASICS OF MECHATRONICS

University

10 Qs

UTS SISTEM INFORMASI MANAJEMEN

UTS SISTEM INFORMASI MANAJEMEN

University

10 Qs

Macro Economics 19.1 - 19.2

Macro Economics 19.1 - 19.2

University

14 Qs

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

Assessment

Quiz

Education, Other

University

Practice Problem

Hard

Created by

Shashank Jain

Used 52+ times

FREE Resource

AI

Enhance your content in a minute

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

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following can be operands of arithmetic operators?

Numeric

Boolean

Both Numeric & Characters

Characters

2.

MULTIPLE CHOICE QUESTION

30 sec • 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); }

}

3 2 4

3 2 3

2 3 4

2 4 4

3 4 4

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of these can be returned by the operator &?

Integer

Boolean

Integer or Boolean

Character

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Java program?

class comma_operator {

public static void main(String args[]) {

int sum = 0;

for (int i = 0, j = 0; i < 5 & j < 5; ++i, j = i + 1)

sum += i;

System.out.println(sum); }

}

5

4

6

14

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of these can not be used for a variable name in Java?

identifier

identifier & keyword

keyword

none of the mentioned

6.

MULTIPLE CHOICE QUESTION

30 sec • 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

24 9

27 9

27 8

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is not an operator in Java?

instanceof

sizeof

>>>=

new

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?

Discover more resources for Education