
C Programming Quiz

Quiz
•
Computers
•
Professional Development
•
Hard
GIST VOICE
FREE Resource
41 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
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
Similar Resources on Wayground
40 questions
Unit I_Operating Systems Quiz_01

Quiz
•
Professional Development
40 questions
311-350

Quiz
•
Professional Development
39 questions
5to A Lenguajes de programación

Quiz
•
Professional Development
40 questions
LPI Linux Essentials (40 Questions)

Quiz
•
Professional Development
40 questions
KJD 10 Siniu

Quiz
•
Professional Development
45 questions
Android ATC_Practice 4

Quiz
•
Professional Development
40 questions
Foundation_Batch_2025

Quiz
•
Professional Development
37 questions
DEVOPS LIFECYCLE

Quiz
•
Professional Development
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade