Operators & Precedence- c

Operators & Precedence- c

University

10 Qs

quiz-placeholder

Similar activities

Data Structure

Data Structure

University

10 Qs

'C'Programming Basics - Prepared by Feroz Khan A.B

'C'Programming Basics - Prepared by Feroz Khan A.B

University

15 Qs

CODE CAREER

CODE CAREER

University

9 Qs

Programming C

Programming C

University

10 Qs

Fundamentals of Programming

Fundamentals of Programming

University

12 Qs

C++ Puntatori

C++ Puntatori

University

9 Qs

Python - Functions

Python - Functions

University

10 Qs

C++ Quiz

C++ Quiz

University

10 Qs

Operators & Precedence- c

Operators & Precedence- c

Assessment

Quiz

Computers

University

Medium

Created by

Mrs. D.

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include <stdio.h>

int main()
{

   
int x;
  
   x = 
2*5*5+3*5+7;

   
printf("x = %d", x);

   
return 0;
}

72

272

200

0

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include <stdio.h>

int main()
{

   
int x;
  
   x = 
12+3-4/2<3+1;

   
printf("x = %d", x);

   
return 0;
}

1

0

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include <stdio.h>

int main()
{

   
int x;
  
   x = 
7 + 2 * 4 - 3;

   
printf("x = %d", x);

   
return 0;
}

12

33

9

0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include <stdio.h>

int main()
{

   
int x;
  
   x = 
25 + 20 / 5 - 10;

   
printf("x = %d", x);

   
return 0;
}

-1

0

19

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5+2*5

0

35

15

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

200+20/2-10

200

100

0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

100/10*10

1

100

0

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?