
c-debugging

Quiz
•
Other
•
University
•
Hard
c debugging 2k25
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include<stdio.h>
int main()
{
int a = 5;
printf("%d"+1,a);
return 0;
}
Compilation error
Runtime error
6
d
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include<stdio.h>
#define FALSE -1
#define NULL 0
#define TRUE 1
int main(){
if(NULL)
printf("NULL");
else if(FALSE)
printf("TRUE");
else
printf("FALSE");
return 0;
}
FALSE
NULL
TRUE
COMPILATION ERROR
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include<stdio.h>
int main(){
int i = 0, j = 1, k = 0;
if(++k, j, i++)
printf("%d %d %d", i, j, k);
return 0;
}
prints nothing
1 1 0
0 1 0
COMPILATION ERROR
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include<stdio.h>
int main(){
int i;
if(true)
printf("This will work");
else
printf("This will not work");
return 0;
}
This will work
This will not work
Compilation Error
Runtime error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include<stdio.h>
int x = -1;
int main(){
while(x++ == 1)
printf("loop");
return 0;
}
Prints nothing
LOOP
LOOP LOOP
LOOP LOOP LOOP
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include<stdio.h>
int main(){
int i = 5;
while(--i > 0)
printf("Loop ");
return 0;
}
Loop Loop Loop Loop
Loop Loop Loop Loop Loop
Loop Loop Loop Loop Loop LOOP
Infinite loop
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include<stdio.h>
#define loop for(;;)
int main()
{
printf("DONE");
loop;
return 0;
}
Compilation error
Done
Program never ends
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
44 questions
C++ Conditional Statements

Quiz
•
University
40 questions
UAS - Basis Data A (2025)

Quiz
•
University
40 questions
UTS Workshop Pengendalian Proses

Quiz
•
University
41 questions
tin học 2

Quiz
•
University
42 questions
RETROALIMENTACION_COMPUTACIONBASICA

Quiz
•
4th Grade - University
35 questions
AP Seminar Glossary

Quiz
•
9th Grade - University
40 questions
PERALATAN ELEKTRONIKA

Quiz
•
University
37 questions
Java Programming Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University