What would be output:

C Programming Quiz2

Quiz
•
Engineering
•
University
•
Hard
Sunil Kumar
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
12
16
18
12
16
20
12
16
17
11
12
20
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is #include <stdio.h>?
Preprocessor directive
Inclusion directive
File inclusion directive
None
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h>
int main()
{
int y = 10000;
int y = 34;
printf("Hello World! %d\n", y);
return 0;
}
Compile time error
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
for(x = 1; x = 3; x++)
How many times above loop would run?
4
Never
3
5
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
#include<stdio.h>
void main() {
int num = 0;
do {
- - num;
printf(“%d”, num);
num ++;
}
while(num >= 0);
}
A run time error will be reported
The program will not enter into the loop
The loop will run infinitely many times
Compile time error
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h>
int main() {
int value = 0;
if(value)
printf("well done");
printf("Algbly");
return 0;
}
What would be output:
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h>
int main()
{
int i = 0;
int x = i++, y = ++i;
printf("%d % d\n", x, y);
return 0;
}
What would be output:
Create a free account and access millions of resources
Similar Resources on Quizizz
16 questions
Basic C Programming

Quiz
•
University
10 questions
C Programming Day-10

Quiz
•
University
20 questions
Quiz Round For Group 2

Quiz
•
University
20 questions
Desarrollo Aplicacion Movil I

Quiz
•
University
10 questions
Mastering Java Arithmetic Operators

Quiz
•
10th Grade - University
10 questions
FET bai tap

Quiz
•
University
10 questions
Quiz sobre el Lenguaje Go

Quiz
•
University
10 questions
Q3 - Interpretasi Grafik

Quiz
•
University
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