Science Quiz

Random Science or Computer Quiz

C Programming Language: Operators Quiz Stats

Quiz not verified by Sporcle

Also try: Factors of 1200
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.9%
342
0.9%
184
2.7%
384
4.5%
int x=2, y=3, z=4;
printf(''%d'', y>x && y>=z);
0
55.9%
1
5.4%
2
2.7%
4
6.3%
int x=46, y=10; x/=y;
printf(''%d'', x);
4
52.3%
460
2.7%
46
6.3%
6
2.7%
int x=2, y=3, z=4;
printf(''%d'', x>y || y>=z);
0
52.3%
1
4.5%
2
3.6%
4
2.7%
int x=5;
printf(''%d'', x<5);
0
51.4%
1
0%
true
9.9%
false
2.7%
int x=46, y=10; x*=y;
printf(''%d'', x);
460
51.4%
46
3.6%
4
5.4%
6
3.6%
int a[ ]={10,20,30,40,50,60,70,80,90};
printf (''%d'', a[5]);
60
50.5%
50
9.9%
40
2.7%
70
0.9%
struct s { int a,b; } t;
t.a=6; t.b=t.a+1;
printf (''%d'', t.a+t.b);
13
50.5%
6
2.7%
7
6.3%
12
2.7%
int x=5;
printf(''%d'', ! (x==7));
1
49.5%
0
6.3%
5
6.3%
7
3.6%
int x=2, y=3, z=4;
printf(''%d'', y>x && z>=y);
1
48.6%
0
4.5%
2
4.5%
4
2.7%
int x=5;
printf(''%d'', x>5);
0
48.6%
1
8.1%
true
3.6%
false
0.9%
int x=5;
printf(''%d'', x<=5);
1
47.7%
0
1.8%
true
4.5%
false
5.4%
int x=5;
printf(''%d'', x!=5);
0
47.7%
1
6.3%
false
9%
true
0.9%
int x=2, y=3, z=4;
printf(''%d'', x>y || z>=y);
1
47.7%
0
9%
2
1.8%
4
6.3%
int x=5;
printf(''%d'', x==5);
1
46.8%
0
5.4%
false
0.9%
true
9%
int x=5;
printf(''%d'', ! (x!=7));
0
46.8%
1
10.8%
5
8.1%
7
0.9%
int x=5;
printf(''%d'', x>=5);
1
46.8%
0
5.4%
true
4.5%
false
4.5%
int x=9; int p=x; p-=2;
printf (''%d,%d'', x, p);
9,7
45%
7,7
8.1%
7,9
3.6%
9,2
6.3%
int x=5; int y=++x;
printf (''%d,%d'', x, y);
6,6
45%
5,6
7.2%
6,5
6.3%
5,5
4.5%
int x=46, y=10; x%=y;
printf(''%d'', x);
6
45%
460
5.4%
46
5.4%
4
9%
printf(''%d'', 1 ? 2 : 3); 2
43.2%
1
5.4%
3
10.8%
6
1.8%
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.2%
5
4.5%
4
5.4%
9
4.5%
printf(''%d'', 0 ? 2 : 3); 3
42.3%
0
4.5%
2
12.6%
5
2.7%
int x=50, y=14;
printf (''%d'', x%y);
8
41.4%
6
6.3%
3
8.1%
4
6.3%
int x=50, y=14;
printf (''%d'', 1+x/y+3);
7
40.5%
3
9.9%
7.571429
3.6%
8
8.1%
double x=50, y=14;
printf (''%lf'', 1+x/y+3);
7.571429
40.5%
3.000000
7.2%
7.000000
11.7%
8.000000
7.2%
int y=28;
printf(''%d'', y >> 2);
7
40.5%
14
5.4%
56
10.8%
112
4.5%
int x=5; int y=--x;
printf (''%d,%d'', x, y);
4,4
40.5%
5,5
6.3%
5,4
6.3%
4,5
8.1%
int x=5;
printf(''%d'', x=7);
7
39.6%
1
2.7%
0
13.5%
5
7.2%
int a[ ]={10,20,30,40,50,60,70,80,90};
printf (''%d'', *(a+3));
40
39.6%
30
9%
93
5.4%
13
5.4%
int x=5; int y=x++;
printf (''%d,%d'', x, y);
6,5
39.6%
6,6
9%
5,6
9.9%
5,5
5.4%
int x=50, y=14;
printf (''%lf'', (double)(1+x/y+3));
7.000000
37.8%
3.000000
9.9%
7.571429
16.2%
8.000000
2.7%
int x=22, y=28;
printf(''%d'', x & ~y);
2
37.8%
8
12.6%
10
8.1%
20
7.2%
int x=22;
printf(''%d'', x << 2);
88
37.8%
44
10.8%
11
9.9%
5
8.1%
int x=9; int *p=&x; *p+=2;
printf (''%d,%d'', x, *p);
11,11
37.8%
9,11
17.1%
18,9
3.6%
9,18
4.5%
int x=5; int y=x--;
printf (''%d,%d'', x, y);
4,5
35.1%
5,4
15.3%
4,4
7.2%
5,5
4.5%
int x=22, y=28;
printf(''%d'', x ^ y);
10
35.1%
20
11.7%
30
4.5%
25
11.7%
int x=22, y=28;
printf(''%d'', x | y);
30
34.2%
20
15.3%
10
5.4%
25
6.3%
int x=22, y=28;
printf(''%d'', ~x & y);
8
31.5%
2
11.7%
10
9%
20
10.8%
int x=22, y=28;
printf(''%d'', x & y);
20
30.6%
10
9%
30
14.4%
25
10.8%

You're not logged in!

Compare scores with friends on all Sporcle quizzes.
Sign Up with Email
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.