
1.1 Programming C
Quiz
•
Others
•
University
•
Practice Problem
•
Easy
Salma AG
Used 5+ times
FREE Resource
Enhance your content in a minute
6 questions
Show all answers
1.
OPEN ENDED QUESTION
1 min • 5 pts
Whats the output of this code :
#include <stdio> {
int main() {
int i = 1;
while (i <= 10) {
printf("%d ", i);
i += 2;
}
return 0;
}
Evaluate responses using AI:
OFF
2.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
1. What is the output of the following code snippet?
c
#include<stdio.h>
int main() {
int i = 0;
while (i < 5) {
if (i == 3)
continue;
printf("%d ", i);
i++;
}
return 0;
}
a) 0 1 2 3 4
b) 0 1 2 4
c) 0 1 2
d) Compilation error
3.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
2. What is the output of the following code snippet?
c
#include<stdio.h>
int main() {
int i = 10;
do {
printf("%d ", i);
i--;
} while (i > 5);
return 0;
}
a) 10 9 8 7 6
b) 10 9 8
10
Compilation error
4.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
3. What is the output of the following code snippet?
c
#include<stdio.h>
int main() {
int i = 0, j = 0;
for (i = 0; i < 5; i++) {
for (j = i; j < 5; j++) {
printf("* ");
}
printf("\n");
}
return 0;
}
d) Compilation error
5.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
4. What is the output of the following code sni #include<stdio.h>
int main() {
int i = 0;
for (i = 0; i < 5; i++) {
if (i == 2)
break;
printf("%d ", i);
}
return 0;
}
a) 0 1
b) 0 1 2
c) 0 1 2 3 4
d) Compilation error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. What is the output of the following code snippet?
c
#include<stdio.h>
int main() {
int i = 10;
while (i > 5) {
printf("%d ", i);
i++;
}
return 0;
}
a) Infinite loop
b) Compilation error
c) No output
d) 10
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
7 questions
KUIZ BAB 6 ANALISIS PENYATA KEWANGAN
Quiz
•
University
10 questions
Kinh Tế Tri Thức
Quiz
•
University
11 questions
Examen Microscopía
Quiz
•
University
10 questions
Công nghiệp hóa - Hiện đại hóa
Quiz
•
University
10 questions
ULANGAN HARIAN BAB 3
Quiz
•
University
10 questions
Strategic Management
Quiz
•
University
10 questions
PRESENT PERFECT TENSE & SIMPLE PAST TENSE
Quiz
•
University
10 questions
UH FIQIH BAB 3
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Others
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
