Operator Exercise Quiz

Operator Exercise Quiz

University

15 Qs

quiz-placeholder

Similar activities

Java, part I

Java, part I

11th Grade - University

20 Qs

Variable Name

Variable Name

University

13 Qs

ANALYSIS OF ALGORITHMS

ANALYSIS OF ALGORITHMS

University

15 Qs

Basic C++ Programming Questions

Basic C++ Programming Questions

University

20 Qs

Arithmetic Types Declare Initialize Relation Logical Ops

Arithmetic Types Declare Initialize Relation Logical Ops

9th Grade - University

16 Qs

C Programming Quiz

C Programming Quiz

12th Grade - University

20 Qs

BASIC C PROGRAMMING

BASIC C PROGRAMMING

University

15 Qs

Python Basics

Python Basics

KG - University

15 Qs

Operator Exercise Quiz

Operator Exercise Quiz

Assessment

Quiz

Computers

University

Hard

Created by

NURUL (PMJ)

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

Find the result of the following:

int a = 10;

a += 5;

Evaluate responses using AI:

OFF

2.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

How do you combine assignment and modulus operation in the following line of code? a = a % 4;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the result of the following expression? int result = 8 + 3 * 2;

14

11

10

15

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of result? result = 10 / 3

3.3333

3

4

2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In most programming languages, what is the output of the expression 9 % 4?

1

2

3

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the following code, which relational operator would you use to check if x is not equal to y?

!=

==

>

<

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following condition should return? 7 >= 7

True

False

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?