
C Programming Level 1
Quiz
•
Education
•
Professional Development
•
Hard
Training MTEC
Used 5+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this C code? #include void main() { int x=1,y=0,z=5; int a=x&&y||z++; printf("%d",z); }
6
5
0
Varies
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this C code? #include void main() { int x=1,z=3; int y=x<<3; printf("%d\n",y); }
-2147483648
Runtime Error
8
-1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output? void main() { i=0x10+010+10; printf("\nx=%x",i); }
I=34
X=22
X=34
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Int i=20; Printf("%X",i); What is the output?
20
15
14
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the size of the following union declaration? Union test { int x; char y; float z; };
5
4
6
7
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the size of the following union declaration? struct test { int x; char y; float z; };
4
5
6
7
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code? #include int main() { int x = 1, y = 2; int z = x & y == 2; printf("%d\n", z); }
0
1
Error
Depend on compiler
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Verb To Be - Affirmative Present Tense
Quiz
•
KG - Professional Dev...
15 questions
Gerunds and infinitives (B1/B2)
Quiz
•
9th Grade - Professio...
15 questions
Making wishes (present past and future)
Quiz
•
Professional Development
16 questions
Questions & Quick Responses - Part A:A - Biographical Questions
Quiz
•
4th Grade - Professio...
20 questions
Common Mistakes - Part H
Quiz
•
4th Grade - Professio...
15 questions
El venedor
Quiz
•
Professional Development
20 questions
Czas przeszły (A2)
Quiz
•
Professional Development
15 questions
Bank centralny
Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade