C Programming (Operators & Expressions)

C Programming (Operators & Expressions)

Professional Development

20 Qs

quiz-placeholder

Similar activities

Assessment #2

Assessment #2

5th Grade - Professional Development

20 Qs

DATATYPES - INPUT/OUTPUT - OPERATORS

DATATYPES - INPUT/OUTPUT - OPERATORS

Professional Development

24 Qs

Intermediate Robotics Programming

Intermediate Robotics Programming

University - Professional Development

16 Qs

PSPC1

PSPC1

Professional Development

20 Qs

Python Programming - Test 1

Python Programming - Test 1

University - Professional Development

20 Qs

Quiz on switch_for_while_dowhile

Quiz on switch_for_while_dowhile

Professional Development

20 Qs

Python_2R

Python_2R

KG - Professional Development

20 Qs

C module 1 second quiz

C module 1 second quiz

Professional Development

25 Qs

C Programming (Operators & Expressions)

C Programming (Operators & Expressions)

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Awwal Mudashir

Used 1+ times

FREE Resource

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

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?