Search Header Logo

C_test1

Authored by Anjali Luthra

Computers

University

Used 2+ times

C_test1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 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

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator has the lowest priority?

++

%

+

||

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int main()

{

int a = 25%10;

printf("%d", a);


return 0;

}

5

2

2.5

5.5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

!= is the example of ____________________ operator.

Relational

Logical

Assignment

Conditional

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include <stdio.h>


void main()

{


int x = 5 * 9 / 3 + 9;


}

24

3

23

4

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The meaning of the operator ______ is modulus in C language.

a. ++

b. mod

c. %

d. *

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?