
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
What would be output:
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 Wayground
20 questions
UNIT1

Quiz
•
University
19 questions
AVINYA 2K25

Quiz
•
University
20 questions
NEXUS'25

Quiz
•
University
15 questions
C Programming Quiz

Quiz
•
University
20 questions
Aptitude and OOP Concepts Assessment

Quiz
•
University
10 questions
Sistemas de Generación

Quiz
•
University
20 questions
C Programming Fundamentals Assessment

Quiz
•
University
15 questions
Lenguajes de Programación

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Engineering
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University