Unit 4: Operators in Java

Unit 4: Operators in Java

9th - 10th Grade

19 Qs

quiz-placeholder

Similar activities

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

Identidad Corporativa

Identidad Corporativa

10th Grade

15 Qs

BÀI 16 - THUẬT TOÁN SẮP XẾP

BÀI 16 - THUẬT TOÁN SẮP XẾP

9th Grade - University

15 Qs

Python Syntax II

Python Syntax II

10th Grade

16 Qs

Excel - basic

Excel - basic

9th Grade

15 Qs

Remedial Informatika

Remedial Informatika

9th - 12th Grade

20 Qs

Cyber Security Homework 1

Cyber Security Homework 1

7th - 9th Grade

15 Qs

Network Topologies & Malware

Network Topologies & Malware

6th - 12th Grade

17 Qs

Unit 4: Operators in Java

Unit 4: Operators in Java

Assessment

Quiz

Computers

9th - 10th Grade

Hard

Created by

Rajat Shenoi

Used 82+ times

FREE Resource

AI

Enhance your content in a minute

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

19 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

What is the value of x1 if x=5?

x1 = ++x – x++ + – –x

2.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

Evaluate the value of n if value of p = 5, q = 19

int n = (q – p) > (p – q) ? (q – p) : (p – q);

3.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

Find the output of the following program segment, when:

int val=1600, sum, n = 550;

sum = n + val > 1750 ? 400 : 200;

System.out.println(sum);

4.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

What is the value of y, when the following statements are executed?

int a = 63, b = 36;

int y = (a < b) ? a : b;

5.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

If a = 5, b = 9 calculate the value of a += a++ – ++b + a.

6.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

What is the value of x, when the following statements are executed?

int a = 63, b = 36;

boolean x = (a > b) ? true : false;

7.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

What will be the output for the following program segment?

int a = 0, b = 30, c = 40;

a = – –b + c++ + b;

System.out.println(“a = ”+a);

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?