Science Quiz

Random Science or Computer Quiz

C Programming Language: Operators Quiz Stats

 Plays Quiz not verified by Sporcle

Also try: Think Fast Math II
Challenge
Share
Tweet
Embed
Score 0/40 Timer 20:00
0 Plays Today
Question Answer Wrong Answers
int x=50, y=14;
printf (''%d'', 2*x+y*3);
142
55.8%
342
2.5%
184
2.5%
384
4.3%
int a[ ]={10,20,30,40,50,60,70,80,90};
printf (''%d'', a[5]);
60
55.2%
50
8.6%
40
2.5%
70
1.2%
int x=46, y=10; x/=y;
printf(''%d'', x);
4
55.2%
460
2.5%
46
5.5%
6
1.8%
int x=5;
printf(''%d'', x<5);
0
54.6%
1
1.2%
true
6.7%
false
3.1%
int x=2, y=3, z=4;
printf(''%d'', y>x && y>=z);
0
54.6%
1
7.4%
2
2.5%
4
5.5%
int x=2, y=3, z=4;
printf(''%d'', x>y || y>=z);
0
54.6%
1
3.1%
2
4.3%
4
2.5%
int x=46, y=10; x*=y;
printf(''%d'', x);
460
53.4%
46
5.5%
4
4.3%
6
2.5%
struct s { int a,b; } t;
t.a=6; t.b=t.a+1;
printf (''%d'', t.a+t.b);
13
53.4%
6
3.1%
7
6.7%
12
3.1%
int x=5;
printf(''%d'', x>5);
0
53.4%
1
6.1%
true
3.1%
false
3.1%
int x=2, y=3, z=4;
printf(''%d'', y>x && z>=y);
1
52.1%
0
5.5%
2
3.7%
4
3.1%
int x=5;
printf(''%d'', x!=5);
0
52.1%
1
5.5%
false
8%
true
0.6%
int x=5;
printf(''%d'', x>=5);
1
51.5%
0
5.5%
true
4.9%
false
3.1%
int x=5;
printf(''%d'', x==5);
1
50.9%
0
4.9%
false
0.6%
true
8.6%
int x=5;
printf(''%d'', x<=5);
1
50.9%
0
3.7%
true
4.9%
false
4.3%
int x=2, y=3, z=4;
printf(''%d'', x>y || z>=y);
1
50.9%
0
9.2%
2
1.2%
4
4.9%
int x=5;
printf(''%d'', ! (x==7));
1
50.3%
0
9.2%
5
4.9%
7
2.5%
int x=9; int p=x; p-=2;
printf (''%d,%d'', x, p);
9,7
49.1%
7,7
6.7%
7,9
3.7%
9,2
4.3%
int x=46, y=10; x%=y;
printf(''%d'', x);
6
45.4%
460
6.1%
46
4.3%
4
10.4%
printf(''%d'', 1 ? 2 : 3); 2
44.2%
1
4.9%
3
14.7%
6
1.2%
int x=5;
printf(''%d'', ! (x!=7));
0
44.2%
1
14.1%
5
8%
7
1.2%
struct s { int a,b; } t, *p;
t.a=5; t.b=t.a-1; p=&t;
printf (''%d'', p->a*p->b);
20
43.6%
5
4.3%
4
6.7%
9
4.9%
int x=5; int y=++x;
printf (''%d,%d'', x, y);
6,6
42.9%
5,6
14.7%
6,5
6.7%
5,5
3.1%
int x=50, y=14;
printf (''%d'', 1+x/y+3);
7
42.3%
3
9.8%
7.571429
5.5%
8
8%
int x=5; int y=--x;
printf (''%d,%d'', x, y);
4,4
41.1%
5,5
4.3%
5,4
9.8%
4,5
9.8%
printf(''%d'', 0 ? 2 : 3); 3
39.9%
0
6.7%
2
14.1%
5
3.1%
double x=50, y=14;
printf (''%lf'', 1+x/y+3);
7.571429
39.9%
3.000000
5.5%
7.000000
14.7%
8.000000
6.1%
int x=50, y=14;
printf (''%d'', x%y);
8
39.9%
6
8%
3
9.8%
4
6.1%
int x=5;
printf(''%d'', x=7);
7
39.3%
1
3.1%
0
15.3%
5
6.7%
int a[ ]={10,20,30,40,50,60,70,80,90};
printf (''%d'', *(a+3));
40
39.3%
30
9.8%
93
6.7%
13
6.1%
int x=22;
printf(''%d'', x << 2);
88
38.7%
44
10.4%
11
9.8%
5
8%
int y=28;
printf(''%d'', y >> 2);
7
38.7%
14
5.5%
56
11%
112
7.4%
int x=50, y=14;
printf (''%lf'', (double)(1+x/y+3));
7.000000
36.8%
3.000000
10.4%
7.571429
17.8%
8.000000
2.5%
int x=5; int y=x++;
printf (''%d,%d'', x, y);
6,5
36.8%
6,6
9.2%
5,6
16%
5,5
4.3%
int x=9; int *p=&x; *p+=2;
printf (''%d,%d'', x, *p);
11,11
36.2%
9,11
19.6%
18,9
3.1%
9,18
5.5%
int x=22, y=28;
printf(''%d'', x ^ y);
10
35.6%
20
10.4%
30
7.4%
25
11.7%
int x=22, y=28;
printf(''%d'', x & ~y);
2
35.6%
8
12.9%
10
8%
20
8.6%
int x=5; int y=x--;
printf (''%d,%d'', x, y);
4,5
34.4%
5,4
19%
4,4
8%
5,5
3.7%
int x=22, y=28;
printf(''%d'', x & y);
20
34.4%
10
7.4%
30
12.9%
25
10.4%
int x=22, y=28;
printf(''%d'', x | y);
30
33.7%
20
14.7%
10
6.1%
25
7.4%
int x=22, y=28;
printf(''%d'', ~x & y);
8
28.8%
2
9.8%
10
11.7%
20
12.9%

You're not logged in!

Compare scores with friends on all Sporcle quizzes.
Join for Free
OR
Log In

You Might Also Like...

Show Comments

Extras

Top Quizzes Today


Score Distribution

Your Account Isn't Verified!

In order to create a playlist on Sporcle, you need to verify the email address you used during registration. Go to your Sporcle Settings to finish the process.

Report this User

Report this user for behavior that violates our Community Guidelines.

Details: