Search Header Logo

C Programming (Operators & Expressions)

Authored by Awwal Mudashir

Computers

Professional Development

Used 1+ times

C Programming (Operators & Expressions)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

How many Classes if operators does C have

2

3

4

5

2.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

Which of the following is the correct operator for modulus

  • #

%

  • &

  • @

3.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What is the result of the following expression? 5 + 3 * 2

  • 11

16

13

  • 10

4.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

Which operator has the highest precedence in C?

()

*

^

/

5.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What is the correct syntax for casting an integer x to float in C?

  • float x;

  • (float)x;

  • x = (cast float)x;

  • float(x);

6.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What is the output of the following code?

int a = 5, b = 3;

printf("%d", a / b * b);

  • 5

  • 3

  • 0

  • 1

7.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

what will the expression 10 > 5 && 6 < 3 evaluate to?

  • 0

  • 1

  • 10

  • 5

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?