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); }

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
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 Quizizz
40 questions
A+ 1101 Day 2

Quiz
•
Professional Development
44 questions
SISKOM_X-TJKT

Quiz
•
Professional Development
40 questions
POST TEST BIMTEK WUB IKM 2023

Quiz
•
Professional Development
40 questions
Computer Fundamentals MCQs

Quiz
•
Professional Development
45 questions
C++ Intermediate

Quiz
•
Professional Development
44 questions
PHP Dev

Quiz
•
Professional Development
41 questions
TIN HỌC 11 HKII

Quiz
•
Professional Development
42 questions
Stack & Queue, File Input and Output

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade