
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
10 questions
The oops moment/3

Quiz
•
University
10 questions
Antecedentes Conocimiento Mecánica Orbital

Quiz
•
University
16 questions
Basic C Programming

Quiz
•
University
15 questions
TRICODE CHALLENGE ROUND 1

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
12 questions
Quiz on Variables and Arithmetic Operations

Quiz
•
12th Grade - University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade