Operators in C

Operators in C

University

12 Qs

quiz-placeholder

Similar activities

Информация, свойства информации. Единицы измерения информаци

Информация, свойства информации. Единицы измерения информаци

University

16 Qs

Java Quiz 4

Java Quiz 4

University

15 Qs

PYTHON BASICS PART 1

PYTHON BASICS PART 1

University

10 Qs

Tin học 11 - KTtx số 2 - HK I

Tin học 11 - KTtx số 2 - HK I

11th Grade - University

10 Qs

DSA quiz 3 set 1

DSA quiz 3 set 1

University

10 Qs

Creating tables in HTML

Creating tables in HTML

University

10 Qs

Linked List 2

Linked List 2

University

10 Qs

HTML - Introdução

HTML - Introdução

University

16 Qs

Operators in C

Operators in C

Assessment

Quiz

Computers

University

Medium

Created by

Shenbagavalli S.T

Used 547+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

int x;

int y;

int z;

x=3;

y=4;

z = ++x * y++;

printf("%d",z);

12

16

20

0

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In C programming language, which of the following type of operators have the highest precedence

Relational operators

Equality operators

Logical operators

Arithmetic operators

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following comments about the ++ operator are correct?

1) It is a unary operator

2) The operand can come before or after the operator

3)It associates from the right

1 and 3

1 and 2

2 and 3

1,2,3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator has the lowest priority?

++

%

+

||

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

int main()

{

int a = 25%10;

printf("%d", a);


return 0;

}

5

2

2.5

5.5

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

The modulus operator (%) can be used only with integers.

True

False

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

!= is the example of ____________________ operator.

Relational

Logical

Assignment

Conditional

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?